LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TIP incremental connector pane

I often use the create sub-vi from selection feature to reduce the code size on block diagrams. The new vi will have a connector pane layout with the minimum number of connections and I spend some time rewiring to the pattern I want. However, if I carefully chose a sequence of new connector panes, each one closer to the layout I want, eventually I get the layout and the wiring I want, and it is much faster and easier.

Message Edited by Odd_Modem on 11-09-2007 06:16 PM
Message 1 of 9
(9,883 Views)

I don't really use this as much, because it doesn't work as nicely in LV 7.0. It usually tends to take things one terminal lower than I want them.

What would be nice was if we had the ability to simply swap and move terminals on connector panes. I suppose it could be done relatively easily using scripting, but I don't feel like it.


___________________
Try to take over the world!
Message 2 of 9
(9,851 Views)

Thank you Odd_Modem!

I'm sure I'll be uisng this tip soon!

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 9
(9,806 Views)

On a related note:

Getting the names of the connectors produced when doing "create" sub-VI can be controlled if you stop and think about what you are about to do.

The names will match-up with the source of the wires, if they come from controls. Unfortunately wires coming for other logic will have cryptic names.

For those sitiuations, I first drop free labels on the wires before doing the "create sub-VI". This way, when the sub- is created, I can just cut-n-paste the free label text to the control/indicator.

Its a  lot easier that playing "Chase the wires" trying to figure out wich wire got wire to which terminal.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 9
(9,805 Views)
Finally, I come into work on a Monday to find a nice, new nugget!
0 Kudos
Message 5 of 9
(9,757 Views)
Nice nugget.

I was also recently informed of mballa's subvi fixer tool, that will change that pattern and fix the connector pane based on the arrangement of your front panel objects.  I have found it handy, just another way to do what you have suggested here Smiley Happy
Kenny

Message 6 of 9
(9,699 Views)
Hi Guys,
 I didn't know you can "create sub-vi from selection", is this a LabVIEW8.5 feature? (I'm using 8.2).
Please clarify,
   Malosh
0 Kudos
Message 7 of 9
(8,037 Views)
No, this is not a new feature of LV8.5 but can also be done with previous versions.
  • Select part of code
  • LV menu >> Edit >> Create SubVI
0 Kudos
Message 8 of 9
(8,034 Views)

Thanks JB! a huge useful tip!!!

I can't believe I missed it...

0 Kudos
Message 9 of 9
(8,029 Views)