+x+x+xHello all,
I have a question related to how to get data saved when using an eye tracker with a trial that uses the 'keyboard' input method. I am wording the question like this because:
I have downloaded the "kittensorpuppies" sample script and note that all eye tracker data is saved to separate files without being specifically specified in the data section of the script. In my script, however, I am using 'keyboard' as the input method (as opposed to "eyetracker" and am getting no such data saved even though the eye tracker is running during the experiment/trial.
I am guessing that I need to specify all of the desired data:
markerleftpixelx leftpixely rightpixelx rightpixely focuspixelx focuspixely leftgazex leftgazey leftgazez rightgazex rightgazey rightgazez lefteyex lefteyey lefteyez righteyex righteyey righteyez leftpupilwidthleftpupilheightrightpupilwidth rightpupilheight leftvalidity rightvalidity hasleftfixationleftfixationpixelx leftfixationpixely hasrightfixation rightfixationpixelx rightfixationpixely hasfocusfixation focusfixationpixelx focusfixationpixely
in the script if I want to have it saved to a file...? Thought I'd ask prior to hacking up my script...sorry for the laziness.
Jason
You can do both. When inputdevice is keyboard and you want to have eyetracker data in a separate data file, then defining the <eyetracker> element and /datastreams = eyetracker in the <trial>, <block> and/or <expt> elements during which you wish to acquire tracking data will work fine. If there are <trial> elements you wish to exclude, you can set /datastreams = false, and then no tracking data will be acquired during those trials. Hope this helps.
Dave,
Thanks. As always, you are an enourmous help. I've managed to make another baby step in the correct direction but I'm afraid I'm not grasping the process of 1. marking specific points in the data stream with the eye tracker and 2. how to obtain detailed gaze data (x, y point, time stamps, etc.) from the tracker. Attached is my work in progress script. I'm wanting to obtain detailed gaze information for each of the trials and have started experimenting primarily with the "traning session" trail. I want to know:
Where participants are looking when mypicturetrainT and mypicturetrainF appear. I think (hope) that if I can get this working properly on one trial I should be able to then apply my understanding to other areas in the script (fingers crossed).
Thanks in advance for any help and suggestions you are able to provide.
Regards
Jason
P.S. I was unable to attach the entire script directory (including jpeg and wav files) due to a size limitation so I am attaching the script only here.
To mark a specific point in the stream, you send a <port> marker at the appropriate point in time during your <trial>, i.e. by setting the port element to the value you wish to send and then inserting the marker into your trials' /stimulustimes or -frames at the point when you wish to send the marker. The marker value should then appear in the gaze data stream (cf.
https://www.millisecond.com/forums/Topic16009.aspx#bm16016). Looking at your script, it seems you've already set that up, so I'm not sure what's amiss or what I am missing.
As for point #2, to obtain detailed gaze data, you'll want to log detailed gaze data to the <eyetracker> data file, see
https://www.millisecond.com/support/docs/v5/html/language/elements/eyetracker.htm under properties, and
https://www.millisecond.com/support/docs/v5/html/language/elements/eyetrackertobii.htm for some more Tobii-plugin specific properties. Currently, you don't seem to log anything there except for the eyetracker.lasttimestamp property
<eyetracker>
/ plugin = "tobii"
/ columns = (date, time, group, subject, build, blocknum, trialnum, blockcode, trialcode, pretrialpause, posttrialpause, trialduration, trialtimeout, response, correct, latency,
eyetracker.lasttimestamp, stimulusnumber, stimulusitem, stimulusonset, stimulusnumber, stimulusitem, stimulusonset, stimulusnumber, stimulusitem, stimulusonset)
</eyetracker>
For illustration, see e.g. this example from the Corsi w/ eyetracking example (
https://www.millisecond.com/download/library/v5/tobii/corsiblocktappingtask/corsiblocktappingtaskeyetracking.iqx ):
<eyetracker>
/ plugin = "tobii"
/ columns = (date, time, groupid, subjectid, timestamp, focuspixelx, focuspixely, focusfixationpixelx, focusfixationpixely)
</eyetracker>
If you don't specify /columns in the <eyetracker> element at all, then the following data should be captured automatically:
https://www.millisecond.com/support/docs/v5/html/howto/tobii.htm , under "Eyetracker Data Recorded by the Plugin."
Hope this helps.