Replies: 8 comments 2 replies
-
@mgraupe can you confirm what version of firmware you are running on the behavior board? There was a change in the structure of analog registers in recent firmware. |
Beta Was this translation helpful? Give feedback.
-
Here are the specs of the board and the python package : harp-python version 0.4.0 Thanks, |
Beta Was this translation helpful? Give feedback.
-
The register 33 of the Behavior board is NOT AnalogRead. It is actually a reserved register (https://github.com/harp-tech/device.behavior/blob/ddf71cfbec248f1cd7b7abaa9c477ac58e4a4dae/device.yml#L15). If you want to open the analog data, you should pass the register with address 44. |
Beta Was this translation helpful? Give feedback.
-
That worked thanks. I got distracted by a wrong I have two follow up questions :
Thanks, |
Beta Was this translation helpful? Give feedback.
-
Thanks. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I follow in detail the example shown here: https://fchampalimaud.github.io/cf.bonsai/workflows/HarpExamples/BehaviorBoard/QuadratureEncoder/QuadratureEncoder.html |
Beta Was this translation helpful? Give feedback.
-
It turns out that I didn't copy the workflow from the Champalimaud website but recreated it by hand (didn't realized that there is a copy function of the workflow). I realized that the enable rotary encoder was not set in the Misc of the CreateMessage node It's working now. Thanks for bearing with me. Cheers, |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am running a Harp device and I log to separate files per register following : https://harp-tech.org/articles/logging.html
However, when I try to read the files, I get ValueErrors for several registers complaining about wrong data type. For example :
data = device.AnalogData.read('Harp/Behavior_Output_33.bin')
aborts with
ValueError: expected payload type int16 but got uint8
.It's the same behavior for the DO* registers. Other registers such as for example
DI0Trigger
can be read.Thank you for your help in advance.
Best,
Michael
=====
DeviceName Behavior
FirmwareVersion 3.2
CoreVersion 1.13
HardwareVersion 2.0
harp-python version 0.4.0
Beta Was this translation helpful? Give feedback.
All reactions