LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
jfuller87

Allow Constant "Locking"

Status: Duplicate

Add an option to the right-click menu that allows a developer to "lock" a constant value on the block diagram.  Typedefs can currently provide this functionality, but in many circumstances constants don't demand their own control.  This would provide the developer with a small assurance that a constant hasn't been accidentally changed.

 

The constant could be "unlocked" via the right-click menu as well.

3 Comments
jcarmody
Trusted Enthusiast

@jfuller87 wrote:

[...] Typedefs can currently provide this functionality [...]


 

I'm not sure I understand what you're saying, but I disagree that a type-defined constant prevents a developer from changing a Block Diagram constant.  Here's a great article that explains some of the behavior of custom controls.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

egraham
Member

I think you're talking about doing this...

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Lock-the-State-of-a-Boolean-Constant/idi-p/1860207

 

It turns out I definitely wasn't the first to suggest it as you can see in the links provided by Darin in that post.

MaryH
Member
Status changed to: Duplicate