How to speed up display?

TeeChart for ActiveX, COM and ASP
Post Reply
David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

How to speed up display?

Post by David » Tue Dec 19, 2006 3:33 am

Hi,

I read finite number of samples from a DAQ card and plot it. This procedure is repeated until the task finishes. However, it seems the display is delayed quite a lot compared to the data input. How can I speed up the display to minimize the delay? I used fasline series and AddRealtime. Will Fastpen help? And how to use FastPen? I tried
m_chart1.Series(0).GetAsFastLine(), but there is no function related to fastpen.

Thanks a lot.
David

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Sat Dec 23, 2006 10:47 am

Hi David,

yes, FastPen would help. Have you take a look at the example called "Fast Delete and Fast Pen" included into the TeeChart Pro Demo features project ? (you can do a search by "FastPen").

David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

Post by David » Tue Dec 26, 2006 12:50 am

Hi,Pep,

I have checked the demo code, I can understand how to do it in VB, but I didn't find any relevant function in VC++. Which function should I use to enable the fastpen?

Thanks a lot!
David

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Dec 27, 2006 11:10 am

Hi David,
you can do :
m_chart.Series(0).GetAsFastLine().SetFastPen(true);

David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

Post by David » Thu Dec 28, 2006 12:50 am

Hi, Pep,

It turned out to be the synchronization problem. After I replaced with the new cpp and h files, everything is ok. Thanks!

David

Post Reply