I am trying to create a simple VI in LabVIEW 2020 SP1 that stops two parallel loops when a stop button is pressed, or either loop encounters an error. I've used notifiers thus far and have the stop button functionality working, but when I inject an error to check I get the same behaviour with errors, the program continues running instead of stopping.
My understanding is that when the "Inject Error" button is pressed, the status flag of the error cluster in the second loop becomes true, which the notifier then sends as a boolean notification to both loops. Upon receiving a notification, each loop - which stops on true - terminates. My debugging attempts have shown that the second loop notifier is being called, but there is no response in either 'Wait for Notification'.
I feel like I'm missing something basic here. Any insight would be appreciated.
I assume that the 'send notification' function doesn't function when the error-in is true. This is normal behaviour for a lot of VIs. In this case you want to disconnect the error in from the set notifier. Other tip, you can directly wire the error into the case structure selector, no need to break out the 'status' bit.