Replies: 1 comment 1 reply
-
Heya, Can you add the workflow? thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Bonsai Team,
I really hope this question is not repetitive, but I have not managed to find a similar one, neither have I really managed to understand the logic behind this not working.
Simply, I'm working with a visual detection task, were the appearance and disappearance of a visual stimuli (drifting gratings) is triggered by an Arduino input (indicating lever push, ITI, etc). The visual stimuli is in a SelectMany node, triggered by a WindowTrigger.
The direction (degree) of the visual stimuli is random, but I would like to save the direction for each trial (found in TakeLast) in the same csv were I save all other events. However, I can't seem to get the information of the direction of the drifting gratings displayed out of this separate workflow window. I tried broadcasting it with BehaviouralSubject, but if I put a SubscribeSubject in the same window as the Csv node, the name of my BehaviouralSubject is not there. The only seem to find each other within the same workflow.
Is there a way to broadcast information between windows? or should I figure out a way to trigger the stimuli without SelectMany, and have everything in the same window?
Thank you for any suggestions! (and for creating bonsai in the first place, used it in so many different ways during my phd/postdoc)
Sofie
PS. I know I'm dragging a lot of inputs into the csv file, if you have any suggestions on what the best way of doing this is (and maybe decreasing the amount of reads of the analog input), please let me know.
Beta Was this translation helpful? Give feedback.
All reactions