Docs @ Psychtoolbox Wiki : NetStation

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

NetStation

PsychtoolboxPsychHardware


NetStation - Basic control of the EGI/NetStation EEG recording system via
TCP/IP network connection. (See http://www.egi.com)

This function was developed and contributed to Psychtoolbox by Gergely Csibra, 2006-2008.
Code is based on Rick Gilmore's routines, 2005. Thanks!
Code adapted to PCs (and Macs with Intel architecture) by Zhao Fan, 2008.


General syntax

[status, error] = NetStation('command', ...)

if status == 0, the command has been succesfully executed
otherwise see string "error" for error message

Commands

NetStation('Connect', host [, port])

Establishes TCP/IP connection to the NetStation host computer.
"host" is the hostname as a string (e.g., 'anything.com' or '187.14.176.12')
"port" is the ethernet port to be used. Default is 55513.

NetStation('Disconnect')

Disconnects from NetStation host.

NetStation('Synchronize' [, SynchLimit])

Synchronize to the connected host. "SynchLimit" could specify the maximum allowed difference
IN MILLISECONDS. Default is 2.5 ms.

NetStation('StartRecording')

Instructs NetStation to start recording.

NetStation('StopRecording')

Instructs NetStation to stop recording.

NetStation('Event' [,code] [,starttime] [,duration] [,keycode1] [,keyvalue1] [...])

Send an event to the NetStation host.

"code" The 4-char event code (e.g., 'STIM')
Default: 'EVEN'
"starttime" The time IN SECONDS when the event started. The VBL time
returned by Screen('Flip') can be passed here as a parameter.
Default: current time.
"duration" The duration of the event IN SECONDS.
Default: 0.001.
"keycode" The 4-char code of a key (e.g., 'tria').
"keyvalue" The integer value of the key (>=-32767 <=32767)
The keycode-keyvalue pairs can be repeated arbitrary times.

Uses a modified version of the TCP/UDP/IP Toolbox 2.0.5, a third party GPL'ed
open source toolbox, which is included in Psychtoolbox,
but also available from the Mathworks website:
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=345

The toolbox has been modified for lower communication latency.

Created by Gergely Csibra, 2006-2008
Based on Rick Gilmore's routines, 2005
Adapted to PC by Zhao Fan, 2008





Path   Retrieve current version of NetStation.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychHardware/NetStation.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0254 seconds