Behavior AnalogData raises a RunTime Error #161
-
I have a behaviour device and if I use the most recent bonsai library and just add the device node and a parse AnalogData node (this workflow: workflow: behavior_bug.zip ), I get a Runtime Error: Index was outside bounds of the array. How do I debug that? I found the documentation of the API for harp but nothing on the actual nodes from different devices or example workflow. Do you some already available? Is there also a table of firmware version vs bonsai version compatibility? This device was working with harp library 3.5.2, but not with the 3.6 I think. The firmware is version 2.5 Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
You are using a version of the firmware that was never supported by the current Bonsai interface (Harp.Behavior package), and instead probably relied on the old Harp.Cf package (https://github.com/bonsai-rx/harp.cf). We are in the process of making this process much more straightforward to the users by publishing a single release that binds device firmware, device.yml and bonsai package in a single version. For now, the solution is either to use the old harp package OR update your device to a newer version. The latter is likely the best long term solution as significant improvements to the protocol have been made since. |
Beta Was this translation helpful? Give feedback.
-
Thanks, I'll update the firmware. I have maybe two related questions:
|
Beta Was this translation helpful? Give feedback.
-
Most changes should be backward compatible, however it is not guaranteed. The safest option is to update both firmware and software simultaneously.
We are also actively working on the infrastructure for documentation and examples. For now the best resources are: |
Beta Was this translation helpful? Give feedback.
You are using a version of the firmware that was never supported by the current Bonsai interface (Harp.Behavior package), and instead probably relied on the old Harp.Cf package (https://github.com/bonsai-rx/harp.cf). We are in the process of making this process much more straightforward to the users by publishing a single release that binds device firmware, device.yml and bonsai package in a single version. For now, the solution is either to use the old harp package OR update your device to a newer version. The latter is likely the best long term solution as significant improvements to the protocol have been made since.
Hope it helps!