eye-eeg icon indicating copy to clipboard operation
eye-eeg copied to clipboard

Bug report: Problem with E-Prime "offsets" + Eyelink

Open olafdimigen opened this issue 2 years ago • 2 comments

Received the following bug report:

When we try to synchronize data in eeglab with eye-eeg, we found that messages could not be recognized from *.asc file. After lots of tests, finally we found that eye-eeg could not read messages with offset.

The full structure of Eyelink messages is:

`‘MSG' + timeStamp + [offset] + messageText`

Messages with [offset] means events happened [offset] millisecond ago. Like this:

`MSG	4336690 3151 face2_Onset 127`

And those without [offset] means events happens realtime. Like this(4333539 = 4336690 - 3151):

`MSG	4333539	face2_Onset 127`

Messages with [offset] are used in E-Prime to markup the actually onset time of each E-Object(stimulate screen).

olafdimigen avatar Jan 07 '22 11:01 olafdimigen

need to adapt regexp in parseeyelink.m

timestamps = regexp(tmp,'^-?\D+(\d+)','tokens','once','lineanchors');

olafdimigen avatar Jan 08 '22 17:01 olafdimigen

open question: how to differentiate cases with an offset from messages containing one or more integers as their user-defined "content"?

olafdimigen avatar Feb 07 '22 12:02 olafdimigen