10-17-2014 10:18 PM
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?
10-17-2014 10:21 PM
Can you post your VI that is doing the scale sizing so we can see if we can duplicate it?
10-17-2014 11:04 PM
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.
10-20-2014 11:25 AM
Attached is an extremelty simplified demonstration of this meter bug in one VI.
Run it once and you'll see the problem right away.
10-20-2014 11:39 AM
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.
10-20-2014 11:42 AM
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.