LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Add output or input to SubVi

I need to add an input to a subvi. Is this possible?

Cason Clagg
SwRI
LabView 7.1, Windows XP
0 Kudos
Message 1 of 12
(58,946 Views)
Quite possible.

Go to the front panel, and right click on the VI icon (top right hand corner) and then click "edit connector".  LabVIEW automatically assigns the number of "boxes" in the connecter to the total number of controls/indicators on your front panel.  Indicators are considered outputs, while controls are considered inputs.  To wire a control as an input, click on one of the empty boxes in your connector, then click on the control you want to associate with that box, and the box should fill in whatever colour the control is (pink for string, etc.).  LabVIEW recommends adding more connector terminals than you need in case of future changes...

Search the help on this...it explains it quite well.  Search for "Connector Pane"...it should bring up a lot of info for you.
Message 2 of 12
(58,943 Views)
Thanks. I couldn't find that in the help files anywhere. You rock man.
---------------------------------
[will work for kudos]
0 Kudos
Message 3 of 12
(58,715 Views)
It's under "connector panes", subcategory "assigning terminals".
Message 4 of 12
(58,698 Views)
Perhaps this screenshot might help you.
 
Mathan
0 Kudos
Message 5 of 12
(58,671 Views)

When I right-click the icon, I don't get a "show connector" option.  Only "edit icon," "VI properties" and "Find all instances."

 

I'm using labview 8.5.  What am I missing?

--

Ro ma wa ichi ni chi ni shi te na ra zu
0 Kudos
Message 6 of 12
(57,403 Views)

Never mind.  I was right clicking in the block diagram window, not the front panel window.

 

Sorry.

--

Ro ma wa ichi ni chi ni shi te na ra zu
Message 7 of 12
(57,400 Views)

On the front panel, click on the terminal you want to assign a control to... then go click on the control you want to assign to that terminal

 

:LabView2010

0 Kudos
Message 8 of 12
(57,172 Views)

also ensure that the VI is unlocked or you wont even be able to see the option to do this. It's somethign like Some Toolbar Menu->Preferences->Protection->Unlock

0 Kudos
Message 9 of 12
(55,238 Views)

But what if the input is not in the front panel of the subVI ? I want to connect a wire from the VI as input in the subVI. 

0 Kudos
Message 10 of 12
(36,338 Views)