LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I have a VI A. I want A to call another VI B and execute. After B executes, I want it to close automatically and go back to A. Is this possible ? I tried using open reference and those methods, but I am not able to do it. Can someone help me ? Thanks !

Re: I have a VI A. I want A to call another VI B and execute. After B executes, I want it to close automatically and go back to A. Is this possible ? I tried using open reference and those methods, but I am not able to do it. Can someone help me ? Thanks !Hi Maximus,

correct if I'm wrong but I think subVIs are what you are searching for.
Load your VI B as subVI in VI A and connect the wires from A to the symbol of B (do you know how to achieve this ?), then B will be executed when there is data on all wires connected to it and A will continue when B generate its output. You can also display the frontpanel of subVI B manipulating the properties via the menu in the rubrik "File"

Stephan
0 Kudos
Message 2 of 6
(3,809 Views)
Re: I have a VI A. I want A to call another VI B and execute. After B executes, I want it to close automatically and go back to A. Is this possible ? I tried using open reference and those methods, but I am not able to do it. Can someone help me ? Thanks !Hi Stephan ! Thanks ! I guess I explained my question not so right. I've created a customized menu and at the instance of me selecting a menu, a VI should load itself dynamically. I am using call by reference. Sometimes it works and sometimes it won't. In short, what I want to achieve is load VIs dynamically and close them dynamically once they finish executing. Thanks !

Kudos are the best way to say thanks 🙂
0 Kudos
Message 3 of 6
(3,809 Views)
Re: I have a VI A. I want A to call another VI B and execute. After B executes, I want it to close automatically and go back to A. Is this possible ? I tried using open reference and those methods, but I am not able to do it. Can someone help me ? Thanks !Hi Maximus,

well if your code is working sometimes and sometimes not than it is correct in principal. If you could send me your code I will have a look on it and maybe be able to help you.

Stephan
0 Kudos
Message 4 of 6
(3,809 Views)
Re: I have a VI A. I want A to call another VI B and execute. After B executes, I want it to close automatically and go back to A. Is this possible ? I tried using open reference and those methods, but I am not able to do it. Can someone help me ? Thanks !Have you looked at the shipping example called Menu Selection with Events? It doesn't call the subVI dynamically but it might give you some ideas.
0 Kudos
Message 5 of 6
(3,809 Views)
Re: I have a VI A. I want A to call another VI B and execute. After B executes, I want it to close automatically and go back to A. Is this possible ? I tried using open reference and those methods, but I am not able to do it. Can someone help me ? Thanks !I have a progam that calls vi's dynamically. I first use the "Open VI Refence" function to get the path of the dynamic vi then I use an property node "Front Panel Window:Open" (True to open), an invoke node "Run VI and and Wait until done (true)", then another "Front Panel Window:Open" (False to close) to close the vi.
0 Kudos
Message 6 of 6
(3,809 Views)