LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

disable/force boolean controls

Solved!
Go to solution

Suppose that I have two boolean controls A and B.

Now I would like to diseble control B and force it to false whenever A=true.

I know I can do it by changing the properties (Value and Disable) of control B through a "Property Node".

Am I right?

 

Now, what if the two controls are embedded in a cluster? Am I still able to disable one of them depending on the value of the other?

0 Kudos
Message 1 of 11
(1,637 Views)

Hi timmpogg,

 

even when the boolean controls are located in a cluster you can use property nodes for them...

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 2 of 11
(1,634 Views)

Hi GerdW,

 

Thank you for the suggestion.

 

I agree, but I can use a property node for the cluster as a whole.

I cannot see how can I access the properties of an element of the cluster.

 

 

0 Kudos
Message 3 of 11
(1,631 Views)

Sorry, I've just discovered how to access the properties of an element of a cluster.

 

Thank you again

0 Kudos
Message 4 of 11
(1,630 Views)
Solution
Accepted by topic author tommpogg

Hi tommpogg,

 

to solve that riddle for all others: Right-click the control on the frontpanel (!) and select "create->property node"...

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 5 of 11
(1,627 Views)

How exactly do you connect that?

0 Kudos
Message 6 of 11
(871 Views)

Hi Romagallon,

 

who is "you" you are talking to?

What is "that" what you want to connect to what?

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 7 of 11
(861 Views)

I mean, force boolean b to false whenever A=true; but also being able to control b on its own.

0 Kudos
Message 8 of 11
(851 Views)

Hi Romagallon,

 

force boolean b to false whenever A=true;

Simple boolean operation:

result := NOT(A) AND B

 

but also being able to control b on its own.

So you want to be able to switch boolean button B while in parallel reacting on button A?

Two notes:

- use an event structure with a "Value change" event for button A to only rect on actual user input

- set the value and the disabled state of button B in this event as needed

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 9 of 11
(848 Views)

But if both are controls, how do i do it?

Are how can a make a boolean control to off after the program stops running or set everything to a certain default state?

0 Kudos
Message 10 of 11
(836 Views)