psychopy.org | Reference | Downloads | Github

SIEMENS Trigger with Serial Port


#1

Hey! I have been using a Parallel Port Trigger to activate my task sequence but in my lab they decided to change the trigger to a Serial Port Trigger (Siemens).

I’m assuming that something like this are the changes to use Serial Port, but I don’t know if the commands for a Serial Port are enough to read the information from the Serial Port.

    #SerialPORT
    import serial
    port = serial.Serial('COM1',9600) #open first serial port
    port.read () #this is giving me problems!

The port.read() is crashing me the program, and we are not obtaining data from the trigger.

Does anyone had ever used Siemens Trigger with Psychopy?

Thanks!