Hi Josh,
it's me again, I come back to this thread since I am still having the same issue with the Bpod. Below I copy the error I am getting :
Error using ArCOMObject_Bpod/read (line 291)
Error: The serial port returned 0 bytes.
Error in RunStateMachine (line 41)
SMA_Confirmed = BpodSystem.SerialPort.read(1, 'uint8');
Error in RunStateMatrix (line 2)
RawEvents = RunStateMachine;
Error in MyProtocolGONOGO (line 180)
RawEvents = RunStateMatrix;
Error in run (line 96)
evalin('caller', [script ';']);
Error in NewLaunchManager>LaunchProtocol (line 695)
run(ProtocolPath);
Error while evaluating DestroyedObject Callback
This happens randomly in the middle of experiments. Sometimes I can run long protocols (~a couple of hours) without any problem, and sometimes after 20-30 minutes of protocol running Matlab throws this error.
I have the Bpod 0.7 on a Windows 7 machine with Psychotoolbox installed, and I am using the Gen2 repo and the StateMachine_v16_Bpod0_789 firmware.
The computer has a mouse, a pair of speakers and webcam connected through USB.
In Settings > Ports on the Bpod console I have only Port 1 input enabled (the only port I am using).
For a moment I had the impression that when re-uploading the firmware to the Bpod things went better, but it is hard to tell since errors are so random. Regarding the firmware update, I should say that I followed the instructions in the Bpod wiki, however I cannot complete the upload through the Native Port as indicated, the upload stalls at some point. Typically I get this in the Arduino software during the firmware upload:
Write 44212 bytes to flash (173 pages)
[ ] 0% (0/173 pages)
[== ] 9% (17/173 pages)
And it does not progress further. However, if uploaded through the Programming Port, things run smoothly (of course I then reconnect the Bpod through the native USB port).
I should admit that I still have to test the Bpod with another USB cable (will soon buy a new one), but I wanted to know what was your opinion on this.
Thank you in advance.
Best,
Sebastian.