LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hold chart X-scrollbar automatically

Hello everyone!!

 

I have a waveform chart that is plotting each 1 second data.

What I want but I can not achieve is to be able of scrolling(X-axe) to a any position I want on the plot with the X-scrollbar and stay there (while the chart is still plotting new data). 

I tried different things but I can't achieve it, each time I scroll to the left side, after I release the button, the scrollbar goes automatically to the right side. To do what I want I have to keep pressed the X-scrollbar.

I also tried with the property node "XScale.ScaleFit" but it doesn't do what I need.

 

Any idea on how to solve the problem?

0 Kudos
Message 1 of 3
(2,085 Views)

Hi yavs,

 

use a graph instead of a chart…

Best regards,
GerdW


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

It seems that the scrollbar is actively ruining the chart behavior.

 

With the scrollbar on, the normal zooming\moving tools also stop functioning properly. With the scrollbar off, they work as expected.

 

I guess the (only?) way out it to make your own scrollbar, and use events (scale change for the chart, value change for the scrollbar) to synchronize the chart and the scrollbar. Of course this code can\should be encapsulated in an XControl, QControl, class, etc..

0 Kudos
Message 3 of 3
(2,051 Views)