Dynamic Signal Acquisition

cancel
Showing results for 
Search instead for 
Did you mean: 

How to play, record, and get freq response using .wav files with NI4551

I want to play short sweep-chirp .wav files created in CoolEdit Pro out of my DSA card and record the inputs from an external microphone at the input of the DSA card.
0 Kudos
Message 1 of 3
(6,853 Views)
Hi,

Depending on the developing environment that you are using all you need to do is open the wav file, get the data and then you can use an example for analog output to generate the response.

To acquire the data you can also use the examples provided, there is one desicion to make: read time domain data or frquency domain data from the board. Depending on what you need.

Make sure that you have the NI-DSA driver installed if you want to read time domain data.

If you are doing this in LabVIEW there are VIs to read the wav file. If you are using CVI I can give you a piece of code to read and interpreter the wav file.

Hope this helps!

Juan Carlos
N.I.
0 Kudos
Message 2 of 3
(6,852 Views)
Hi Juan

I am struggling with the problem similar to this.
I have a recorded a 1000Hz tone through sound card and using the microphone and saved it as a .wav file.

now using VI's I wanted to measure the distortion of that saved wav. file.

I am able to open that .wav file using open file VI
but now how should I convert that .wav file to a suitable input which can be given to distortion analyzer which only accept input of wavekind form.

also , I have also tried using a lib called converting .wav file to waveform but in that arrangement it is giving me distortion of 22% for a sine wave which is incorrect.

I also know about the sound properties of my saved . wav file which is 16 bit stereo.

Is there a simple connection
code which you can suggest me so that I can simply measure a THD of the any recorded . wav file .

I just wanted to know how should I can give a input to the Distortion analyzer or I should better say how to convert that .wav file input into a suitable input for Distortion analyzer.

Please help me out.

Thanks and Regards

Abhi
0 Kudos
Message 3 of 3
(6,853 Views)