LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

windows closure

I use big VI with many windows open .Is there way to close all open front
panels programmaticaly.
Regards,
Dimitar
0 Kudos
Message 1 of 4
(2,908 Views)
I suppose you have some way to stop all those vi's, i think the best way is to stop them using global variables or passig stop data, but you can allways use vi server to close front panel, getting references to all open vi's.
Hope this helps
0 Kudos
Message 2 of 4
(2,908 Views)
You can use the vi server to stop and close vi in memory. I have made a simple example that should get you started. It gets all the vis in memory and aborts them if they are running, then closes their front panel. It will leave itself open however.

Try it out. I think it'll be a good start, but be aware that it just closes the vis, whether that have changes or not.

Brian
0 Kudos
Message 3 of 4
(2,908 Views)
Attached is a library that contains a vi that hides the window, but keeps the vi running. You have to pass it the window name or refnum, you may want to check out http://members.nbci.com/george_zou/index.htm for more windows related vi's.

pat
0 Kudos
Message 4 of 4
(2,908 Views)