12-15-2014 02:25 PM
I have two WHILE loops running independently.
The first one has an Event Structure which monitoring the STOP button for a user click.
The second one is reading a serial port.
When I get an error from the messages coming in on the serial port, I want to cause the other WHILE loop to stop.
What is the best way to do this?
Solved! Go to Solution.
12-15-2014 02:29 PM
Connect a case structure to the error wire and write to a signaling value property of the stop button inside the error case.
12-16-2014 10:17 AM
Another option is to create a User Event that your UI loop can register for. What this will allow you to do is make another loop that does nothing but handle these errors. Might not be worth it for a two loop system. But in larger systems, User Events are quite helpful for broadcasting data, such as errors.