LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Quit LabVIEW

Solved!
Go to solution

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?

Cory K
0 Kudos
Message 1 of 8
(3,911 Views)

Darren has published a nugget on shuting down the app using FP.Close.

 

Felix

0 Kudos
Message 2 of 8
(3,906 Views)
From my experinece the Quit LabVIEW will only affect the application that contains it. So if you have a built application it will only exit that one application. If you use it in the development environment LabVIEW itself will shutdown.


Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 3 of 8
(3,903 Views)
Solution
Accepted by topic author Cory_K

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.

Richard






Message 4 of 8
(3,900 Views)
Smiley Very Happy The spell check changed "programmatically" to "pragmatically"! Smiley Very Happy I guess they are both correct.
Richard






0 Kudos
Message 5 of 8
(3,871 Views)
Quit App instance is NOT the same as Quit LabVIEW.  Honestly, I do not know the (specifics of) difference--- Smerc, Darren, or Ben might though.  Need a LV Champ to follow through on the sepcs.

"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 8
(3,864 Views)

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.

Cory K
0 Kudos
Message 7 of 8
(3,839 Views)

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

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 8 of 8
(3,827 Views)