How to plot a XY chart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Sciensoria
Newbie
Newbie
Posts: 20
Joined: Tue Jul 03, 2007 12:00 am
Contact:

How to plot a XY chart

Post by Sciensoria » Tue Jan 17, 2017 9:49 am

Hi,
I currently have an issue with plotting a XY chart.
I have 2 data X and Y which are functions of time: X=X(t) and Y=Y(t). I intend to plot Y versus X over N samples and update the curve periodically.
Currently the code is as follows:

with Series1 do begin
for i:= 0 to N-1 do begin
AddXY(X(t),Y(t),'');
if count>N then delete(0);
end;
end;

The code above works. But recently I have got an measuring instrument which outputs data at high rate. If I update the curve very quickly, a runtime error occurs after few minutes.

Could you advise about the reason of this runtime error ? How I could do to make a more efficient code ?

Thanks

LÊ Minh-Quang
PS: I logged for TeeChart8 account, but I have bought Teechart2016.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: How to plot a XY chart

Post by Sandra » Wed Jan 18, 2017 9:57 am

Hello Sciensoria,

Would be very grateful if you can arrange for us a "Minimal, Complete, and Verifiable example (MCVE)" as specified in the here because we can reproduce your problem exactly here. Is possible you do that?

Thanks in advance for your help
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply