LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FP.Close doesn't close application.

Solved!
Go to solution

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

Ron Deavers, CLD
0 Kudos
Message 1 of 16
(5,674 Views)

You should be doing something like this:

 

Test_FPClose_BD.png

 

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?

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 16
(5,667 Views)

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.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 3 of 16
(5,653 Views)

 


@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.

 

0 Kudos
Message 4 of 16
(5,630 Views)

And also, please vote for this idea (and tell others to), so that we don't have to play with this any more - 


Add an easily accessible way to close an application


___________________
Try to take over the world!
0 Kudos
Message 5 of 16
(5,625 Views)

Ah sorry, I did not see the word "application" in the title and thought you were talking about a VI. 😉

0 Kudos
Message 6 of 16
(5,615 Views)

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

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!
Message 7 of 16
(5,610 Views)

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. Smiley Surprised

Ron Deavers, CLD
0 Kudos
Message 8 of 16
(5,592 Views)
Solution
Accepted by topic author programmindragon

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.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 9 of 16
(5,590 Views)

I've added a blog entry with an updated version of the ROOT FOLDER vi.

 

Terminator 2 - the Sequel

 

When you're ready to quit, simply do this:

 

Quit.png
That assumes you have INITed the ROOT FOLDER vi at the start of your program.

 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 10 of 16
(5,580 Views)