ronenno1 / chap

http://in.bgu.ac.il/en/Labs/CNL/chap
8 stars 7 forks source link

trials not found in edf files by eyelink (made with psychopy) #7

Open kingkhlop opened 1 year ago

kingkhlop commented 1 year ago

Hello all, I keep receiving an error: trials did not found, when edf2matlab2 is parcing through trials. However if I open the same file with eyelink dataviewer, it does have trials.

Thank you for your help!

Matlab 2023a Chap 1.6

ronenno1 commented 9 months ago

Dear kingkhlop, I'm sorry for the inconvenience and for the late response. In general, each trial should start with a message with the text TRIALID. Hence, if your trials have a different form, trials will not detected properly. Modification of line 132 should solve your problem easily. Specifically, you can simply change the string TRIALID with any other string that indicates trial onset (e.g., "trial_onset" / "the_beginning_of_the trial etc.). If it won't work for you, please share with me your data file in person and I'll do my best to help.

Best, Ronen