cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic graph in touchGFX?

ikassma
Senior

I want to express the value of 0x000000 ~ 0xFFFFFF in real time graph.

The graph of the currently provided demo code should continuously update the entire graph, but I want to show the cumulative data. I want to update the last data continuously like the FIFO function.

do you have any idea?​@Martin KJELDSEN​ 

4 REPLIES 4
Martin KJELDSEN
Chief III

@ikassma​,

Can you give a bit more information about this?`You want to show comulative data, but only the last data. So basically you would require a redraw of the entire graph (potentially) ?

@Martin KJELDSEN​ 

hm...

I want to show the ADC data of the signal inputted at 20Hz To in real time without setting the specific time.

​I modified the Graph example to discard the first input data, input the second data into the first buffer, and receive and update the last data. However, the problem with this graph is that it is difficult to construct an automatic scale. If the value suddenly becomes bigger or smaller, Graph does not work.

I've written this scaling feature before so that the largest value is always at the top of the graph (You also have to calculate the new axis values). Let me dig through my archives.

BPeda
Associate II

i want graph from this attached data these are y values