From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,955 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,952 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,949 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,948 Views)
Solution
Accepted by 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,945 Views)

How exactly do you connect that?

0 Kudos
Message 6 of 11
(4,189 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,179 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,169 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,166 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,154 Views)