OS (e.g. Win10): Windows 11
PsychoPy version (e.g. 1.84.x): 2023.2.3
Standard Standalone? (y/n) If not then what?: Installed via terminal
Monitor Refresh Rate: 60hz
What are you trying to achieve?:
I want my script that sends trigger via TCP to occur at the same time as the photodiode trigger.
The Problem:
I’m using a small rectangle flash as a trigger to a photodiode. The flash appears 5+ frames after the routine has begun. This is an issue because I’m trying to collect EEG data and I’m relying on custom logging of stimulus onset + the photodiode.
My experiment setup:
As you can see from the image above, I have a function that sends a trigger to the EEG system via TCP socket. The script is placed AFTER the rectangle that is supposed to be my photodiode trigger. As you can see it takes 5+ frames for it to be drawn on the screen, when I would have expected it to take less than that. What’s going on? What am I doing wrong?
(by the way, the rectangle shape is set to be ‘Start’ at frameN = 0. But, it doesn’t matter whether I set it to start at frameN=0 or at Start in seconds at 0.0s. )
Thanks in advance!