Hi,
I am having an issue with the BPod Hifi Module. I can only run my script once, then I always get the following error:
Error using serialport
Unable to connect to the serialport device at port 'COM8'. Verify that a device is connected to the port, the port is not in use, and all serialport input
arguments and parameter values are supported by the device.
See related documentation for troubleshooting steps.
Error in ArCOMObject_Bpod (line 204)
obj.Port = serialport(portString, baudRate);
Error in BpodHiFi (line 88)
obj.Port = ArCOMObject_Bpod(portString, [], [], [], 1000000, 1000000);
Error in TestPhase1_LearningTask_HiFi (line 17)
H = BpodHiFi(BpodSystem.ModuleUSB.HiFi1); % The argument is the name of the HiFi module's USB serial port (e.g. COM3)
Error in run (line 91)
evalin('caller', strcat(script, ';'));
Error in LaunchManager>launch_protocol (line 843)
run(protocolPath);
Error while evaluating DestroyedObject Callback.
If I re-start Matlab I do not have this issue anymore. But for now I need to re-start Matlab every time I want to start a new protocol/ run a new session, which is not ideal.
Do you maybe know why that is the case?
Thanks in advance for any help!
Luna