LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Autoscale Y only works when upper bound of X is updated?

Hi All!

I have a VI that sets the X scale on a waveform graph but uses
LabView's autoscaling feature to set the Y-axis. What I observe is that
the Y scale is updated correctly when I update the upper bound of the X
scale but Y is not updated if I update the lower bound of the X scale.
Any ideas why and whether there is a workaround?

Thanks,

Rudolf

0 Kudos
Message 1 of 4
(2,990 Views)
I've experienced this problem too.  The only thing i've done to fix it is delete that graph and make a new one.  Don't ask me why that works. 
0 Kudos
Message 2 of 4
(2,981 Views)
Hi Rudolf,
 
I ran a few tests over here, and I was able to get the autoscaling working without trouble when updating either the minimum or maximum bound of the X-axis, in versions 7.1.1, 8.0.1, and 8.20.  I've attached the VI here, please give it a try and let me know if it works for you as well.  If it doesn't, it would be helpful to know what version of LabVIEW that you're using, and if you could also post the smallest piece of code that replicates the problem I'd be happy to take a look at it.
Cheers,

Matt Pollock
National Instruments
Download All
0 Kudos
Message 3 of 4
(2,958 Views)
Depending on your data, it could just be a side-effect of "loose fit" being enabled by default. Try to disable "loose fit" on the y-axis and see if it makes a difference. 🙂
0 Kudos
Message 4 of 4
(2,954 Views)