Harp behavior states (using bonsai) #15
-
Hello I'm trying to create a bonsai workflow(attached) for control of a conditional task in mice. The simplest part of the task is as follows, where a nose poke is required within a given time, after a cue is presented: I have followed this tutorial with arduino, but when I try to replicate with Harp I hit some walls.. For instance, certain Multicast nodes display an error (No coercion operator is defined between types 'System.Boolean' and 'Bonsai.Harp.HarpMessage'). If I work around this by using a different node (i.e SubscribeSubject) eventually I can get the light to turn on, but I notice this way the infrared beam break is always being detected and the timers happen simultaneously (sometimes even before the light cue is presented). I understand that currently there is no harp-bonsai documentation but I'd really appreciate it if someone could point me in a direction, literally any help is welcomed! Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, The documentation for the Harp Bonsai is still under development, but to start I would suggest taking a look here, where the new Taking your workflow as an example, you can see below an equivalent implementation with the Harp Operators (thanks @bruno-f-cruz). This workflow uses the Harp Behavior board connected to a poke with an LED and valve at Port 0. The reward consists of activating the valve for a short period of time. Workflow (copy-paste)
Hope it helps, |
Beta Was this translation helpful? Give feedback.
Hi,
The documentation for the Harp Bonsai is still under development, but to start I would suggest taking a look here, where the new
Bonsai.Harp
library operators are described.Taking your workflow as an example, you can see below an equivalent implementation with the Harp Operators (thanks @bruno-f-cruz). This workflow uses the Harp Behavior board connected to a poke with an LED and valve at Port 0. The reward consists of activating the valve for a short period of time.
Workflow (copy-paste)