LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Close a first VI after switching to a second VI

Solved!
Go to solution

OK.  I have a request to develop a program that will basically call a first VI and then close it after opening a second VI.  I haven't come across doing this before (usually there is a "main" VI at start-up that runs throughout the program).

 

I am curious if there is a clean way to exit the startup VI with other VIs still open (if they are called asynchronously maybe??).

 

I am sure I can just Show/Hide the front panels as needed for a work around.  But this keeps everything loaded and open, etc. and I am wondering if there is a cleaner way.

 

To be clear the steps I am trying to accomplish are:

 

1) Start an application with a Start-Up VI

2) Make some simple user selection and equipment verification

3) Based on the selection, call one of several different VIs and transfer control to it

4) Close the original VI (since it is no longer needed).

5) Close the second VI when the user is finished.

 

Thanks,

 

Grant

0 Kudos
Message 1 of 3
(2,291 Views)
Solution
Accepted by topic author GWOULE

See example - Un-Zip and run the Start.vi .

Message 2 of 3
(2,273 Views)

Great.  So the zip files attached basically call a VI asynchronously and then close the original VI.

 

I had considered this, but I worry about how clean it really is?  But, I guess if this is called as a "Call and Forget" VI and the reference to the VI is closed in the first VI then things should be wrapped up nice enough.

0 Kudos
Message 3 of 3
(2,260 Views)