LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Constrains between two controls

Hi,
i have two controls on the FP, each with values from 0 to 512. Is is possible to connect this controls, that if the control 1 has a value of e.g. 130, the second one can't set to a lower value? I need this for the control 2 as well, so that if you select a value of 30, the control 1 shouldn't set higher than 30. I think its not to difficult, but i don't get it.
Thanks in advance. 

0 Kudos
Message 1 of 5
(3,311 Views)

For us (or you) to implement something like this, the first step is to define what should happen in each case (what if control is already set higher than your limit....?).

 

So write-up a table identifying each condition and the action that should occur in each case.

 

Once the "challenge" is clearly defined the solution will reveal itself.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 5
(3,303 Views)

Hi,
The value of the first control should always be lower than from the second one. Ist there a chance to lock the controls? 

0 Kudos
Message 3 of 5
(3,297 Views)

Swap the lables "1" and "2" from this image.

 

Limit_range.PNG 

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 5
(3,276 Views)

Thanks for the VI,
but i still have some problems. The value of the control 1 has always to be lower than the value of control 2. On the opposite, the control 2 has always to be higher than the value of control 1. If i change one value of control 1 or control 2, the other one has to know the new theshold and should now take this value for his maximum/minimum value. I think it should work with the property node, but i still don't know how. So they shouldn't overlap...

0 Kudos
Message 5 of 5
(3,261 Views)