10-02-2009 10:38 AM
I have 3 exes, all built from LabVIEW VI's.
2 of them run for a long duration, but for one of the exes, when it is called, it just needs to run once, then it can close.
I am calling it from the command prompt, through a batch file:
eg. start path/program.exe
If I put a 'Quit LabVIEW' function at the end of the code, will it just close this exe, or all of them?
Or is there a better way to accomplish this task?
Solved! Go to Solution.
10-02-2009 10:42 AM
Darren has published a nugget on shuting down the app using FP.Close.
Felix
10-02-2009 10:44 AM
10-02-2009 10:46 AM
It'll just quit the one.
I use this at the end of code quite a lot, and I pragmatically determine to use Quit or not depending if it is an EXE or Dev mode.
10-02-2009 11:32 AM
10-02-2009 11:44 AM
10-02-2009 01:14 PM
I just made a few small test exe's just to check.
As stated above:
- if they are all exe's, 'quit LabVIEW' will only exit the exe in which that function was called
- if they are all open VI's, 'quit LabVIEW' will close the whole environment, closing all open VI's
So in my case, I can get away with using quit LabVIEW.
10-02-2009 01:53 PM
Cory:
Sorry I'm late to the party, your tests are indeed correct. I have a PC on the floor that has two LabVIEW exe's on it. When they quit one application the other one still keeps running.
-AK2DM