From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Inserting exact Marks on a Dial when you're using arbitrary spacing

Solved!
Go to solution

I am currently adding a ramp to my dial so that it gives it color for a RPM gauge.  My question is that you have to use arbitrary spacing to accomplish getting color and I was wondering is there an easier way then guessing and right clicking each position?  Can I instead somehow enter the numbers I want like 1000, 2000, 3000,...?

0 Kudos
Message 1 of 5
(2,361 Views)
Solution
Accepted by topic author Rhinkle

I think this Property node should work.

 

Set Scale Markers.png

 

Just fill up the cluster array with marker values and colors.

Message 2 of 5
(2,353 Views)

I filled the array from 0-5000 in increments of 200.  For example I did 200 then did a color box and filled it in white as shown by your example.  At the very end for 4000-5000 I added color and then when I tried to run it, it just turned the whole dial white and set the min and max values to 0.  It also didn't show any of the tick marks.

0 Kudos
Message 3 of 5
(2,346 Views)

You'll have to set the colors that you want to use for your ramp.

Or maybe I'm misunderstanding what you're trying to do.

 

Color Ramp Example Dial.PNG

Color Ramp Test.PNG

 

 

Message 4 of 5
(2,339 Views)

I just forgot to set my current defaults was all.  It works great, thanks.

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