File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change 220220 % otherwise you may lose a few msec of data
221221 WaitSecs(0.1 );
222222
223- % HERE START THE STIMULATION OF THE BLOCK
224- % to mark the beginning of the trial
223+ % Mark the beginning of the trial, here start the stimulation of the experiment
225224 Eyelink(' Message' , ' SYNCTIME' );
226225
227226 case ' StopRecordings'
228227
229228 % STEP 8
230- % finish up: stop recording eye-movements,
229+ % Finish up: stop recording of eye-movements
230+
231231 % EyeLink Stop recording the block
232232 Eyelink(' Message' , ' BLANK_SCREEN' );
233- % adds 100 msec of data to catch final events
233+
234+ % Add 100 msec of data to catch final events
234235 WaitSecs(0.1 );
235- % close graphics window, close data file and shut down tracker
236+
237+ % Stop recoding
236238 Eyelink(' StopRecording' );
237239
238240 case ' Shutdown'
239241
242+ % STEP 6
243+ % At the end of the experiment, save the edf file and shut down connection
244+ % with Eyelink
245+
246+ # Set the edf file path + name
240247 edfFileName = fullfile( ...
241248 cfg .dir .outputSubject , ...
242249 ' eyetracker' , ...
243250 cfg .fileName .eyetracker );
244251
245- edfFile = ' demo.edf' ;
246-
247- % STEP 6
248- % At the end of the experiment, save the edf file and shut down connection
249- % with Eyelink
250-
251252 Eyelink(' Command' , ' set_idle_mode' );
253+
252254 WaitSecs(0.5 );
255+
253256 Eyelink(' CloseFile' );
254257
255- % download data file
258+ % Download data file
256259 try
257260 fprintf(' Receiving data file ''%s''\n ' , edfFileName );
258261
You can’t perform that action at this time.
0 commit comments