LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open second vi and close the first vi

i want to open the second.vi to be open from one.vi and,, and at the same time i want to close one.vi,,,
 
i find may answers in labview about this but any of them could not setisfy my requirment,,,
 
manisha
0 Kudos
Message 1 of 2
(2,175 Views)
What is your requirement?

The way to do this is with the VI Server. From one.vi get a reference to second.vi and launch it using the Run method. Then have one.vi close itself by getting a reference to itself and closing its front panel. Note that your code should also be written such that one.vi stops executing once that occurs otherwise it will keep running even though the front panel is closed. So, if you have some sort of while loop that continuously runs you will need to stop it.
0 Kudos
Message 2 of 2
(2,160 Views)