View Single Post
  #2 (permalink)  
Old 07-07-2009, 05:28 AM
Shawn Stevenson
Guest
 
Posts: n/a
Default Re: Waveform generator (C#, C++, .NET?)

>Hi,
>I am getting into developing DSP algorithms in C#, and face the proble

of
>generating 'test' waveform.
>
>I have been an extensive user of Matlab/Simulink, where you have acces

to
>a
>whole library of 'sources' with all the parameters one needs (frequency,
>sample rate, sine, triangular, even bitwidth...)
>
>Although I 'know' how to code up a 'for-loop' with sin(wt), I know that
>there are a lot of pitfalls and corner cases that need to be considered.
>Any of you DSP guys know of a good, reliable 'waveform generator

library
>written in either C, C++ or C#?
>
>I tried searches on the languages newsgroup but didn't find anything
>really reliable or complete. I guess this might be more a 'DSP

developer
>need?
>
>Thanks,
>Dave
>


If you like the waveform generators in Matlab, and you want to generat
'test' waveforms, then you could use Matlab to create your waveforms an
save them to files. Then in your C, C+ or C# code you just need to ope
the file and read out the samples. I have used this method in the past t
generate DTMF (telephone) tones for testing.

-Shawn

Reply With Quote