LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I link the output of the main VI to a sub-VI?

What I would like to do is to take the information
(for example the error output), of a VI and get it into a subVI that I made. I don't quite understand how to call a sub VI (that I have made) and have the information go form the main VI to the sub VI.

Thanks,

Brian
0 Kudos
Message 1 of 4
(2,950 Views)
just a quick and basic one for your reference.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
Message 2 of 4
(2,950 Views)
If your subVI should be called dynamically you have to use VI server and
Call by reference node. Then you can pass the data via connector pane of
this node.

Regards
Grzegorz
SPRINTER


Uzytkownik "relative0" napisal w wiadomosci
news:50650000000800000065AC0000-1066448259000@exchange.ni.com...
> What I would like to do is to take the information
> (for example the error output), of a VI and get it into a subVI that I
> made. I don't quite understand how to call a sub VI (that I have
> made) and have the information go form the main VI to the sub VI.
>
> Thanks,
>
> Brian
0 Kudos
Message 3 of 4
(2,950 Views)
First you can open the subvi. Create an error in control on your front panel and in the upper right corner there is an icon. If you right click on this icon you can select "show connector". This will give you a connector pattern. When you hover over this connector pattern you will notice that you have the wiring tool. If not just left click on a section and you will then have the wiring tool. At this point you can left click on a section of the connector and then left click on the control that you would like to use as an input. You will then notice on the connector in the upper right corner that it has assumed the data types color that you selected. If you are using an error in/error out it will then turn a pinkish color. This indicates that a connection has
been made. if you bring up your help window you should be able to hover over the icon and see that connector that you just created. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 4 of 4
(2,950 Views)