Replies: 2 comments 2 replies
-
|
I am not sure what you want to do with
For the second part
I would suggest you to use Last node, which will fire when the upstream node finishes its execution |
Beta Was this translation helpful? Give feedback.
-
|
Hi @KL-Turner I distilled what I think you are trying to achieve, into a toy workflow as I do not have access to the hardware needed to run your workflow. Basically in this workflow, I use Within the
See attached workflow: Let me know if it works for you! |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to record from a sensor within a two second window, and at the end of that 2 second window emit a single True or False value for the next step. I am open to any way of doing this - but currently I am using a window with a 2 second timer. Currently however, the window doesn't appear to be outputting anything after 2 seconds. I can touch the sensor (or not) and the ReplaySubject outputs zeros or ones depending, but there's no graphical or boolean output from the Window as far as I can tell.
The section of code I am lost in is called "Response"
I am also quite puzzled with getting the trial structure to start. The main loop should begin immediately (and it does if the input is a digital input), but I'm having difficulty getting it to start with published subject unless I touch the sensor once before each trial loop.
Bonsai Instrumental PrairieView.zip
Beta Was this translation helpful? Give feedback.
All reactions