LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Defining SubVI!

Hi!

I read the LabView manual on how to define a subVI and got the
connector pane setup. But nowhere could I find info on how to actually get
the
custom VI placed as a subVI inside another VI. Must be so obvious
that they must have forgot to mention it...

How do I get it to be placed on the Labviews "Functions" panel and where
do you define on which subpanel... Is it possible to insert a subVI without
placing it on the "Functions" panel?

Thanks!
Atmapuri.
0 Kudos
Message 1 of 5
(3,124 Views)
The functions palette has a choice called select VI...(icon looks like a VI icon inside a dialog "bubble") choose that and browse to the VI you want to insert as a sub-VI.

If you use a function frequently you can put it in the user.lib directory and it will automatically show in the user lib subpalette of the functions palette. If you want it to be a separate button somewhere else edit the menu by selecting Edit Palette Views from the Tools->Advanced menu.
Message 2 of 5
(3,124 Views)
Hello,

Mads is correct. You can place the subVI by going to "Select a VI..." on the functions palette, and selecting your saved VI.

You can also drag the subVI directly into your main VI. Just open the subVI, click and hold on its icon, and drag it into the other VI's block diagram.

I hope this helps! Good luck with your developement.

Liz F
National Instruments
0 Kudos
Message 3 of 5
(3,124 Views)
I wanted to add a quick note to Mads reply.

You can also drag and drop the VIs from windows explorer. If you have the VI open you can drag and drop the icon onto a diagram of another VI.

Evan
National Instruments
0 Kudos
Message 4 of 5
(3,124 Views)
There is another way to put a subVI into a VI as well. Have the subVI on your screen (with the icon visible - not the connector pane) and the VI that you want to put it into. Then click and drag the icon for the subVI and drop it onto the diagram of the VI you want it in. I do this all the time. Create a subVI (don't forget to save it), drag it in and done.

Rob
0 Kudos
Message 5 of 5
(3,124 Views)