LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Close LV program upon exit

Hi,
I have created 2 Labview exe vi's, with an installer. They are to be run independently.
 
The problem is that when the vi stops, it remains open, ready to be run again. This is highly undesireable.
 
Actually I had thought that closing the front panel and exiting the application would be the default action here, but apparantly it is not so. How can this be arranged?
 
I have looked for solutions here, and have come up with the following:
1: Use Property: Application: Kind to check for Run Time System, if True call Quit LabView function.
 -> it seems this closes all of Labview, including other programs open. This isn't what I want.
 
2: Use "This Vi" to get  a reference to the current VI, then "Invoke Method: Front Panel: Close."
I'm still wondering if this vi will still hang around in memory?
 
Anything else I should think of when closing down my application?
0 Kudos
Message 1 of 2
(2,738 Views)
Hi Rod,

your solution #1 should work fine, as the quit-command only applies to the calling executable. I use this in all of my executable without any problems Smiley Wink
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(2,734 Views)