ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programatically adjust chart range

I am using LabVIEW 2010 to aquire a temperature and to plot it in real time on a chart. I am using absolute time and the chart seems to be working well, however I am unable to adjust the x-axis range. I would like the user to be able to select how many minutes to show on the chart. Could you please help me programatically change the range of the x-axis so the user can adjust how many minutes is shown on the chart?

0 Kudos
Message 1 of 3
(3,207 Views)

Use the XScale.Offset and XScale.Maximum properties. Do not put the property node under your node loop, think dataflow.

 

set chart lenght.png

 

Ben64

Message 2 of 3
(3,178 Views)

Don't forget to disable autoscale.

 

autoscale.png

0 Kudos
Message 3 of 3
(3,162 Views)