LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Neil.Pate

Auto increment number in middle of control name

Status: New

 This idea was brought about my Altenbach's latest suggestion (found here, go vote for it its a good idea!).

 

I would like to see LabVIEW be smart enough to auto increment the number if it occurs in the middle of the name, not just at the end.

For example, if I duplicate a control called Motor 1 Status, I get Motor 1 Status 2, rather than Motor 2 Status which would be better I think.

6 Comments
crelf
Trusted Enthusiast
What happens if there are 2 numbers in the label?  Or textual numbers (eg: one, two...)?  Or if I don't want it to increment numbers at all?  I think what you're looking for is an open definable rule-based system.




Copyright © 2004-2023 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 2.5 License.
AristosQueue (NI)
NI Employee (retired)

"Array 1 Element"  ---> "Array 1 Element 2"

 or

"Array 1 Element" ----> "Array 2 Element"

 

Either seems equally plausible.

Intaris
Proven Zealot

Multiple numbers should increment the last one IMHO......

 

"Array 3 Element 5" would become "Array 3 Element 6"

AristosQueue (NI)
NI Employee (retired)

Whether or not there are multiple, if there is not a number at the end, it is equally plausible to say we should increment the last number as to say we should add a number at the end.

Neil.Pate
Active Participant

I take your points in that it is not impossible that there could be 2 numbers in the label, but I think the example of Array Element is a bit contrived. How often is an individual element of an array indexed out, and then NOT given some sensible engineering name? It is very seldom (ever?) left as Array Element 5 on the BD or UI.

AristosQueue (NI)
NI Employee (retired)
Array:Element was only to demonstrate the principle. I've certainly seen "Plant 1 Motor 1" and "Plant 1 Motor 2" and "Plant 2 Motor 1" and "Plant 2 Motor 2" on the FP of VIs doing monitoring. Having a hierarchy of parts is actually quite common, and if you have a finite number of those hierarchies, then its possible that all four (or N) of these are members of the same cluster, and the entire cluster is passed around as a block.