LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Limit range of one slider to the other slider's value on a two-slider pointer slide control

Just use an event structure for a value change on the slider and sort the four slider values before applying the ranging to the data. On mouse-up, write the sorted values back to the slider so the coloring restores correctly.

0 Kudos
Message 11 of 13
(1,139 Views)
  • Just looked at your code, and it is full of race conditions. You write to two different value property nodes of the same control on parallel, and whatever you write last, wins.
  • You should use local variables instead of value proerty nodes.
  • Your VI uses 100% CPU
0 Kudos
Message 12 of 13
(1,137 Views)

@altenbach wrote:

Just use an event structure for a value change on the slider and sort the four slider values before applying the ranging to the data. 


Here's a quick draft. See if it works for you. It can easily be modified for more detailed behavior, e.g. coercing the middle two between the min and max.

Message 13 of 13
(1,130 Views)