From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i create a sub vi

hi
can any one please tell me how to create a sub vi
thanks
0 Kudos
Message 1 of 4
(2,671 Views)
Creating a subvi's is just like creating a vi.
Chapter 2 of the LabVIEW User Manual gives some valuable info on that.
Another option is to select the code you want to "sub-vi". Select under "edit" "create subvi" and voila, your subvi.
0 Kudos
Message 2 of 4
(2,671 Views)
If your creating one from parts of a diagram, just drag a rectangle to
enclose what you want, uner FILE select create sub-vi.
Else, just write it as any vi and use it in another vi.

On Mon, 11 Mar 2002 00:30:07 -0800 (PST), PdB_Serenity_nl
wrote:

>Creating a subvi's is just like creating a vi.
>Chapter 2 of the LabVIEW User Manual gives some valuable info on that.
>Another option is to select the code you want to "sub-vi". Select
>under "edit" "create subvi" and voila, your subvi.
0 Kudos
Message 4 of 4
(2,671 Views)
Make a new Vi (your subVi), go to the Hierarchy window, drag your new Vi into the diagram of your main Vi. Link it by right-clicking the icon in the top right corner of the front panel, choose "show connector." Click on the fields and link them. You might need to right click the subVi icon in the main Vi and choose "Relink to subVi" if you change the connectors.
0 Kudos
Message 3 of 4
(2,671 Views)