LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Gauge colour

How can I fill a part of a gauge from black to a specified colour as it's value gets bigger? I mean that I only want to fill the gauge space thats values are smaller than specified. As the value gets bigger the gauge would be more and more filled.
0 Kudos
Message 1 of 4
(3,128 Views)
You can add a few more sliders (right-click: "add slider"), and define a different fill color for each. Then set their position programmatically according to the desired pattern.

If this is not clear, I can make a demo for you. What LabVIEW version do you have?
0 Kudos
Message 2 of 4
(3,128 Views)

Hello Kimmo,

You can do this using the 'Meter' numeric control (rather than the Gauge). You will use the Scale.MarkerVals[] property.

See attached VI for a demo. I am using the vertical slider only to change the value. The VI is saved in 7.1 version. If you have an older version, see the attached screenshot.

Hope this is what you were trying to accomplish.

Regards,

Khalid


Download All
0 Kudos
Message 3 of 4
(3,128 Views)
Thanks for your answer, but I think thats not exactly what I meant. I would want to turn a pointer in a colour ramp Gauge 360 degrees. The pointer will turn and the area will be filled from blue to red as it's value gets bigger. At the same time the gauge would be filled more and more as the pointer value gets bigger. On the other hand the area of the gauge that is not filled(the values bigger than the pointer value) is black! For example if the gauge is filled 1/3 of it's range 1/3 of the gauge would be filled and 2/3 would not be filled like a colour ramp. In this case the filled colour would be mostly blue. If the value is bigger the filled colour would be blue, orange and red (according to the colour ramp). I think this kind of gauge can clearly show how
much of a cylinder turning process is finished.
0 Kudos
Message 4 of 4
(3,128 Views)