cancel
Showing results for 
Search instead for 
Did you mean: 

Pause or stop dynamic graph

IPrin.1
Associate III

I am trying to pause or stop a dynamic graph when data has scrolled to the right hand side once.  I will then use a second and third etc., dynamic graph on top to display further 'screen shots' of data, to create a stack of overlays.

Is it possible to stop the graph scrolling after a given time, or number of data samples?

Thanks

Ian

1 ACCEPTED SOLUTION

Accepted Solutions
GaetanGodart
ST Employee

Hello @IPrin.1 ,

 

The data will only scroll to the right if a new value is added.

I think that what you want is that if your graph width is 100 values, you want to show a total of 200 values so that it scroll to the right for a whole data's worth of length.

To do so you would simply have to add a number of data that is twice your graph's width (in terms of data points, not pixels).

Please find attached an example where I add 200 data points to a graph that can display 100 data points, with this amount of data, the graph scroll once to the right then stops.

 

I hope this helps!
If this comment answers your question, I invite you to select it as "best answer".

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

View solution in original post

3 REPLIES 3
GaetanGodart
ST Employee

Hello @IPrin.1 ,

 

The data will only scroll to the right if a new value is added.

I think that what you want is that if your graph width is 100 values, you want to show a total of 200 values so that it scroll to the right for a whole data's worth of length.

To do so you would simply have to add a number of data that is twice your graph's width (in terms of data points, not pixels).

Please find attached an example where I add 200 data points to a graph that can display 100 data points, with this amount of data, the graph scroll once to the right then stops.

 

I hope this helps!
If this comment answers your question, I invite you to select it as "best answer".

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Thanks so much, I was continuing to pass data to the graph causing it to continuously scroll.  All sorted now. 

My pleasure, I am glad I was able to help you!

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)