When I use FP.Close in my main vi, which is the last step in my code, it stops the program but does not close the front panel. Although the program has stopped running, the front panel stays open. I would like to avoid this because the operators think that it is still running.
Solved! Go to Solution.
You should be doing something like this:
It works here. Did you change any of the VI Properties from their default values? Do you open the VI normally or do you call it by reference?
You also need to QUIT LABVIEW.
See this article: The Terminator
(Looks like I need to update the ROOT FOLDER vi mentioned there for LV 2010).
The principles are the same, though.
When I use FP.Close in my main vi, which is the last step in my code, it stops the program but does not close the front panel.
Show use some simple code that shows this behavior. I cannot reproduce this.
Remember to close all the front panel windows, you might even be capturing the 'Panel.Close?' filter event, and discard that event.
Besides, which version of LabVIEW (+OS) are you using?
Here is how I have it configured. I am looking through the vi properties and haven't found anything that would stop it from closing. I do not feel right about using Quit LabVIEW because, although I've closed all my references and external loops, I feel like I'm pushing the red stop button and that's a no-no.
Well, I can't help with how you feel, but you have to QUIT LABVIEW in an application.
No matter HOW you quit you shouldn't do it before you close references, files, connections, etc.
Once you've done all that, then it's time to QUIT LABVIEW if you're in an app.
I've added a blog entry with an updated version of the ROOT FOLDER vi.
When you're ready to quit, simply do this: