LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can You Programatically Close a subVI Window?

My main program runs a subVI that opens in a new window when called.  I want the window to remain open after the sub finishes running.  Is there a way to programatically close that window from the main program when I no longer want to see it?  Thanks!

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 1 of 6
(3,026 Views)

If you have a reference to that subVI, then just use an Invoke Node with the Front Panel:Close method.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 6
(3,007 Views)

crossrulz,

 

Do you know of a good on-line tutorial that could help me set things up as you suggest?


Thanks.

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 3 of 6
(2,997 Views)

Here's a snippet of how you can do it.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 6
(2,984 Views)

As of I know there is no direct tutorials that will give you information about using the Property and Methods in LabVIEW. But you can play around with that by using the VI and Control references and see the context help to understand things. Believe me you will learn more in this way than by using tutorials 🙂

 

Just a quick link about Property Nodes help

-----

The best solution is the one you find it by yourself
0 Kudos
Message 5 of 6
(2,960 Views)

You can also create a User Event which ref you send to the sub-vi and register in there. Then you just create the event "close" and it'll close itself.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 6
(2,932 Views)