LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to close open subvi's in the beginning of running the main vi.

Hello,
 
I've got a pretty large application that is dependant on several subvi's.
I'm searching for a way to close the subvi's when I start running my main application.
All these subvi's need to be closed during the initialisation phase of my main application. (before it is doing its main task.)
 
I know it is possible to ask for the VI's in memory for my LabVIEW application, but I don't know how to close a subvi programmatically. (unload it from memory)
 
What I want to do is check for a list of open subvi's in the beginning of my main application. (only a limited set of subvi's)
If one of the subvi's is indeed open I want to close it (unload it) and then start doing my thing from within the main application.
 
Note: The subvi's need to be closed so that I can load them dynamically later in the program. If one of the subvi's is open and I start running my main application I get an incorrect behaviour.
 
Thx for the help!
 

Message Edited by noxus on 11-14-2006 08:07 AM

0 Kudos
Message 1 of 6
(3,285 Views)
Noxus,

I programmed a small example.
If you have further questions do not hesitate to come back...

BR,
ThSa
(Additonally I added the screenshot in term of that you do not have LV 8.20)
0 Kudos
Message 2 of 6
(3,269 Views)
Thanks ThSa,
 
This worked fine for me.
I first check to see if the FP is open and only close it when it was already open.
 
Thx again!
 
noxus
 
0 Kudos
Message 3 of 6
(3,261 Views)

Just don't forget -- it's considered good practice to close any vi references you open...

-Kevin P.

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 4 of 6
(3,252 Views)
Kevin,
you are absolutely right, but that should be only a demonstration and not the final solution 🙂


ThSa


0 Kudos
Message 5 of 6
(3,246 Views)
I know, and it's also implemented like this in my final application!
0 Kudos
Message 6 of 6
(3,228 Views)