LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Connector patterns & re-wiring

Is there a way to add a new connector terminal to a subVI without having to re-wire the existing ones? If not, should one always add a few extra terminals just in case one will need them in the future?
0 Kudos
Message 1 of 10
(3,605 Views)
You can right click on the vi icon, select show connector, and then right clicking on it you can select add terminal or change the pattern, but this will change your current connections to the position LV sees more adecuate, so you should put more terminals than you need if you want your connections exactly where you want them.
Hope this helps
Message 2 of 10
(3,605 Views)
Thanks for your input. To use more terminals then needed seems to be the way to go. That adds flexibility for the future.

I find it boring to re-wire existing terminals just becasue I add a new one and if the old terminals are hidden on the front panel it takes some time to do it as well. Thanks. /Mikael
0 Kudos
Message 5 of 10
(3,605 Views)
It is possible to add connectors to subVIs. Just change the connector pattern, then you will have to "relink" each occurance of the subVI in its calling vis (right-click on the subVI and select "Relink To SubVI").

I find it useful to leave a few unused connector terminals on vis just in case. I ussually use the connector with 12 terminals on my VIs.
Message 3 of 10
(3,605 Views)
Thanks for your input. I will also start using a 12 terminal pattern for all my VIs. That will add flexibility for the future.

I am aware of the re-linking part in the other VIs. Thanks /Mikael
0 Kudos
Message 4 of 10
(3,605 Views)
One option to consider when your Icon terminals are all used, is to Cluster (group) multiple ins/outs.
Not only is clustering a way to fit more connectors, but it can simplify wiring when you connect subvis later.
Message 6 of 10
(3,605 Views)
Yes, I fully agree with you. I am using cluseters extensively. They make life a lot easier! The introduction of clusters that can be bundled-by-name was a big step forward!

However, sometimes I need just this new terminal as an extra input/output to the existing clusters/terminals and then it is nice to have an unused terminal available since changing the connector pattern means re-wiring all terminals. /Mikael
0 Kudos
Message 7 of 10
(3,605 Views)
Thanks for feedback, also I like your idea of using 12 terminals as a general standard - takes out the guess work for future mods, etc.
0 Kudos
Message 8 of 10
(3,605 Views)
Instead of adding a whole number of terminals, which can clutter up the
connector, a suggested better way is to collect all your items into an array
or a cluster, and then connect that to one terminal. Say, if you have 20-40
items to output, you'll have a less cluttered and cleaner diagram this
suggested way, and you can always add more to the array cluster without any
wiring changes to the connector I/O.

Just a suggestion.

Khan Kabir

"Mikael" wrote in message
news:506500000008000000DF210000-991728092000@quiq.com...
> Is there a way to add a new connector terminal to a subVI without
> having to re-wire the existing ones? If not, should one always add a
> few extra terminals just in case one will need them in the future?
Message 9 of 10
(3,605 Views)
Yes, I fully agree with you Khan. As a matter of fact I am using clusters extensively already. However, sometimes I need to add just one more input to my existing terminals (clusters) and if I have no extra terminals available in the pattern it means I have to re-wire the old terminals just because I change connector pattern. But adding this extra terminal as part of one cluster is convenient because then you are all set. But in case you do not want to include it in any of the existing clusters you really need to change the pattern. As suggested here, it seems that it is wise to always have extra terminals available for the future. But, if it is possible, the best is to include the new parameter in an existing cluster. Thanks for your input on this. /Mikael
0 Kudos
Message 10 of 10
(3,605 Views)