Timer (due time turns off the video acquisition)

191 views
Skip to first unread message

Paolo Botta

unread,
Oct 30, 2017, 12:47:16 PM10/30/17
to Bonsai Users
Hi Goncalo,

I have used this workflow to record an avi video using a Flycapture while after 5 seconds a servo motor is turned to 90 degrees (attached).
The only problem is that when the servo motor turns on (after 5 seconds set for one Timer), the camera and the BONSAI stop playing.

I am attaching the Workflow. Please note that in only one timer the DueTime is set for 5 sec. The rest is all 0.

Thanks for all the help.
Best,
Paolo 


FlyCapt_Servo.png

Gonçalo Lopes

unread,
Oct 30, 2017, 8:26:53 PM10/30/17
to Paolo Botta, Bonsai Users
Hi Paolo,

This happens because you connected the ServoOutput to a WorkflowOutput node. When you do this, you are actually specifying that this specific sequence is the "master" of the workflow, which means that when that sequence stops, the whole workflow should stop.

You can prevent this behavior by simply removing the WorkflowOutput node.

Hope this helps.

--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/bonsai-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/b3df208f-1614-48cb-9675-c36bb56cecfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paolo Botta

unread,
Oct 31, 2017, 4:37:52 PM10/31/17
to Gonçalo Lopes, Paolo Botta, Bonsai Users
It worked!
Thanks a lot!

Paolo Botta
Postdoctoral fellow, Costa lab
Zuckerman institute
Columbia University
Tel. +1 (347) 525-3666 | Skype paolobotta | LinkedIn

Reply all
Reply to author
Forward
0 new messages