__________________________________________________________________________________________________________________ *PUPIL SIZE MONITOR - with Eyetracker* __________________________________________________________________________________________________________________ Script Author: Sean Draine, Ph.D. (seandr@millisecond.com) for Millisecond Software, LLC Date: November, 2013 last updated: 11-05-2019 by K. Borchert (katjab@millisecond.com) for Millisecond Software, LLC Script Copyright © 11-05-2019 Millisecond Software ___________________________________________________________________________________________________________________ BACKGROUND INFO ___________________________________________________________________________________________________________________ This script demonstrates a using a Tobii eye tracker to monitor pupil size as the screen becomes gradually lighter. ___________________________________________________________________________________________________________________ DATA FILE INFORMATION ___________________________________________________________________________________________________________________ The default data stored in the data files are: (1) Generic Raw data file: 'pupilsize_raw*.iqdat' (a separate file for each participant) (2) Summary data file: 'pupilsize_summary*.iqdat' (a separate file for each participant) computer.platform: the platform the script was run on (win/mac/ios/android) script.startdate: date script was run script.starttime: time script was started script.subjectid: assigned subject id number script.groupid: assigned group id number script.sessionid: assigned session id number script.elapsedtime: time it took to run script (in ms); measured from onset to offset of script script.completed: 0 = script was not completed (prematurely aborted); 1 = script was completed (all conditions run) ************************************************************************************************************** ************************************************************************************************************** EYETRACKER ************************************************************************************************************** ************************************************************************************************************** By setting the /plugin attribute to "tobii", Inquisit will automatically discover and connect to a tobii eye tracker on the network. / plugin = "Tobii" ************************************************************************************************************** !!!REMAINING CODE: Customize after careful consideration only!!! ************************************************************************************************************** ************************************************************************************************************** ************************************************************************************************************** DEFAULTS ************************************************************************************************************** ************************************************************************************************************** script requires Inquisit 6.0.0.0 or higher /canvasaspectratio = (4,3) /minimumversion = "6.0.0.0" / fontstyle = ("Arial", 3%, false, false, false, false, 5, 1) /txbgcolor = white / txcolor = (0, 0, 0) ************************************************************************************************************** ************************************************************************************************************** DATA ************************************************************************************************************** ************************************************************************************************************** *********************** summary data file *********************** / columns = (computer.platform, script.startdate, script.starttime, script.subjectid, script.groupid, script.sessionid, script.elapsedtime, script.completed) ************************************************************************************************************** ************************************************************************************************************** STIMULI ************************************************************************************************************** ************************************************************************************************************** / items = ( "Left pupil width: <%eyetracker.meanleftpupilwidth%> Left pupil height: <%eyetracker.meanleftpupilheight%>") / position = (25%, 30%) / fontstyle = ("Arial", 2.5%, true, false, false, false, 5, 0) / size = (30%, 20%) / color = white / txbgcolor = black / erase = false / items = ( "Right pupil width: <%eyetracker.meanrightpupilwidth%> Right pupil height: <%eyetracker.meanrightpupilheight%>") / position = (75%, 30%) / fontstyle = ("Arial", 2.5%, true, false, false, false, 5, 0) / size = (30%, 20%) / color = white / txbgcolor = black / erase = false / color = black / size = (100%, 100%) / erase = false ************************************************************************************************************** ************************************************************************************************************** TRIALS ************************************************************************************************************** ************************************************************************************************************** / trialduration = 250 / ontrialbegin = [ shape.screen.colorred += 1; shape.screen.colorblue += 1; shape.screen.colorgreen += 1; text.leftpupilsize.textbgcolorred += 1; text.leftpupilsize.textbgcolorblue += 1; text.leftpupilsize.textbgcolorgreen += 1; text.rightpupilsize.textbgcolorred += 1; text.rightpupilsize.textbgcolorblue += 1; text.rightpupilsize.textbgcolorgreen += 1; ] / stimulusframes = [1 = screen, leftpupilsize, rightpupilsize] / inputdevice = eyetracker / showmousecursor = false / isvalidresponse = [false;] / branch = [ if (shape.screen.colorred < 255 && shape.screen.colorblue < 255 && shape.screen.colorgreen < 255 ) return trial.test; ] ************************************************************************************************************** ************************************************************************************************************** BLOCKS ************************************************************************************************************** ************************************************************************************************************** / trials = [1=test] ************************************************************************************************************** ************************************************************************************************************** EXPERIMENT ************************************************************************************************************** ************************************************************************************************************** / blocks = [1 = test] ************************************************************************************************************** End of File **************************************************************************************************************