LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to totally close a running LabVIEW Application

Hello NG,

I have a little problem closing a running LabVIEW Application. For example I run 2 Applications in parallel. I would like to totally close one of them. If I use the "Exit LabVIEW" VI both Applications will be shut down. If I only stop the Application, the not running Front Panel is still available. How could I close an Application like a normal Windows program?

Thanks a lot for your help.

Best regards,
Michael
0 Kudos
Message 1 of 2
(2,523 Views)

If you build both applications into seperate executables, I believe Exit LabVIEW should only affect the one where it was run.

If these are 2 VIs running inside LV, you can wire F into FP.Open property of the top level VI. Once the FP of the top level VI closes, the entire hierarchy will be closed as well. This also works with the RTE.

To do this, you need to create a property node (Application Control palette), right click it and select the VI class and select the property.
The other option (basically the same thing) is to use the invoke node with the Close FP method.


___________________
Try to take over the world!
Message 2 of 2
(2,516 Views)