I am trying to run an experiment on PsychoPy while also recording EEG using the OpenBCI Cyton board. I would like to send triggers from the Psychopy experiment to the EEG recordings.
According to the first comment here (https://openbci.com/forum/index.php?p=/discussion/3101/psychopy-brainflow-and-markers-resolved), the 3 AUX channels of the Cyton board can be used to record trigger and marker. The Cyton documentation mentions 5 General Purpose Input and Output pins and explains how triggers can be manually sent from a physical push on the board.
I would like these triggers to be sent from Psychopy. I tried to follow this tutorial: https://psychopy.org/hardware/serialPortInstr.html#sending-triggers-via-a-serial-port
But I am not sure which port address I should use, nor how to find the port address for the Cyton AUX pins. More specifically, the port name is dev/ttyUSB1, but I cannot find its address. Running
setserial -g /dev/ttyUSB[01]
yields
/dev/ttyUSB1, UART: unknown, Port: 0x0000, IRQ: 0
And whichever address value I try in “Port” in the “Basic” properties of serialPort in Psychopy yields the following error:
raise SerialException(msg.errno, “could not open port {}: {}”.format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port 0x0000: [Errno 2] No such file or directory: ‘0x0000’
######## Experiment ended with exit code 1 [pid:215199] ########
My OS is Ubuntu 24.04. Any help is appreciated. Thanks!