82
Data Files
©
2016-2017 SR Research Ltd.
Message events are used for two main purposes. They serve to precisely record
the time of important events, such as display changes, participant responses,
etc. They also record experiment-specific data, such as trial conditions.
Message events consist of a millisecond timestamp, and the message data. 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 120 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 tracker. Button ports,
bits, and polarity may be set in the EyeLink 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 tracker in real-time from the eye-
movement data stream. These provide an efficient record of the data in a form
ready to use for most types of eye-movement research. The use of events
simplifies the analysis of sample data as well. For example, analysis of pursuit
gain requires rejection of saccades, which are clearly marked in the events. Eye-
movement events are generated in pairs: one event at the start of an eye-
movement condition, and another at the end of the condition. When used in
real-time processing with data sent via the link, the event pairs allow an
application to monitor eye movement state in real time. These pairs accurately
label the samples in a file between the events, as the file is read from beginning
to end.
Eye-movement events are always labeled by which eye generated the event. If
binocular data is recorded, a separate start and end event is generated for each
eye. The time differences between eyes are very important for neurological
analysis, for example. The main classes of data events are summarized below.