Square Wave from Sound Card
I would like to generate a square wave using a sound card output using VB. I would like to do more than play a wav file. For Example, I would like to start at about 100 Hz and gradually increase the frequency to 10K Hz. It would also be great to control each channel independently. Does anyone know what Drivers I can use in Visual Basic?
Re: Square Wave from Sound Card
This should be easy to modify to create a square wave:
http://www.vbforums.com/showthread.php?t=358329
Though I don't understand why would you do that because theoretically the sound card should not even be able to play square waves.
The only reason why you hear a square wave is because of the imperfections in the sound card/speakers.
[Edit]
Ups... Only now I noticed this is for VB.NET :blush: amm, I don't know how to do it in VB.NET, you'll have to convert the VB6 code....
Re: Square Wave from Sound Card
You'll never generate a clean SW from normal PC hardware. Its just not designed for it. You need special hardware for that. Check out Radioshack or similar they have loads of stuff to do this.