psychopy.org | Reference | Downloads | Github

Wrong trigger numbers recorded

Hi everyone. I have a problem so in my task i have 3 triggers, but i got this triggers yesterday


So that extra “224” shouldn’t be there, what can I do? also, i have another task with 10 triggers, and sometimes the numbers are changed so 1 is 194, 9 is 224 etc.
this is my script
begin experiment

import serial
port = serial.Serial("COM5", baudrate = 115200)

begin routine

port.write(trigger)
if trigger ==1:
    port.write(1)
elif trigger ==2:
    port.write(2)
elif trigger ==3:
    port.write(3)
port.write(str.encode(chr(trigger)))

end of experiment
port.close()

Hi there, please can I check - is this the same issue you reported here? or something new Serial Port EEGbiosemi - #25 by Stephanie_Aedo

Thanks,
Becca

hey,
Yes, is the same.