Dear Community,
Current environment:
-
Windows 11
-
Psychtoolbox-3 (3.0.22.1)
-
MATLAB R2025b
Previous environment:
-
Windows 10
-
Psychtoolbox-3 (3.0.19.3)
-
MATLAB R2023
We run an EEG experiment using BrainVision equipment (actiAmp, TriggerBox, Recorder). All experimental code is written in MATLAB, and the experiment had been running without any issues in the previous environment.
Recently, we updated the OS from Windows 10 to Windows 11 and reinstalled all related software (MATLAB R2025b, the latest Psychtoolbox, BrainVision TriggerBox software, etc.). After this update, the code now freezes at the point where a trigger is sent to the TriggerBox.
Specifically, after sending the trigger, MATLAB becomes unresponsive—there is no output, no error message, and even attempting to stop execution does not work.
Here is the relevant code flow:
>> [handle, ~] = IOPort('OpenSerialPort', 'COM3');
IOPort - Info: Configuration for device COM3:
IOPort - Info: Current baud rate is 9600
IOPort - Info: Baud rate changed to 9600
>> IOPort('Write', handle, uint8(0), 1);
In addition, after restarting the computer, there are occasions when we cannot even run the first line that opens the serial port. I have attached a screenshot showing the error message we receive in that case below:
What we have tried:
-
Verified the COM port number after the OS update (previously
COM5, nowCOM3) -
Tested older versions of Psychtoolbox (e.g., 3.0.18.10 and 3.0.19.3)
-
Changed the baud rate to 115200
Unfortunately, none of these attempts resolved the issue.
At this point, the only differences between the working and non-working setups are the Windows OS version and the Psychtoolbox version. Does anyone have suggestions on what might be causing this issue, or how we might further troubleshoot it?
Thank you very much for your time and help.
