LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I set a LabVIEW front panel meter's scale's size after it becomes too small?

After I programmatically set a LabVIEW meter control's size a few times, its scale shrinks. The more I resize it, the more it shrinks as shown in the attached PNG file. How can I set that scale's size or at least make it not shrink?

0 Kudos
Message 1 of 6
(3,237 Views)

Can you post your VI that is doing the scale sizing so we can see if we can duplicate it?

0 Kudos
Message 2 of 6
(3,236 Views)

The VI is called "_Main UI.vi" and it's zipped up in the attached folder (no LabVIEW project yet).

 

To duplicate the problem, run "_Main UI.vi", shrink its front panel to about 1/4 or 1/3 its size, grow it again and notice how the meter's scales shrink.

0 Kudos
Message 3 of 6
(3,217 Views)

Attached is an extremelty simplified demonstration of this meter bug in one VI.

 

Run it once and you'll see the problem right away.

0 Kudos
Message 4 of 6
(3,160 Views)

I see the behavior you are talking about.  I don't know if there is a solution for it.

 

My gut feel is that it is either a bug, or a limition of dealing with rescaling of 2-D raster objects where there attritbutes are defined as integers.

 

The position and height width properties,including the scale within the meter are defined as integers.  When you rescale, you are either multiple or dividing by some ratio, but the results ultimately get coereced back to an integer.  Do that enough times and your round off errors accumulate.

0 Kudos
Message 5 of 6
(3,155 Views)

OK thanks for looking; I just wanted to double-check this forum before calling NI tech support or writing my own scalable meter.

 

I have a hunch I'll be writing my own scalable meter.

0 Kudos
Message 6 of 6
(3,153 Views)