Real time charts
Posted: Fri Jan 14, 2005 8:21 am
Hi All
I'm doing some real time charting. I have 8 sensors that are read with a frequency of 100 Hz. Using a TTimer I update a TChart with a frequency of 5 Hz. The users want to see 100000 points on the graph for each sensor. As the charting is supposed to continue for several days so I got to delete or overwrite old points.
I have looked at the real time guidelines on the www, and thus uses fastlines, no autorepaint etc. Everything is OK until I start to delete points (I uses delete(0,10000)) for the sensors. The delete operation take so long time that it’s not possible to use the program for several seconds and sometimes the program even crashes!
System: TeeChart 7 and Builder 6, Win XP
Have anybody tried a kind of circular buffering to overcome this kind of problem? Or is there other kind of solutions?
Any help on this will be greatly appreciated, Jørgen
I'm doing some real time charting. I have 8 sensors that are read with a frequency of 100 Hz. Using a TTimer I update a TChart with a frequency of 5 Hz. The users want to see 100000 points on the graph for each sensor. As the charting is supposed to continue for several days so I got to delete or overwrite old points.
I have looked at the real time guidelines on the www, and thus uses fastlines, no autorepaint etc. Everything is OK until I start to delete points (I uses delete(0,10000)) for the sensors. The delete operation take so long time that it’s not possible to use the program for several seconds and sometimes the program even crashes!
System: TeeChart 7 and Builder 6, Win XP
Have anybody tried a kind of circular buffering to overcome this kind of problem? Or is there other kind of solutions?
Any help on this will be greatly appreciated, Jørgen