LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean Control, Can I disable/gray equivalent to being locked ?

All
I want to disable a boolean control based on prior specification. When I try to use the disable/gray feature, it does not stop the user from using the button. Disable/gray only affect the button visually. Is there a way that I can lock/unlock the boolen control usage so the user can only use it when i unlock ?

Kudos are the best way to say thanks 🙂
0 Kudos
Message 1 of 8
(4,303 Views)

Disabling and Graying out a boolean control should prevent user interaction of that control on the front panel.  It sounds like something may be awry in your VI.  Can you post a simple VI demonstrating the problem?

-D

0 Kudos
Message 2 of 8
(4,292 Views)
Hmmmm.
I just tried it in LabVIEW8 and when I set the property node disabled = 2, I can't click on
the button. The only time I can click on the button is when I set disabled = 0
0 Kudos
Message 3 of 8
(4,287 Views)

Which version of LabVIEW are you using?

I just tested it on 8.0 and during edit time I can change the value, which seems logical.  However, during run-time the button is truely disabled and clicking on it has not affect.

0 Kudos
Message 4 of 8
(4,286 Views)
If you set the disabled/greyed out setting on the Boolean control the control does not allow user interaction while the VI is in run mode. The state of the control will change when the VI is in edit mode. I tried this in LV 7.1.1

Message Edited by AndrewAlford on 02-10-2006 01:43 PM

Andrew Alford
Production Test Engineering Technologist
Sustainable Energy Technologies
www.sustainableenergy.com
0 Kudos
Message 5 of 8
(4,289 Views)
A disabled button should not be functional. Unless you do something silly like in this VI (included).

     Rob
0 Kudos
Message 6 of 8
(4,266 Views)
I can't look at Rob's VI, and what I'm thinking of isn't "silly" (just usually very very unnecessary), but if you're using something like the Mouse Down event, it will be fired regardless of the control's state, because it only tells you if the mouse was clicked while over the control . An event which is affected is Value Change.

___________________
Try to take over the world!
Message 7 of 8
(4,257 Views)
Bingo !

This was my mistake. Thanks a lot for your help and posts.

Now, I ve changed my event to "value change" rather than mouse down. Works perfect.

Kudos are the best way to say thanks 🙂
0 Kudos
Message 8 of 8
(4,242 Views)