LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to add a new pin to an existing subvi

Hi,

I've been using Labview for sometime now but I still haven't found a convenient way to add a new pin to an existing subvi other than opening up the subvi and adding a control or whatever and then highlighting the code and using create subvi. Then naming this new subvi with the name of the old one. There must be a better way than doing this ??

Thanks.

John
0 Kudos
Message 1 of 3
(3,219 Views)
Hi John,

I think you want to have a new connector where you can wire to.

Open the VI, create the control or indicator on the front panel and then make a right click on the icon. Choose show connector pane. Your mouse cursor changes to the wire cursor. Click in the pane on a free connector and then click on the new control/indicator. This way the control/indicator is assoicated with the connector on the connector pane. Keep the rule controls left indicators right side. If there is no more connector left you can choose a new pane.

Normally we use only a limited set of panes for all subVIs to avoid benches in the wires. Most we use the pane with 4 connectors left and 4 connectors right.
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 2 of 3
(3,212 Views)
You should probably read online help to learn about connector panes. As Waldemar points out, there are some helpful conventions associated with connector panes (controls on the left, more terminals than you need, pick a common pattern, such as 4-4 or 4-2-2-4. If you go into help, look under Creating VIs and SubVIs, Settng up the Connector Pane.

Roy
0 Kudos
Message 3 of 3
(3,177 Views)