LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Slide indicator

Solved!
Go to solution

I'm trying to use a slide indicator that should work like this: considering a range of 100, if the value is less or equal 20 , for example, the fill color should be green, if the value is between 20 and 40, so, the fill color should be green up to 20 and yellow from 20 to 40 and so on. I tried to use the active slide property but I didin't get the effect I want. Anyone has an idea how to do this?

Thank you in advance!

0 Kudos
Message 1 of 10
(3,661 Views)

Hi Luci_UFRJ,

you can use the "FillColor" property to set the color.

 

Hope it helps.

Mike

0 Kudos
Message 2 of 10
(3,659 Views)
But the fill property will change the color of the hole fill and not of segments.
0 Kudos
Message 3 of 10
(3,654 Views)

Hi Luci_UFRJ,

yes it´s correct, but you can add additional sliders with different colors.

 

See the attached example.

 

Hope it helps.

Mike

Message Edited by MikeS81 on 10-13-2008 08:36 PM
0 Kudos
Message 4 of 10
(3,647 Views)

You need to layer sliders on top of each other, like this...

 

 

 

Beat to the punch! 



Message Edited by jmcbee on 10-13-2008 12:51 PM
Download All
0 Kudos
Message 5 of 10
(3,638 Views)
Solution
Accepted by topic author Luci_UFRJ

Here is a better version of that VI

 

Versions 8.6 and 8.0

Message Edited by jmcbee on 10-13-2008 01:33 PM
Message Edited by jmcbee on 10-13-2008 01:37 PM
Download All
0 Kudos
Message 6 of 10
(3,619 Views)

Thank you, guys!!!! It works!

 

 

0 Kudos
Message 7 of 10
(3,611 Views)

Here's the same with slightly less code. 🙂

 

Message Edited by altenbach on 10-13-2008 12:45 PM
Download All
Message 8 of 10
(3,606 Views)

And even less code. Ideally, you would wrap all this into an Xcontrol.

 

Message Edited by altenbach on 10-13-2008 01:07 PM
Download All
Message 9 of 10
(3,594 Views)
I like this last solution with the event structure, you should adopt it instead of mine.  There are fewer property nodes, it is more scalable and easier to read. 
0 Kudos
Message 10 of 10
(3,591 Views)