TRACKPixx Demo 2 -- Recording and plotting pursuit 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 dot moving in a circle around the center of the screen. We record 5 seconds of pursuit data. This data is then superimposed over the target path and saved into a .csv file for further analysis in your software of choice. .. image:: PursuitTracking.png :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 after 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`` when the target appears. This schedule controls recording of eye data, which is stored on a data buffer on the DATAPixx3 controller. We record 5 seconds of pursuit data, and plot this in MATLAB for inspection. Eye data is also written into a .csv file for further analysis. .. literalinclude:: ../DatapixxToolbox/DatapixxDemos/TPxPursuitTracking.m :language: matlab :emphasize-lines: 29-32, 36, 42, 79, 110, 115-117, 165 :linenos: