Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate Clicks and Tones to Speaker Connected through AO

Am using NI-DAQ for VC++. I would like to generate clicks and tones through a speaker or Headphone. This would be connected to the AO of the MultiFuction Card. Is there any work done on this, can someone tell me the links. Any Tips and Tricks.
Thanks..
0 Kudos
Message 1 of 3
(2,806 Views)
I have experimented with generating sounds through the analog output port of my E-Series card some and it is really just a matter of wiring it correctly. You can simply take the channel and ground wire from your AO channels and connect them to your speaker jack - either by splitting the cord or by just holding onto the speaker plug. If you generate a sinewave in your program you will hear the generated sound out of your speakers based on the frequency of your sinewave.

This is the simplest way to get basic sound out of your device. Pull up one of the Generate Waveform Output examples online or that shipped with your device and you can start playing around with it. You can control the length of the tone by specifying the number of samples to generate or by add
ing more sophisticated control via loops/timing to your application.

Hopefully this will get you started with some basic tone generation. If you have any other questions or comments then please let us know.

Regards,
Michael H
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,806 Views)
Hi..
Thanks for the information. I already did that. I could generate a tone and clicks.
Now, I was hearing about octave and other stuff in sound production. Is there any resources that i can get hold of, in order to understand the theory better.
What I was wondering was, will the output impedence of the AO be matching with any speaker impedence. Do I need a unity gain buffer so that the speaker or the card is not damaged.
Thanks for the help.

regards
sumit
0 Kudos
Message 3 of 3
(2,806 Views)