Plotting large array of data in touchgfx graph
Hi,
I am trying to plot an array of 512 values in a dynamic graph in touchgfx. This is working as intended but I am experiencing poor performance. When in histogram mode the graph updates quickly however I wish to use line mode and when in this mode, the graph will take between two and three seconds to update. I'm aiming to get the graph to update in around one second.
Any ideas on how to optimise the plotting of the graph. Perhaps the way in which the data is passed from Model.cpp into the screenView.cpp?
Currently I am passing the data through as such:
for(int i = 0; i < 512; i++)
{
modelListener->UpdateGraph(i, graphData[i]);
}Any help would be greatly appreciated.
Thanks.
