Waterfall Display

TeeChart for ActiveX, COM and ASP
Post Reply
jacques
Newbie
Newbie
Posts: 30
Joined: Thu Nov 20, 2008 12:00 am
Location: South Africa
Contact:

Waterfall Display

Post by jacques » Thu Aug 13, 2009 1:53 pm

Hello,

I am using a colorgrid to plot a two dimensional fft.

The plot changes as follows:
1.) The oldest line is removed.
2.) All the lines are shifted down by one position
3.) A new line is added.

At present I achieve this as follows:

Step 1. Remove all series
Step 2 Add a scColorgrid
Step 3. Process data (remove oldest line shift down and add newest line)
Step 4. Add data to plot
step 5. Repeat from 1

This works OK but flicker occurs.

Is there a way to achieve a better result?

I have attached a sample appplication in Visual C++ Visual Studio 2008.

Regards
JB
Attachments
test.zip
(485.1 KiB) Downloaded 539 times

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Waterfall Display

Post by Yeray » Fri Aug 14, 2009 11:34 am

Hi Jacques,

I can't see any flickering. This will probable be due to the amount of data that is redrawn each time and maybe related to differences between our machines.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

jacques
Newbie
Newbie
Posts: 30
Joined: Thu Nov 20, 2008 12:00 am
Location: South Africa
Contact:

Re: Waterfall Display

Post by jacques » Fri Aug 14, 2009 11:59 am

Hello,

Do you have any suggestions oon improving the speed of the display?

Regards
Jacques

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Waterfall Display

Post by Yeray » Mon Aug 17, 2009 7:50 am

Hi Jacques,

Well, I think it's not necessary to remove and recreate your series each time the timer is called. You could create it one time and then clear it if you want. And then you won't need to set its properties each time, only the values will be cleared.

Code: Select all

m_colorGrid.Series(0).Clear();
And of course, the 500 and 25000 loops, also in the timer call, have something to say in your application's performance.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply