Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trial Manager Error: serial port returned 0 bytes.
#1
Hi,

I'm using the trial manager which is working very well most of the time, however, occasionally it throws the following error (usually after at least ~150 trials)  which causes Bpod to crash and require a reset:

Error using ArCOMObject_Bpod/read (line 348)
Error: The serial port returned 0 bytes.

Error in TrialManagerObject/startTrial (line 89)
           SMA_Confirmed = BpodSystem.SerialPort.read(1, 'uint8');

Error in Sequence (line 346)
   TrialManager.startTrial(); % Start processing the next trial's events (call with no argument since SM was already
   sent)


Assembly time of the SM is consistent across trials and shorter than my minimum trial time. This error does not consistently occur every time, but does occur across multiple setups. 

I am using Gen2 BPod with a R1.0 state machine running v1.58.

Thanks!
Reply
#2
Hi again Josh,

We are still struggling with this error, would really appreciate any advice. 

Many Thanks!

Emmett
Reply
#3
Hi EJT,

I replied by Email with an attachment that patches TrialManager.
Please let me know if it works, and I'll add it to the next release.

Thanks,
Josh
Reply


Forum Jump: