LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pause execution

Hello All!

I try to implement error handler vi, that run in parallel with main.vi. My idea was that error handler will pause execution of main.vi, handle the error and return execution of main.vi again. I can implement this by state machine with empty case, but this aproach will let me to return execution only to start of state where error occur. What if i want just pause execution of vi in place where error occur, and to continue execution after errror handling from same place? Any ideas?
0 Kudos
Message 1 of 4
(2,957 Views)
You could simply put an error dialog or something that queries the Error Cluster within your loop and then when the error happens the loop will stop as you will have to click o.k. or something along those lines.
0 Kudos
Message 2 of 4
(2,957 Views)
Thanks.

But i can't use error dialog because program works automatically without user.
0 Kudos
Message 3 of 4
(2,957 Views)
If you want to return to the last state where the error occured, you could use a separate shift register to track the last state and if an error does occur, after clearing it, just set the next state to be whatever is in the shift register. If you're using queue, this is easy to do.
0 Kudos
Message 4 of 4
(2,957 Views)