LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Labview to read a wav file?

Can labview take an existing wav file (previously recorded) and perform an FFT on this file?
 
Is there any way to do this?

Thanks
 
Jeff
0 Kudos
Message 1 of 5
(9,226 Views)
This should be no problem see the function "Graphics&Sounds>>Sound>>SoundFile>>snd read file" to import a wave file and extract the information, then you can use the data to do analysis such as fft.
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 5
(9,218 Views)

Thanks for the great response. I was able to read in the wave file and display it. Now I have to figure out how to view an FFT. I see so many options and I'm not sure which one to choose. I just want to see a typical FFT to show the frequency content. I can't seem to find a function that gives me a viewable output.

 

Any ideas?

Jeff

0 Kudos
Message 3 of 5
(9,216 Views)
Sorry wave analysis is not my strong side, but you should be able to pass the wave data to the express vi for spectral measurment and play around with the different analysis modes like power spectrum or peak FFT values, what is the wave file from? what are you trying to analyze?  You might consider posting a new topic on analysis and see what advice people come up with.
 
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 4 of 5
(9,205 Views)
Look at the two shipping examples called Sound Card AutoPower Spectrum and Sound Card Simple Spectrum Analyzer. Both of these examples read sound directly instead of from a file but the principle is similar. Instead of selecting the sample rate, the Snd Read Wave File will return the sample rate.
Message 5 of 5
(9,196 Views)