Page 1 of 1

Waterfall Display

Posted: Thu Aug 13, 2009 1:53 pm
by 15050891
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

Re: Waterfall Display

Posted: Fri Aug 14, 2009 11:34 am
by yeray
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.

Re: Waterfall Display

Posted: Fri Aug 14, 2009 11:59 am
by 15050891
Hello,

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

Regards
Jacques

Re: Waterfall Display

Posted: Mon Aug 17, 2009 7:50 am
by yeray
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.