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: 

scrollbar for a waveform chart

Solved!
Go to solution

Hi, I make the scrollbar visible in the front panel, but it's always gray out as shown below. How can I fix this? Thanks!

 

Untitled.png

0 Kudos
Message 1 of 7
(5,231 Views)

Hi kwang,

 

switch off x axis autoscaling…

 

As long as the x axis is autoscaled (and so shows all available data) there is no need for the scrollbar!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(5,224 Views)

It's not autoscale. The chart only display the most recent data which is 3 minutes and 24 seconds long.

0 Kudos
Message 3 of 7
(5,209 Views)

Is it possible to share your code so we can see what exactly we're working with?

0 Kudos
Message 4 of 7
(5,199 Views)
Solution
Accepted by kwang305

Your Chart History property may be too small to display more data than that.  Try setting the X axis scale so it only shows 1 minute of data and your scroll bar will probably work.  If you need more history right click the chart and select Chart History Length...  Change that to a much bigger number.  That number is the number of data points it will buffer.  Its default is 1024 which is pretty small for most uses.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
Message 5 of 7
(5,188 Views)

So how many data point is in this 3:24 minutes?

How large is the chart buffer?

0 Kudos
Message 6 of 7
(5,184 Views)

It worked! I simply set the chart history length to a much larger number, 204800. Thank you so much!

0 Kudos
Message 7 of 7
(5,178 Views)