Page 1 of 1

How to speed up display?

Posted: Tue Dec 19, 2006 3:33 am
by 9529132
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

Posted: Sat Dec 23, 2006 10:47 am
by Pep
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").

Posted: Tue Dec 26, 2006 12:50 am
by 9529132
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

Posted: Wed Dec 27, 2006 11:10 am
by Pep
Hi David,
you can do :
m_chart.Series(0).GetAsFastLine().SetFastPen(true);

Posted: Thu Dec 28, 2006 12:50 am
by 9529132
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