LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

accessing vi from other vi

Hi,

     I have one problem with my vi. that is,if the condition is true than the current vi should be unloaded and a vu\i that we specify should be opened.I've attached my vi here.plaease find it.

 

Thanks
kiranmayi
0 Kudos
Message 1 of 4
(2,513 Views)

   I have one problem with my vi. that is,if the condition is true than the current vi should be unloaded and a vu\i that we specify should be opened.I've attached my vi here.plaease find it.

 

Normally, VIs that you call (when you place an instance of them on your block diagram) cannot be "unloaded".  They exist in memory, ready for action, as long as the parent VI does.

 

If you seriously want to unload one, you have to call it dynamically (Use OPEN VI REFERENCE, CALL VI by REFERENCE, and CLOSE REFERENCE).  You cannot have any static references to it, only references by name/path.

 

Unless it's huge, or you have some other special requirement, there's generally no need for that. 

 

 

P.S. Nothing got attached. 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 4
(2,505 Views)

sorry,Please find the attached vi here.

     

Thanks
kiranmayi
0 Kudos
Message 3 of 4
(2,479 Views)

I don't understand.  The VI you attached has nothing to do with unloading VIs, it doesn't even try.

 

 

It's not clear what it IS supposed to do.

 

If the name & password are not correct when it first runs, it stops the whole program, including any parent VI.

 

If the name & password ARE correct when it first runs, it loops and loops (at 3.3 million times per sec on my machine) waiting for you to hit the STOP button.

 

You'll have to spend some words explaining what exactly you're trying to do, before anyone can help you. 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 4 of 4
(2,455 Views)