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
(4,977 Views)

Hi timmpogg,

 

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

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 11
(4,974 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
(4,971 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
(4,970 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


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 11
(4,967 Views)

How exactly do you connect that?

0 Kudos
Message 6 of 11
(4,211 Views)

Hi Romagallon,

 

who is "you" you are talking to?

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

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 11
(4,201 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
(4,191 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


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 11
(4,188 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
(4,176 Views)