ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Customizing gauge in LabVIEW

Hello All,

I want to develop a gauge in LabVIEW with a range of 0 to 100. The gauge value will be controlled using a numeric input. Based on the input value, the gauge should be dynamically filled with color up to that value, while the remaining portion should stay white.

How can I implement this functionality in LabVIEW?
If possible, could you provide a sample LabVIEW program or step-by-step guidance to achieve this?

gauge.jpg

0 Kudos
Message 1 of 5
(178 Views)

Hello All,

I want to develop a gauge in LabVIEW with a range of 0 to 100. The gauge value will be controlled using a numeric input. Based on the input value, the gauge should be dynamically filled with color up to that value, while the remaining portion should stay white.

How can I implement this functionality in LabVIEW?
If possible, could you provide a sample LabVIEW program or step-by-step guidance to achieve this?

0 Kudos
Message 2 of 5
(176 Views)

Hi sasimitha,

 


@sasimitha wrote:

I want to develop a gauge in LabVIEW with a range of 0 to 100. The gauge value will be controlled using a numeric input. Based on the input value, the gauge should be dynamically filled with color up to that value, while the remaining portion should stay white.

How can I implement this functionality in LabVIEW?


You could paint your gauge using a 2DPictureIndicator:

  • draw a "white" circle"
  • draw a circle section, using a thick "color" pen, based on the percentage value
  • handle transparency of your 2DPictureIndicator

(You could embed all this into an XControl, so you have an "ordinary" numeric terminal in your main code… 😄 )

Best regards,
GerdW


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

Here's something I built about a decade ago just as a quick experiment. The code isn't good, since it was just a quick test, and it doesn't do exactly what you want, but it should give you a direction.


___________________
Try to take over the world!
Message 4 of 5
(162 Views)

Yamaeda_0-1775753675871.png

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 5
(104 Views)