EyeLink II User Manual version 2.12
(07/02/2006)
©
2002-2006 SR Research Ltd.
67
Note that not all the event data listed here is available through the EDF2ASC
translator program.
4.5.1 Messages
The most flexible event type is the message event. A message is most often text,
but can contain any type of binary data as well, up to a maximum of 300 bytes.
Messages are created by application software, and forwarded over the link to the
EyeLink tracker, which timestamps the data and writes it to the EDF file. The
application does not need precise timekeeping, since link delays are usually
very low (on the order of 1 or 2 milliseconds).
Message events are used for two main purposes. They serve to precisely record
the time of important events, such as display changes, subject responses, etc.
They also record experiment-specific data, such as trial conditions.
Message events consist of a millisecond timestamp, and the message data. A
message is most often text, but can contain any type of binary data as well. For
text data, a zero byte at the end of the text is recommended for compatibility
with applications written in C. A message data length field provides Pascal
string compatibility, and allows binary data to be recorded in the message.
Current EyeLink applications only support text messages with zero-terminated
strings. It is also recommended that messages be shorter than 250 characters.
4.5.2 Buttons
Each button event records a change in state (pressed or released, 1 or 0) of up
to 8 buttons or input port bits, monitored by the EyeLink II tracker. Button
ports, bits, and polarity may be set in the EyeLink II tracker configuration file
BUTTONS.INI.
Each button event contains a timestamp (in milliseconds) of the time the button
was pressed, and a word of button data. This consists of two 8-bit fields,
recorded as a 16-bit number. The lower 8 bits contain the current status of the
8 buttons (bit = 0 if off, 1 if pressed). Each of the upper 8 bits will be set to 1 if
its button has changed since the last sample. The least-significant bit in each
byte corresponds to button 1, and the most-significant is button 8.
Button events are usually recorded at the start of each recording block, with all
upper 8 bits (change flags) set to 0. This allows applications to track the
current button state at all times.
4.5.3 Eye Movement Events
Events are generated by the EyeLink II tracker in real-time from the eye-
movement data stream. These provide an efficient record of the data in a form