Replies: 1 comment
-
Add your workflow please (#864) If |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to send a command to an arduino via SerialStringWrite every 1 second while a condition is being met (in this case when the animal is in a certain part of a VR corridor). I've tried to do this by creating a conditional on a SubscribeSubject (z pos), and adding a delay to the end of the line. However, this results in the script crashing/freezing after a couple of trials, or if the animal remains in the conditional True part of the corridor. The SubscribeSubject (z pos) is updated very frequently, and my feeling is that the delay is not causing the process to be skipped during the delay period, but rather queued up in some way until the script eventually freezes.
Do you have any advice on how such a function could be implemented?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions