12-10-2009 10:59 AM
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
12-10-2009 12:00 PM
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. 🙂
12-10-2009 12:56 PM
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.
12-10-2009 01:03 PM
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.
12-10-2009 01:08 PM
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.
12-10-2009 09:54 PM