LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Invoke VI

Hi,
 
Now I want to invoke one VI(first) in another VI (second).
 
It doesnot like subVI. My purpose is when I press the button, the front panel of the first will close and the second open.
 
I think it just like the "NEXT" button when we install some software.
 
By the way ,there are some data which is on the first VI will be used on the second one.How can I do?
 
Thanks
 
 
0 Kudos
Message 1 of 6
(3,442 Views)


troy_zhang wrote:
Hi,
 
Now I want to invoke one VI(first) in another VI (second).
 
It doesnot like subVI. My purpose is when I press the button, the front panel of the first will close and the second open.


It IS like a SubVI when you want to close the FP of the first, while trying to open that of the second; only difference being the second VI is also a pop-up VI like that of the first.
 
What you can do is like that in the attached example in LV 7.1.
- Partha ( CLD until Oct 2027 🙂 )
Download All
Message 2 of 6
(3,427 Views)
Thanks Partha,
 
Now, I have another problem.
 
In the first VI, i will set something which are used in the second one.
 
How can I do that?
0 Kudos
Message 3 of 6
(3,380 Views)

I think you re a beginner to LV. What I suggest you is to search the online help to understand the basics.

What you ve to do is to link the variables you want to pass from the MainVI to the SubVI thro' the connector pane that appears on the top right corner, I mean the VI icon in the FP.

Rt-click on it & tell Show Connector. You can select the FP controls/indicators one-by-one & wire them to this pane.

I hope this helps you a bt to get started.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 4 of 6
(3,374 Views)
My meaning is that the data like Numeric and Boolean. It is not the Sub vi.
 
Then these data is fix on the main VI and participate in calculating and opinion in SubVI.
 
Thanks, again
 
 
0 Kudos
Message 5 of 6
(3,354 Views)


troy_zhang wrote:
In the first VI, i will set something which are used in the second one.


This is what is accomplished by a SubVI.
 
First get cleared of onr thing. Any VI sitting inside inside any other VI is called a SubVI, whether it pops-up or not doesnt matter...
 
So ve to connect the required I/Os to the connector pane of the SubVI, to which the parameters/variables are passed from the MainVI.
 
Any datatype can be passed from one VI to other VI in this fashion. Smiley Happy
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 6 of 6
(3,344 Views)