LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Slider bar minimum and off?

I have a situation where I want to use a slider bar to control a motor that I don't want to run below 35%. Is there an easy way to have the scale drop from 10 to 3.5 and then a small dead band and then finally zero or off?  I'm not seeing it, but thought I might ask.

Thanks!

Chad

0 Kudos
Message 1 of 5
(2,920 Views)

Chad,

 

I do not know of any direct way to modify the slider itself that way.  However you might get the functionality by adding In Range & Coerce? and a case structure.  The True case is wired straight through.

 

Lynn

 

Slider.png

0 Kudos
Message 2 of 5
(2,910 Views)

Actually, the slider control can have an array of arbitrary values passed to its "scale" property, then a little "post control" filtering with a sub-vi that limits the lower value to 35% or 0 if lower than that as Lynn is showing.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 3 of 5
(2,908 Views)

Putnam,

 

I did not know you could pass arbitrary values to the scale.  Thanks.

 

Lynn

0 Kudos
Message 4 of 5
(2,897 Views)

Thanks for the responses guys/gals... I've already done the back end I was just trying to figure out the aesthetics of the front end.  Just wanting my UI to look right...  Maybe I'll see about playing with a copy of the slider bar control vi.

 

Thanks!

Chad

0 Kudos
Message 5 of 5
(2,894 Views)