Sending triggers via a Serial Port

I’m trying to include marker in an audio EEG experiment, but I’m having some problems, can you please help me see it?

serialPort = serial.Serial(
File “D:\psychopy\lib\site-packages\serial\”, line 33, in init
super(Serial, self).init(*args, **kwargs)
File “D:\psychopy\lib\site-packages\serial\”, line 225, in init
self.parity = parity
File “D:\psychopy\lib\site-packages\serial\”, line 336, in parity
raise ValueError(“Not a valid parity: {!r}”.format(parity))
ValueError: Not a valid parity: None

In the SerialPort object Properties, Hardware tab, under Parity: there are two drop-down entries called ‘None’. Change it to the other ‘None’ and retry.

1 Like

pygame 2.1.0 (SDL 2.0.16, Python 3.8.10)
Traceback (most recent call last):
Hello from the pygame community. Contribute - pygame wiki
1.8746 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use [‘sounddevice’, ‘PTB’, ‘pyo’, ‘pygame’] (in that order).
3.6209 WARNING Font Manager failed to load file C:\WINDOWS\Fonts\mstmc.ttf
4.2433 WARNING Font Manager failed to load file C:\WINDOWS\Fonts\mstmc.ttf
7.7695 WARNING User requested fullscreen with size [1536 864], but screen is actually [1920, 1080]. Using actual size
1.1473 WARNING Monitor specification not found. Creating a temporary one…
File “C:\Users\leomeng\Desktop\exp1\”, line 171, in

Thank you very much for your reply, sir. I didn’t see two nones in the serialport hardware options, I repeated and found that this runs with an error


sir,I only find one none