Hello,
Using: Windows 10 (x86_64)
PsychoPy version 2022.2.4
experiment built in coder, with code-blocks
fly in the ointment: eyetracking
I’m following some advice to use ioServer.sendMessageEvent(text=“blah”) for logging start/stop times in an experiment, but I don’t know where these messages are written to? Nothing appears in the logfile, xlsx, csv or hdf5 file.
I have tried interrogating the hdf5 file using the psychopy suggested python code (using the module h5py) and separately with the standalone application hdfview, but I don’t know how or where I can check to see if these markers are being written?
Any help would be much appreciated.
Best wishes,
Jon
What kind of eye-tracker, and is it the eye-tracker or PsychoPy saving the eye-tracking data? Those sendMessageEvent calls (should) send info to the eye-tracker, so they should only show up in the data saved by the eye-tracker.
EyeLinks also use a tracker.sendMessage function instead of ioServer.sendMessageEvent, as I recall?
1 Like
Hi,
Thanks for the reply.
It’s a pupil core. I had a closer look at hdfview and can now see the added info under the events section.
Is there a simple way to merge the information coming from the eye tracker with the events information? I guess I’ll need to code something up with the h5py library but wondered if there was any code out there already?
In short, I’d like to extract the pupillometry measures from around the marked events and build peri-stimulus plots. I’ll need to deal with missing data and then exact the relevant measures for pupil size.
Thanks for any help you can provide.
Best wishes,
Jon
That’s just a question of how you analyze HDF5 data and honestly I don’t have a lot of experience with it, so I’m afraid I can’t help you there, but if you search “hdf5” on the forum you might find some helpful threads.