Page 1 of 1

Chart history amount

Posted: Mon Apr 11, 2016 5:32 am
by 15677804
Hi,
I log sensor data to chart about ten times/ second using Series[0].Add . Where is the data stored and can I adjust how much data is stored in that 'buffer' ?
Because basically everything works well but because that PC is not too fast there is update problems when I have much data on chart 'buffer' ( hundreds of thousands) .
Or is there any more practical method to collect that kind of data ? I think my current method leads to some kind of overflow in some point anyway if there is no limit how much data is collected to chart.

For my application about 40 000 history points will be enough and I need to show only about 1000 points simultaneously on screen. Other data should be available by scrolling the chart.

Re: Chart history amount

Posted: Mon Apr 11, 2016 7:45 am
by Christopher
Hello,

Yes, you can use the Series.Delete method - there is an example of how to do this in the Feature Demo under:

%PROGRAMFILES(x86)%\Steema Software\Steema TeeChart for .NET 2015 4.1.20XX.XXXXX\Examples\DemoProject\bin\ExecutableDemo\TeeChartNetExamples.exe
realtime.PNG
realtime.PNG (212.77 KiB) Viewed 5825 times
All Features -> Welcome !\Speed\Realtime charting

Re: Chart history amount

Posted: Tue Apr 12, 2016 5:40 am
by 15677804
Thanks for you suggestion, works perfectly.

Ande