Posts

Showing posts from March, 2012

Speedup MSChart Clear Data Points

Problem Statement Clearing data points in MSChart is known to be very slow. http://connect.microsoft.com/VisualStudio/feedback/details/596212/performance-problem-in-mschart-datapointcollection-clear Solution However, there is a work around for this problem. Suggested work around from link stated above is as below:        public   void  ClearPointsQuick()     {         Points.SuspendUpdates();          while  (Points.Count > 0)             Points.RemoveAt(Points.Count - 1);         Points.ResumeUpdates();         Points.Clear(); //NOTE 1     }   Extension method implementation is as below:      internal   static   class   MSChartExtension     {         public   static   void  ClearPoints( this   Series  sender)         {             sender.Points.SuspendUpdates();              while  (sender.Points.Count > 0)                 sender.Points.RemoveAt(sender.Points.Count - 1);             sender.Points.ResumeUpdates();             sender.Points.Clear(); //NOTE

C# DSP Toolbox: FIR Window Response

Image
FIR Window response and FIR filter's impulse response are added to visualize the filter's windows and its impulse response. Image below shows an example of FIR Hanning windowed and its low-pass filter's impulse response plotted on DSP Lab application. Download