Receiving trigger from fMRI Serial Port

Hi all,

I am trying to receive triggers from an MRI that uses a serial port trigger. I have read this PsychoPy webpage: Communicating with fMRI — PsychoPy v2024.2.2

Based on this, I tried using the example code component with: “from psychopy.hardware.serial import SerialPort”

However, I get an error saying: "ModuleNotFoundError: No module named ‘psychopy.hardware.serial’.

As such, I was wondering if anyone has a solution for the correct module to import? Any help would be greatly appreciated!

I might also suggest the webpage be updated if it is not up to date or if it needs more information to get this code to work.

Thank you in advance!