LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot change scale ramp colors on my dial

Solved!
Go to solution

This should be noob stuff but I can't seem to change the scale ramp colors on my dial gauge. I need something very dynamic. Thanks in advance.

 

fun with dials.png

PaulG.

LabVIEW versions 5.0 - 2020

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 1 of 5
(3,235 Views)

Have you tried using the "color box constant" from "programming->dialogue and user interface" and connecting that up?

0 Kudos
Message 2 of 5
(3,201 Views)
Solution
Accepted by topic author PaulG.

Try the Scale.MarkerVals[] property instead of HighColor, LowColor. Don't forget to set Scale.InterpColor to true to avoid having to define an infinite number of colour stops around the scale.

---
CLA
Message 3 of 5
(3,183 Views)
Solution
Accepted by topic author PaulG.

Hi Paul,

 

you only set the colors for under-/overrange indication. You don't set the ramp colors right now!

 

Did you notice the property "Scale.MarkerValues"? Read the help for that property…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5
(3,181 Views)

I can't believe something so simple was so freakin' difficult. Smiley Very Happy

PaulG.

LabVIEW versions 5.0 - 2020

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 5 of 5
(3,149 Views)