LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disabled control in event value change still responds

In robust applications I can use that functionality (event while disabled) to show a pop-up message saying

 

"You must be logged on as administrator to configure this option." 

 

If you don't like using the case structure you could use dynamic events instead that way you could un-register for the event when the control is disabled.

 

Just trying to help,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 31 of 36
(1,391 Views)

ST5 wrote:

I'm using "Mouse down" instead of "Value change" because the buttons are "latch on"

The "Value Change" would operate it twice, once on click, one on click release.


You are confusing mechanical actions:

 

"latch when pressed" and "latch when released" only fires exactly one value change event. The button reverses once it is read by the code.

 

"latch until released" will fire a value change on press and on release. That's an entirely different scenario. Don't use this unless you have good reason. 🙂

 

Message 32 of 36
(1,379 Views)

Thanks for all the answers.

 

I once had trouble with the double "value change" actions, possibly as you say with "latch on release"

This made me use everywhere "mouse down" instead of "value change"

 

I'm not having the experience of dynamic events and subscriptions.

 

I'm sure to have the ability to get a good solution now, but agree with me that

the combination of events and button disabling isn't very well done by NI, see the differences between

"latch on press/release" and the un-intuitive differences when "lock the front panel" is activated.

 

Grts, Steven. 

0 Kudos
Message 33 of 36
(1,366 Views)

ST5 wrote:

I'm sure to have the ability to get a good solution now, but agree with me that

the combination of events and button disabling isn't very well done by NI, see the differences between

"latch on press/release" and the un-intuitive differences when "lock the front panel" is activated.


I can't agree or disagree because I don't quite understand your point. Can you clarify what differences you are referring to? Also, what does "lock the front panel" have to do with this? That's a completely different operation. 

0 Kudos
Message 34 of 36
(1,357 Views)

Indeed, it's different, and does influence the reaction of disabling in some cases.

For me it was no option, but in the whole beginning someone said something about it. 

0 Kudos
Message 35 of 36
(1,351 Views)
Well, that certainly clarified nothing.
Message 36 of 36
(1,327 Views)