Notifications
Clear all
Jun 19, 2025 2:43 pm
Hi everyone,
We are trying to use ninja GUI with ninjaNIRS 2022 hardware.
The respective firmware has been flashed to the Control Board and the Detector Interface Card. The git branch of ninja GUI has switched to ninjaNIRS22, and the correct device type has also been selected in the configuration file.
Problem Description:
When we launch the GUI, we get the following output:
>> ninjaGUI('cqw')
Checking compatible devices...
This install is compatible with the following devices:
NIRS1k
ninjaNIRS2020
ninjaNIRS2021a
ninjaNIRS2022
ninjaNIRS2024
Looking for cqw.cfg...
Loading cqw.cfg...
Setting GUI environment for device ninjaNIRS2022
Starting ninjaGUI application
This install is compatible with the following devices:
NIRS1k
ninjaNIRS2020
ninjaNIRS2021a
ninjaNIRS2022
ninjaNIRS2024
Looking for cqw.cfg...
Loading cqw.cfg...
Setting GUI environment for device ninjaNIRS2022
Starting ninjaGUI application
Connecting to serial port COM5
36 rb = read(s, 7, 'uint8');
Warning: The specified amount of data was not returned within the timeout period of 'read'.
'serialport' was unable to read all requested data. For more information on possible reasons, see the 'serialport' read warning.
37 if 240 ~= rb(1)
'serialport' was unable to read all requested data. For more information on possible reasons, see the 'serialport' read warning.
37 if 240 ~= rb(1)
StatReg readback header error
StatReg readback command error
The variable rb ends up being an empty array [], or [0, 0, 0, 0] sometimes;
A screenshot showing the details of the variable 's' has been attached.
Does anyone know what might be going wrong here?
Any help or suggestions would be greatly appreciated!




