LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

the meter (rotary control), how the scale can have color ramp, red on both ends

Solved!
Go to solution

Hi,

 

how can you have the color ramp on the scale of a meter (rotary indicator) to be red on both ends and green in a middle. i have tryed every possibility and i can only make it red only on one end. if anybody have any idea how to make it red on both ends, that will be a huge help. thanks

0 Kudos
Message 1 of 8
(6,336 Views)
Solution
Accepted by Mesay

You need to fiddle with the markers. It's not completely intuitive. You need to first turn off interpolation of the color ramp. Then you need to set the markers to arbitrary spacing. Then you can right-click on each marker and set the color within that section. Here's a page in the LabVIEW Help: http://zone.ni.com/reference/en-XX/help/371361B-01/lvhowto/changingthecolorsofacramp/

 

See attached example (LV 8.2) for a result.

Message 2 of 8
(6,323 Views)
You can also write to the Scale.MarkerVals[] property. It's an array of clusters where the first element defines the marker and the second element defines the color value.
0 Kudos
Message 3 of 8
(6,319 Views)
Thank you very much it worked
0 Kudos
Message 4 of 8
(6,308 Views)

Hi,

 

a meter is a nice indicator. I always change its colors by setting two properties:  Scale.Interpolate Color and Scale.Marker Values[].

 

Meter Colors.png

 

 

 

 

LV 9.0 example is attached.

0 Kudos
Message 5 of 8
(6,287 Views)

Ljubo,

 

I love this idea but I'm not really sure I know how everything works since I haven't done much with the property nodes before. Is there any way to save your .vi back to version 8.2 so that I can access it?

0 Kudos
Message 6 of 8
(6,244 Views)

Hi Scott,

 

I'm sorry but front panel screenshot is everything I can do now.

 

Regards.

 

Meter Colors FP.png

0 Kudos
Message 7 of 8
(6,240 Views)
That helps a lot, thanks!
0 Kudos
Message 8 of 8
(6,235 Views)