Meter’s Needle in LabVIEW Front Panel Misplaced After Resize the Meter

Updated Aug 12, 2024

Reported In

Software

  • LabVIEW

Issue Details

I have placed a meter indicator on the LabVIEW front panel.
If I try to resize the meter to smallest size, and then I re-click the meter and resize it to make it bigger, the needle and gauge position will be misplaced as shown below.
What is the cause of this and how to return the meter into its default size?
Meter .png

Solution

The root cause of the issue is rounding errors. Each time the meter resizes, it scales all its pieces but then rounds them to fit into LabVIEW's integer coordinate system. Smaller sizes magnify this rounding impact.

As workaround, you can try the following methods:

  • recreate the meter by dropping a new one or replacing it.
  • instead of Meter, use Classic Meter or Meter (Fuse Design System / NXG Style)

Additional Information

The difference between each type of meter indicator is where the starting point of the line (thumb) is. The classic meter's line is clipped to its border but extends down to its pivot point outside the control. That point does not encounter as much rounding issues.
Similarly, the Fuse meter's line extends to its pivot point but in its case that point is inside the control. It is built more like a knob with an invisible background.