LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modify Meter Color

Solved!
Go to solution

We've got an application taht would really benefit from the Meter or Gauge, provided we could change the color.

 

I've searched the forums, and while there's quite a bit on changing the color of eacharea, there's nothing on [i]adding[/i] areas or changing the [i]range[/i] of areas. 

 

Specifically, we need the Meter (or Gauge, though Meter is prefered) to go Red-Yellow-Green-Yellow-Red, with the color change thresholds changable programatically (so the first Red could be 0-10% or 0-15%, depending on the system state).

 

I'm sure there's a way to do this, I just haven't figured out how.

0 Kudos
Message 1 of 5
(3,402 Views)
Solution
Accepted by topic author BobChuck

Maybe this will help.

 

 

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 5
(3,395 Views)

thats perfect, thank you

 

Message 3 of 5
(3,388 Views)

Not only did Ben post quicker than me,

his code was a million times better than mine... so I wont even post mine to save a little of my dignity

Cory K
0 Kudos
Message 4 of 5
(3,383 Views)

Use the property Scale.MarkerValues[]. It's a cluster array where the first element is the value of the marker where the color starts and the second element is the color value.

 

Meter colors.PNG

0 Kudos
Message 5 of 5
(3,381 Views)