LabVIEW Idea Exchange

About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
cancel
Showing results for 
Search instead for 
Did you mean: 

Labelling wires can be made easy ..!! Take the control Name as default - Label Name for wire

Status: New

Wire : Right Click --> Visbile --> Label  (Its void Now )

 

1.png                                  2.png

 

Solution : It can take the control Name as default label of the wire,  instead of  being Void

 

 

3.png

 

Not sure if this idea is already proposed. 

 

 

6 Comments
Knight of NI Knight of NI
Knight of NI

The usual question which comes with suggestions like this is "what do you do if the wire doesn't have a clear source?", like the marked wire in this example:

 

Multiple sources.png

 

You could start suggesting all kinds of solutions, such as "you can do X" or "you can do this only when there's a clear source and it will cover at least some of the cases", and maybe that will indeed be better, but it's certainly easier to start with an empty string, as that gives a clear predictable behavior.

 

I'm not saying the idea is bad. It certainly has some appeal, but I'm not sure I would want NI to spend time on working out all the corner cases or even on just writing the code to figure out that the specific wire matches the apparently simple case in your example.


___________________
Try to take over the world!
Member

Ya true, in the above case it should take the indicator Label. If the source is not clear then let it be Void.

 

Even think of this case, where  i need to label multiple wires. Now this option allows to select all wires -> label will makes its very simple and edit only few if required.

 

5.png                          4.png

 

This Ensures better style and documentation of VIs. 

 

 

Knight of NI Knight of NI
Knight of NI

@sandyy wrote:
Ya true, in the above case it should take the indicator Label

It's just as easy to construct a case where there are multiple sinks to the wire and then you can't just say "take the indicator label". My point was that I don't want NI spending time on figuring that out and writing that code.

 

As for your second example, now there's suddenly even more magic in there - The wire labels somehow gained the brackets and the wires which have an uninitialized shift register as a source somehow know that they should take the labels from other wires in the loop.

 

If you think the logic for this is simple, you can try writing a Quick Drop shortcut which will do this - for all selected elements which are wires, go find their ultimate source and take its label and apply it to the wire. I think if you try that you'll appreciate why I don't want NI to spend time on this. You might also find that the tool you wrote works well enough for you and you can use it right now without having to wait for NI.


___________________
Try to take over the world!
Knight of NI

Any wire already has a well defined suggested name, it is whatever indicator name you get if you "right-click...create indicator". There is no need to discuss complicated cases, because everything could be already handled this way.

 

All we need is the following:

 

If we right-click a wire and show the label, it should start out with the default label as defined in my first sentence, but the entire label text should be selected so we can overwrite immediately by starting to type or we can just click and edit or accept the name. Voila!

 

Here is an example of names you would get with this suggestion. Seems reasonable!

 

LabelName.png


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
Active Participant

altenbach said it all. Kudos!

André Manzolli

Mechanical Engineer
Certified LabVIEW Developer - CLD
LabVIEW Champion
Curitiba - PR - Brazil
Member

I very much like the idea of filling in the wire name on the label.   Including Altenbach's remarks.

 

 

One question for the general public:   Do you color the labels?  

 

I always give the label a frame with the same color as the wire.  It just seems clearer to me that the label belong to the wire, and is not generic comment.  Does anyone else do that as well?  If this is common, it could be made default.  (maybe set in preferences...)

 

wire labels.gif