TRACKPixx Demo 1 -- Recording and plotting fixation data with the TRACKPixx3 =================================================================================== .. Note:: This demo requires TRACKPixx Revision 18 or later. You can check for recent firmware updates at vpixx.com/whatsnew This simple eye-tracking demo displays a central dot on the screen and records 5 seconds of fixation data. This data is then displayed and saved in a .csv file for further analysis in your software of choice. .. image:: Fixation.* :width: 300 :align: center At the beginning of the demo there is an optional calibration step. This step calls ``TPxTrackpixx3CalibrationTesting``, which implements a standard MATLAB TRACKPixx3 calibration script. The tracker must be calibrated for every new participant. We also recommend calibrating if a participant moves away from the chinrest. Following calibration the demo wakes the TRACKPixx3, sets up a tracking schedule with ``SetupTPxSchedule``, and starts this schedule with ``StartTpxSchedule`` shortly after target onset. This schedule controls the recording of eye data, which is stored in a data buffer on the DATAPixx3 controller. We record 5 seconds of fixation data, and then plot this in MATLAB for inspection. Eye data is also written into a .csv file for further analysis. .. literalinclude:: ../DatapixxToolbox/DatapixxDemos/TPxFixation.m :language: matlab :emphasize-lines: 27-30, 34-35, 65, 72, 79-81, 124 :linenos: