notes
- draw roi using code (mdl-roi)
- show fixation cross for drift correction
- have path of stimulus presented on Host pc (ie IMGLOAD)
- set up gaze contigent, drift correct, and eyetracking.roi (i.e. IAREA RECTANGLE)
steps
- between blocks, do drift correct
- when start recording started
- do gaze contigent (if gc=True)
- if fail gaze contigent (2 seconds, no fixation)
- start drift correct
- if fail gaze contigent (2 seconds, no fixation)
- do gaze contigent (if gc=True)
a full list of Data Viewer integration messages and their syntax can be found in the Data Viewer Manual
tk.sendMessage("!V IAREA RECTANGLE 1 %d %d %d %d target" % (scnWidth/2-w/2, scnHeight/2-h/2, scnWidth/2+w/2, scnHeight/2+h/2))
tk.sendCommand('clear_screen 0') # clear the host Display first tk.sendCommand('draw_box %d %d %d %d 6' % (scnWidth/2-w/2, scnHeight/2-h/2, scnWidth/2+w/2, scnHeight/2+h/2))
View of a trial within the viewer.
path_ = '..' + os.sep + pic tk.sendMessage('!V IMGLOAD FILL %s %d %d' % (path_, width, height))
!V IMGLOAD CENTER fixations.gif 200 200