Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to collect audio data from the usb-6212

Is it possible to collect audio data using a usb-6212? I have a audio board that drives 6 microphones that the 6212 aonly collects voltage data from?
0 Kudos
Message 1 of 10
(4,542 Views)
The 6212 is a device which acquires voltage. Sound signals are converted by a microphone from pressure to voltage which can then be read by the 6212.
Regards,
Margaret Barrett
National Instruments
Applications Engineer
Digital Multimeters and LCR Meters
0 Kudos
Message 2 of 10
(4,519 Views)

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 .

0 Kudos
Message 3 of 10
(4,511 Views)

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!

Regards,
Margaret Barrett
National Instruments
Applications Engineer
Digital Multimeters and LCR Meters
0 Kudos
Message 4 of 10
(4,495 Views)
Great, I took a look at it but am still confused on how to turn the voltage back into the native sound. The sound examples will not let me choose the 6212 only my on board sound card.
0 Kudos
Message 5 of 10
(4,490 Views)

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!

Regards,
Margaret Barrett
National Instruments
Applications Engineer
Digital Multimeters and LCR Meters
0 Kudos
Message 6 of 10
(4,463 Views)

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  

 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 7 of 10
(4,447 Views)
I appreciate the help. One more question, since I'm a labview newbie, where in the vi do I configure the daq?
0 Kudos
Message 8 of 10
(4,437 Views)
I guess Margaret may assist you on this topic. I am sure she know of some good DAQ tutorials


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 9 of 10
(4,420 Views)

Hello,

There are three very helpful DAQ tutorials found at ni.com. Check them out! I think you will find them very helpful!

 

Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications

Getting Started with NI-DAQmx: Main Page

Complete Data Acquisition Tutorial

 

 

Regards,
Margaret Barrett
National Instruments
Applications Engineer
Digital Multimeters and LCR Meters
0 Kudos
Message 10 of 10
(4,398 Views)