Click to See Complete Forum and Search --> : Where I can find a control that display the digital signal waveform??


April 9th, 1999, 11:38 PM
Where I can find a control that display the digital signal waveform?? Thankx!

Mallik Bulusu
April 10th, 1999, 12:51 AM
One way to draw waveform is to use CDC functions. In the OnDraw() call this drawing fuction say drawWaveFrom(CDC* pDC);

Use pDC->MoveTo() and pDC->LineTo() functions to draw lines. Since the wave can be viewed as integration of infinitesimally small straightlines, select appropriate delta_x and delta_y and may be delta_theta. Compute two points in the neighbourhood suiting your wave form. Draw the wave as you traverse across the width of the graph. You can use pens of your choice to change the colors of lines too.