LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Right-clicking a terminal to create a constant should not assign the terminal's name to the constant.

One of the handy features of LabView is to create a constant by right-clicking an input terminal of a VI or function and selecting "Create Constant". The newly created constant ends up being labeled (albeit the label is invisible) to whatever name the terminal has. For example, right-clicking the bottom terminal of the Multiply block assigns the constant to "y".

 

This seems nice and pretty much innocuous, until you start copying that constant and pasting it on other areas of the diagram. Particularly if you created the constant by right-clicking an input terminal that has a more specific name, for example, something like "Ignition State". If you paste that constant around and then try to search (using Edit/Find and Replace) for the text "Ignition State", it'll be everywhere and at places that don't make sense.

 

Automatic assignment of the terminal's name may be "ok" for controls and indicators, but should not happen for constants (specially because, for constants, the label is by default hidden).

0 Kudos
Message 1 of 8
(3,268 Views)

You should post your diea In the LabVIEW Idea Exchange instead of here.  Personally, though, I like the behavior, especially when I end up making clusters out of the constants since the labels are already there.

Message 2 of 8
(3,266 Views)

The problem I see is that the label of the created constant is invisible.  If you are heading to the Idea Exchange perhaps suggest that the label is visible (so you see what just happened) and I would be so bold as to have the label highlighted and ready for editing.  I like constants to have labels, and the time to fix it is at creation.

Message 3 of 8
(3,256 Views)

Thanks for both suggestions (I've posted it to the Idea Exchange forum).

0 Kudos
Message 4 of 8
(3,246 Views)

Just to clarify....

 

in addition to what "Show created constant lables" does you want the name to be selected and ready for edit.

 

If so...

 

That would change the auto-selection of the value?

 

ben

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

As I mentioned in your Idea Exchange entry, your specific problem can be avoided by using the More Options button in Find and Replace and telling LabVIEW to not search hidden items.

0 Kudos
Message 6 of 8
(3,237 Views)

Yes, this "solves" the search issue, but the diagram still is peppered with (hidden) labels that don't make sense. I much rather fix problems at their root.

 

Thanks for the idea, though.

0 Kudos
Message 7 of 8
(3,207 Views)

There should have been an option for this in the LabVIEW settings. Just like the one about view objects as icons or not. This way users can choose the enable autolable or not.

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 8 of 8
(3,193 Views)