12-29-2010 05:20 PM
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.
-Thanks
Solved! Go to Solution.
12-29-2010 05:55 PM
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?
12-29-2010 07:06 PM
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.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
12-30-2010 01:30 AM
@programmindragon wrote:
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.
12-30-2010 01:36 AM
And also, please vote for this idea (and tell others to), so that we don't have to play with this any more -
12-30-2010 02:06 AM
Ah sorry, I did not see the word "application" in the title and thought you were talking about a VI. 😉
12-30-2010 02:22 AM
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?
Ton
12-30-2010 11:11 AM
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.
12-30-2010 11:19 AM
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.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
12-30-2010 11:58 AM
I've added a blog entry with an updated version of the ROOT FOLDER vi.
When you're ready to quit, simply do this:
Blog for (mostly LabVIEW) programmers: Tips And Tricks