LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

executable build close when stop

I am building an executable application. When the  application ends, it remains in an open window that needs to be closed separately afterwards. Is there  a way for that window to close automatically when the application ends?


Message 1 of 5
(3,370 Views)
Under application control there is a VI called Quit LabVIEW.  That should do the trick.
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 5
(3,365 Views)
But you should wire the Application>>Kind property into a case structure to only run this VI when you are in an EXE.

___________________
Try to take over the world!
Message 3 of 5
(3,355 Views)

Thanks for the extra info about Kind property.  I couldn't figure out how to do it even though I know it was possible.

Matt

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 4 of 5
(3,340 Views)
Attached is a VI I wrote which I use for this. Note that it only exits if it was called by the top level VI. The reason I did this is because I sometimes take working programs and call them from other VIs. This allows closing them without stopping the EXE. I haven't really checked how this works with dynamic calls.

___________________
Try to take over the world!
Message 5 of 5
(3,321 Views)