I’m testing out the new eyetracking routines and had some questions about their usage. I’ve previously used ioHub code to record eyetracking data. Without adding any additional code and just using the Record and ROI routines.
In testing with the MouseGaze simulator I’m not seeing how the ROI fixations are being saved in the HDF. I looked in ‘/data_collection/events/experiment/MessageEvent’ and it is empty. I set up ROIs where my stimuli will appear and even though i used the trackpad to ‘fixate’ on different stimuli I only see one FixationStartEvent and 0 FixationEndEvent. When I look at MonocularEyeSampleEvent and plot gaze_x and gaze_y I get very sensible plots. Where should the ROI fixations be in the hdf? In the roi component properties I set the ROI to be a circle of equivalent size to my stimuli and at the same location. Data save is set to ‘every look’ and time relative to set to ‘roi onset’, with save onset/offset times selected.
If I want to save other event data like the trial conditions (which aren’t related to ROI), would I just use iohub code like I previously would, e.g., in a begin routine tab io.sendMessageEvent(text=f"start_TRIAL-{trialNum_cumul}_EVENT-stim_CONDITION-{stimCode}") # start of the trial
and another in end routine to signal the end of the event?