10-18-2009 04:14 AM
Hi, I was wondering how to stop a parallel while loop when a serial error has occurred. In my picture below I would like the lower loops to stop when an error occurs in the serial vis in the upper loop. As you can see I tried using a local variable, but it doesnt work. Thanks.
10-18-2009 04:28 AM
10-18-2009 04:30 AM
10-18-2009 05:00 AM
Hi nicrip,
What do you mean by "didn't work"?
When writing a TRUE to connection2 the lower loop doesn't stop??? Or did the loop stop earlier (because of missing/wrong initialization)? Did you test with a probe or breakpoint? What are the results?
10-18-2009 05:08 AM
10-18-2009 05:15 AM
10-18-2009 08:13 AM - edited 10-18-2009 08:14 AM
Hi nicrip,
well, using the timeout-input of the WaitOnOccurance? (And check afterwards if timed out?)
Or destroy the occurance, so the WaitOnOccurance will also stop waiting. (That's the quick&dirty way...)
10-18-2009 08:32 AM