@keeper wrote:
Hi me newbie,
I want to exit my labview program immediately regardless whether is it still running or not? Is it possible?Please help me thanks you..
Ahh, a weird idea : how to exit even a not-running program ?
I suppose that you have read the "Getting started" LV manual ? If not, try to get a bit more familiar with LabVIEW. There are hundreds of examples shipped with LV.
The options exposed below are answers to questions that you didn't ask explicitely, such as "how to stop a running vi when I can't access its front panel window ?", or "How to stop a vi stuck in an infinitely-running loop ?"
Such situations arise frequently during application development.
Possible solutions :
1/ include a separate while loop in the program, running in parallel, with a boolean "Stop" control wired to a Stop function (found in the "Application Control" sub-palette). This will stop the vi, regardless of what's going on in the other parts. Don't forget to put a "Wait" function, with a reasonable delay (300 ms) in the loop to leave some time to other processes;
2/ same, using the "Exit LabVIEW" function. The effect is more drastic, but this as an advantage over the previous option : it can be used in a separate vi. BTW, it works also on non-running vis !
3/ more sophisticated, the attached tool stops all running vi's. It scans and abort all the vis in memory. Should stay on your deskstop, to be launched at will, since this is sometimes the only solution to stop a fool vi without loosing all your work !
4/ Unplug the computer, or remove the battery.
I believe that solution 4 is the most effective REVERSIBLE solution, since it works even when LabVIEW is not running.
If you accept also irreversible solutions, I have a lot of innovative ideas, using steamrollers, flamethrowers...
CC
😄
Chilly Charly (aka CC)