LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Aborting a VI

Hallo,

does anybody of you know a VI that stops a running VI?

(context: I made a PopUp-Box with the message "Program cancelled". I want LabVIEW to stop then.

Arno
0 Kudos
Message 1 of 3
(2,555 Views)
Well in the applications tool box there is the stop command /exit command or you could create a local variable (ie right click then goto create) for the button that stops the outside control loop. Anyways that should help a little.
0 Kudos
Message 2 of 3
(2,555 Views)
Well, the Stop function will certainly work but it's not usually recomended. The problem with it is that you might have active hardware, open file references, etc. that should be properly closed. If you have a pop-up, process the Boolean (or whatever it is in your program that causes the pop-up) in your VI to stop whatever is still running. It might be as simple as passing that value to the termination terminal of a while loop. An orderly shutdown should be a part of the overall program design and not an afterthought.
0 Kudos
Message 3 of 3
(2,555 Views)