Page 1 of 1
To append data in real time, AddRealtime or AddArray?
Posted: Mon Jun 25, 2012 8:54 am
by 9529132
I am trying to continuously append recently acquired data (each time 2K per series, 3 series in total), and the series type I used is FastLine. To use AddRealtime, I could save the last x, and start plot the new data from x+dx. However, if I use AddArray, I had to save all the previous data and plot them altogether. If this appending has to happen 300 times, which method, in theory, would be faster when close to the end?
Re: To append data in real time, AddRealtime or AddArray?
Posted: Tue Jun 26, 2012 11:43 am
by yeray
Hi David,
The main difference between AddArray and AddRealTime functions is, besides to the one you've already observed, that the second draws the new points without repainting the whole chart, and the series will only be redrawn if the axes scale doesn't fit the new points.
The AddArray function clears all the points and it needs to repaint the whole points in the series so it's slower.
A similar question:
http://www.teechart.net/support/viewtop ... 579#p43579