Hi fellow PsychoPyers,
I am currently programming a psychomotor vigilance task in PsychoPy that should be used to study the EEG bases of vigilance. The tasks works perfect and the script successfully sends triggers to the EEG machine everytime a new trial starts. Only problem is a significant delay between the start/stop of a trial and the start/stop triggers sent to the EEG file (at least two seconds). I wonder what may cause the problem.
I have been working with the Coder, adding the following lines:
At the beginning of the experiment:
port = serial.Serial(port='/dev/tty.usbserial-1420',baudrate=9600)
to open the COM port
then under “prepare to start Routine trial”:
which sends the start trigger to the EEG,
and finally under “Ending Routing trial”
which sends the stop trigger to the EEG.
Any idea why the delay is so long? Lemme know if you need more info from me about this, thanks!