LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming VI as a sub VI in parent VI

Hi There,
 
Could anybody please guide me about:
How I can include a VI as a subVI in parent VI, i.e. If I have a VI with all controls and indicators and I just want this VI to be included in parent VI as a icon.
 
Also, if I am able to do so, how the sub VI will be recalled from parent VI and how the connections are possible?
 
Please advise me.
 
Thanks for your time.
Amit.
0 Kudos
Message 1 of 5
(2,695 Views)

Hi Amit,

the easiest way is to open both vi´s and insert the sub vi with drag and drop. Move the mouse over the subvi icon and press your left mouse button. Now you can insert it into your "parent vi".

Mike

Message 2 of 5
(2,691 Views)

Hi Mike,

I never thought it would be so easy.

Thanks a lot.

Thanks and regards.

Amit

 

0 Kudos
Message 3 of 5
(2,689 Views)
Hi Amit,

right-click in block diagram of "parent" vi -> select a vi. Or use drag&drop from the project window.

Or simply take part here to learn basics of LabView as you surely want to have some connections/wires to the subvi too!


Message Edited by GerdW on 04-14-2008 01:22 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5
(2,664 Views)

Hi GerdW

Many thanks for advise and link.

Thanks and regards.

Amit

 

0 Kudos
Message 5 of 5
(2,656 Views)