NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Announcements
The NI Idea Exchange is a product feedback forum where NI R&D and users work together to submit ideas, collaborate on their development, and vote for the ones they like best. View all of the NI Idea Exchanges to post an idea or add your opinion on an existing one today!
altenbach

Show labels of diagram constants by default

Status: New
by Knight of NI ‎02-19-2011 04:08 PM - edited ‎02-19-2011 04:09 PM

A well documented program requires descriptive labels, but LabVIEW makes it difficult to show the label of diagram constants.

 

 

  • If we change a control or indicator to a constant, the diagram constant retains the same label, but the label is now hidden. :smileysad:
  • Same if we right-click a terminal and create a constant. :smileysad:
  • If we place a diagram constant from the palette, the label is hidden by default. :smileysad:
  • ...
In 99% of my programs, virtually all diagram constants show their labels. They are a vital part of the code, document it clearly, and prevent coding errors.
.

IDEA: show labels of diagram constants by default
  • If we convert a control or indicator to a diagram constant, keep the label and show it! :smileyvery-happy:
  • If we create a diagram constant from a terminal, keep the label and show it! :smileyvery-happy:
  • If we place a diagram constant from the palette, switch to label edit so we can start typing the label. (same as when placing a control on the FP!) :smileyvery-happy:

Examples Scenarios to prove my point:

  • Often I read from spreadsheet file and want to transpose, so I right-click the terminal and "create constant". I get a boolean diagram constant with the label hidden. I would prefer if it would show the "transpose?" labels! This way I can ensure that I did not accidentally used the "append" terminal instead of "transpose". Also, if I edit the program later, it is clear from the label where the boolean goes, even if the wire is mostly hidden.
  • Often, shift registers are initialize with a diagram constant. I use the label of the diagram constant to hint at the content of the shift registers. Labels could be "insert point", "averaged data", "counter", "state", etc. etc. Code is clear and self-documenting. No need for extra diagram comments that might go elsewhere during a diagram cleanup.
  • I might have a control, that (after debugging) will never change again and I thus convert it into a diagram constant. Also here, it should retain its original label and show it. ("Npts", "Frequency", etc.). Again, this keeps the code readable and clear. 

 

 

 

Comments
by Trusted Enthusiast on ‎02-20-2011 11:31 PM

There's already a Tools>>Options setting that does this. I work with it enabled, but it does make for some very awkward situations that I've never figured out good ways to deal with, so I hesitate to encourage others to use it. But if you want to try this...

 

Tools >> Options >> Environment >> Tip Strips & Labeling >> Show Created Constant Labels

by Knight of NI on ‎02-21-2011 03:36 AM

Ah, thanks. I wasn't aware of this option...

 

I have now enabled it. I'll see how many awkward stuations i will encounter. :smileyvery-happy:

by Knight of NI on ‎02-28-2011 02:24 AM

Well, the option "Show Created Constant Labels", partially does what I suggest, and sometimes (=rarely) is a bit annoying,  :smileyhappy:

 

When placing a diagram constant, it currently goes to edit mode on the value, so we cannot go to edit mode on the label, that would be less convenient. What if diagram constants would have a small default label that we can more easily change (or hide)?

Latest LabVIEW Idea Exchange Blog Posts
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!
Idea Statuses
Top Kudoed Authors
User Kudos Count
152
81
71
56
45
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page