05-11-2021 12:35 PM
Hi,
I found a little bug when fiddling with gauges and couldn't find a place to report it.
The scale position start property does some weird stuff when it overflows after 2*pi
With negative numbers it's even graphically funkier... it even crashed my LabVIEW (LV20.0 community) once but I can't get it to completely crash anymore and use the bug report tool.
Regards,
Baptiste
05-11-2021 08:06 PM
Well, the position only makes sense for values in the range 0..2pi. So why exactly are you feeding it unreasonable values?
A better behavior would be to divide by 2pi using quotient&remainder and use the remainder. I guess LabVIEW could internally do that to protect from unexpected inputs.
05-18-2021 01:31 PM - edited 05-18-2021 01:34 PM
I know it doesn't really make sense.
But since the digital scale is coded to take care of that for the developer I thought it would be logical for the color ramp to be as smart.
There's also some slight changes in the thickness of the ramp for some reason, even when the start position is kept within logical bounds.
As for the use, I thought the circular color ramp of the gauges might be a good element for some fancy/hacky UI.
- the hourglass is long gone, and now rotating "waiting circle" are common place
- it makes for some cool "selected" highlight
- I also gave it a shot as the rings of some gas giant planet
Too bad it can't be elliptic too 😄 (and antialiased while I am at it :D)