04-22-2009 04:20 PM
04-23-2009 05:00 PM
04-24-2009 05:22 AM
Margret Thanks,
I have that working, I should have been more specific is it possible to turn the voltage signals back into the audio sounds? For example, I sample a channel for 10 seconds and gather the voltage data and would like to build a wav file of the actual sounds .
04-27-2009 11:37 AM
Hello,
That clarification is helpful! I think you would best be helped by the sound examples that ship with LabVIEW. One example called Sound Input to File. vi will show how to read in sound data and save it to a file and then Sound Player.vi can be used to play that file back.
You can access these examples by going to Help>>Find Examples. Once the Example Finder is open, go to Hardware Input/Output>>Sound. The examples will be found there along with other examples that may be of interest. You can learn about each example by clicking on it and reading the description on the right side of the Example Finder window.
Hope this helps!
04-27-2009 02:25 PM
04-28-2009 05:31 PM
Hello,
The 6212 is a device that will input and output voltage. In order to use it to output actual sound, you will have to write code to do that. The sound examples that I pointed you to call into the windows driver, not the DAQmx driver. Basically the sound vi talks to the windows sound driver which talks to your sound card. In order to make a DAQ card do this, you will need to write that algorithm yourself.
We sell Dynamic Signal Acquisition cards as well as Sound and Vibration Measurement Suite. With the DSA hardware and software, this algorithm is already written for you and can be done easily.
Hope this helps!
04-29-2009 09:03 AM
Hi
Of course you can record sound with your usb-6212. Your daq unit/ and sound card is built on the same principals. But the sound card is optimized for low level signals coming from the microphone output. The usb-6212 has the following voltage ranges ±10 V, ±5 V, ±1 V, ±0.2 V. The ±1V will be ideal for sampling a soundcard output. You may try the ±0.2 V range then connecting to a microphone. But the microphone output may even still need some amplification.
Your 6212 support up to 400Khz sample rate, if you are planning create a wav file you must use a sample rate supported by a most soundcards I suggest you use 44.1kHz as samplerate. For creating wav files use the "Sound File Open VI", "Sound File Write VI", and the Sound File Close VI. Owning Palette: Sound Files VIs. Refer to the example ....examples\sound2\sound2.llb\Sound Input to File.vi for usage. I also guess you have dynamic waveform as your daq output. Use this VI for conversion ....vi.lib\express\express shared\transition.llb\Dynamic To Waveform Array.vi
04-29-2009 04:04 PM
04-30-2009 03:15 AM
05-01-2009 02:16 PM
Hello,
There are three very helpful DAQ tutorials found at ni.com. Check them out! I think you will find them very helpful!