LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sub-VI won't close when finished

I've attached a VI.  It won't close when it is finished running, even though I have it set to in the VI properties.  It ends and stops, but the window doesn't close.  Can anyone show me what's wrong?

Message Edited by JMBacker on 12-12-2009 10:20 PM
Jeremy Backer
CLAD
0 Kudos
Message 1 of 8
(3,808 Views)
Get rid of the stop function.  In fact, forget where you found it on the palette.  If you are ever tempted to use it again, step away from the keyboard.
0 Kudos
Message 2 of 8
(3,803 Views)
Oh sorry, I did get rid of the stop function.  In fact, I just put it in there to see if it would do the trick.  Any other ideas?
Jeremy Backer
CLAD
0 Kudos
Message 3 of 8
(3,798 Views)
I stripped down your VI to remove the errors (missing subVIs) and it works fine.  I called it from a separate VI, the window opened and then closed when I hit quit.  If you run it as a top-level VI it won't close (since it was originally opened).
0 Kudos
Message 4 of 8
(3,792 Views)

OK, that helps.  Thanks.

Jeremy Backer
CLAD
0 Kudos
Message 5 of 8
(3,787 Views)

Are you running this as a toplevel VI? (In this case it will not close the panel if run in a development environment).

 

You can always call a "FP.close" invoke node for the current VI.

0 Kudos
Message 6 of 8
(3,785 Views)

Well, it turns out I just wasn't paying attention.  There is a main VI that calls executables.  This is one of the executables being called.  Apparently the property settings won't close it as an executable?

 

All the other executables have an "Exit LabVIEW" VI in them.  I put that in this VI, and it works great.  Thanks for the help though, and thanks for the info how to close a VI, that may come in handy some day.

Jeremy Backer
CLAD
0 Kudos
Message 7 of 8
(3,775 Views)

If you close all the front-panels of an executable the executable will close.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 8 of 8
(3,750 Views)