LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

slider with upper and lower value ranges

Hi All,

 

I'm just curious if someone has come up with a simple solution to this.

 

Please reference the picture.

 

To create this, I have a slider control with 3 sliders on it. The middle value being my target value, but as long as my results fall within that range (adjustable by using the range control), then everything is ok.

 

This will allow the operator to enter a target for a specific test result, in this case 46.5458, and allow them the option of tightening or loosening the tolerance of an appropriate result.

 

Using property nodes etc, I can get to this point, but I obviously would like the color between the middle and upper pointer to be grey also and I just can't seem to get there.  Any hints, helps or other ideas for an approach would be greatly appreciated.

 

Thanks,

Dan

 

 

 

 

Range Slider.png

0 Kudos
Message 1 of 7
(4,603 Views)

I don't have LV open, but I believe you should be able to do what you want by changing the fill style and color on each of the sliders. See here for an example - http://forums.ni.com/t5/LabVIEW/Multi-colored-Graduated-Bar/m-p/675529/highlight/true#M310368


___________________
Try to take over the world!
0 Kudos
Message 2 of 7
(4,595 Views)

Make the color of the Middle slider to grey and keep the filling as upside down.

 

Good luck

-----

The best solution is the one you find it by yourself
0 Kudos
Message 3 of 7
(4,584 Views)

Simple mod to a VI I posted before.  I have an event structure to do two jobs:  (1) when you click on the slider it grabs the closest one and not the active one.  (2) Keeps the values sorted so the setpoint remains in bounds.  Added the fill so the middle region is grey (no fill).

 

 

0 Kudos
Message 4 of 7
(4,573 Views)

i was able to get it, but you will have to do some color and reorder manipulation.....

 

Spoiler
slider_VI_FP.png

 

0 Kudos
Message 5 of 7
(4,571 Views)

Well...  sorry it took me a while to get back to this.  I've been interrupted on a variety of issues.

 

The vi that tst (I think - whoever did the first reply) triggered an idea.  I noticed that each slider covered up the slider before it.  

 

Now before I uncover the spoiler in apok's reply, I want to post my approach and see how close it matches.

 

Thanks for the help.

 

Dan

 

 

0 Kudos
Message 6 of 7
(4,561 Views)

ok... now an additional question.  I have never made an active x control.  Would this be a good candidate for it?

 

Dan

0 Kudos
Message 7 of 7
(4,558 Views)