LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Avoid Sliders Cross

Hello...
 
I did  a code to avoid that two sliders cross each other (i.e: the botton slider must has a value lower than upper slider, and upper slider must has a value greater than botton slider). My code is working well for this but when I click the mouse on one slider and move it to a "irregular position" it goes in a kind of "transparent fashion" and the numeric slider shows a blinking behavior. How could I avoid these two problems?
 
Code attached.
 
Thanks
 
Dan07
0 Kudos
Message 1 of 4
(3,000 Views)

Well, it is not really a good idea to fight the user by writing back to a control that he is operating at the moment. To get that working would require a bit more code.

 

Sometimes, a better way would be to simply allow everything, but pick the lower/higher of the two to be used in the code. For example as shown.

 

 

Message 2 of 4
(2,993 Views)
You can also limit the range on each slider (example).

___________________
Try to take over the world!
Message 3 of 4
(2,987 Views)

Altenbach....

 

Your code solved my problem, but I have one more issue. The space between the two sliders should be always filled with blue. I did a code to do this an it is working properly, except for situations when both sliders are in the same position. At the moment that one slider reach the same value of the other slider, the whole numeric slider indicator blinks blue. It's a very quick blink but I would like to know if there is a way to avoid this.

 

Code attached.

 

Thanks

 

Dan07

Message Edited by dan07 on 03-15-2009 07:41 PM
0 Kudos
Message 4 of 4
(2,942 Views)