Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ArCOMObject_Bpod/read Error
#1
Hi,

We spontaneously get error messages saying:

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

Error in RunStateMachine (line 239)
        TimeStamps = double(BpodSystem.SerialPort.read(nTimeStamps,
        'uint32'));

Error in RunStateMatrix (line 2)
RawEvents = RunStateMachine;"

It sounds like a communication issue between the PCs (Win10) and the Bpods.  Do you have any idea what causes this problem?

Thanks,
HK
Reply
#2
Hi HK,

It sounds like you're using an older version of the firmware and software - the latest version of RunStateMachine.m has different code at line 39.
In the latest software, we use an improved transmission scheme for events and timestamps. I suspect your issue will be resolved by updating. The new software also includes a firmware updater - so you don't have to use Arduino for the update. To use it, make sure /FirmwareUpdate/ is in the MATLAB path and run UpdateBpodFirmware('COM3') where 'COM3' is your state machine COM port. If you have firmware newer than v18, you'll be prompted to start the updater automatically when you run Bpod(), via a clickable link in the command window.

Please let me know if this helps.

-Josh
Reply
#3
(08-23-2018, 03:34 PM)Josh Wrote: Hi HK,

It sounds like you're using an older version of the firmware and software - the latest version of RunStateMachine.m has different code at line 39.
In the latest software, we use an improved transmission scheme for events and timestamps. I suspect your issue will be resolved by updating. The new software also includes a firmware updater - so you don't have to use Arduino for the update. To use it, make sure /FirmwareUpdate/ is in the MATLAB path and run UpdateBpodFirmware('COM3') where 'COM3' is your state machine COM port. If you have firmware newer than v18, you'll be prompted to start the updater automatically when you run Bpod(), via a clickable link in the command window.

Please let me know if this helps.

-Josh

Hi Josh,

Thank you for your response!  
I didn't realize that there were updates also on version 0_789.  Hopefully that solves the issue.

Best,
HK
Reply
#4
(08-23-2018, 03:34 PM)Josh Wrote: Hi HK,

It sounds like you're using an older version of the firmware and software - the latest version of RunStateMachine.m has different code at line 39.
In the latest software, we use an improved transmission scheme for events and timestamps. I suspect your issue will be resolved by updating. The new software also includes a firmware updater - so you don't have to use Arduino for the update. To use it, make sure /FirmwareUpdate/ is in the MATLAB path and run UpdateBpodFirmware('COM3') where 'COM3' is your state machine COM port. If you have firmware newer than v18, you'll be prompted to start the updater automatically when you run Bpod(), via a clickable link in the command window.

Please let me know if this helps.

-Josh

I made both changes, and it did eliminate the errors.
Thanks for your help!

HK
Reply


Forum Jump: