From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
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.
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.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions Unofficial Forum Rules and Guidelines "Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5