04-19-2017 08:11 AM - edited 04-19-2017 08:12 AM
Hi All,
I have two loops that should run simultaneously. I'm building an XY linear stage where the first loop controls the movement of the motors and the second loop checks the state of the limit switches mounted on the stage. The problem is I wanted to stop both of the loops together so I used notifier, but the thing is that the second loop only runs once and then waits for a new notifier "I guess?!". The code looks like the attachment. Any tips are appreciated.
04-19-2017 08:16 AM
Yes, it is waiting for the Notification. What is wrong with just using the global variable you already have in there? But if you want to keep the Notifier, wire a 0 to the timeout input of the Wait For Notification.