LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

spectral analysis of a .wav file

Hello,

 

I am brand new to LabView. I am trying to do the spectral analysis of a .wav file. I need both graphical and number results.

 

I was wondering if you can explain how I can acquire this.

 

Thanks a lot!

 

Zeynep

0 Kudos
Message 1 of 7
(5,850 Views)

Zeynep,

You can use the Sound File Read Simple VI to read from a .wav file into an array of waveforms. Here is a link to the LabVIEW Help about this VI. You can output an array (numeric) and a waveform (graphic).

 

https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/sound2/lvsound2-llb/sound-file-read...

 

You can also use the Sound and Vibration toolkit to perform more in depth frequency analysis, power analysis, distortion, etc. Here is a link to purchasing that toolkit: https://www.ni.com/en-us/shop/product/labview-sound-and-vibration-toolkit.html

As well as a link to download an evaluation version: https://www.ni.com/en/support/downloads/software-products/download.labview-sound-and-vibration-toolk...

 

Jordan

0 Kudos
Message 2 of 7
(5,831 Views)

Jordan,

 

Thank you very much for the prompt reply. I purchased the  LabVIEW Full Development System for Windows, do I need to buy the Sound and Vibration toolkit separately? or would I find it in the package?

 

Thank you!

 

Zeynep

0 Kudos
Message 3 of 7
(5,817 Views)

The Sound and Vibration Toolkit would be a separate purchase. You can double check if you have the toolkit by looking in Measurement and Austomation Explorer (MAX). Start >> All Programs >> National Instruments Folder >> Measurement & Automation >> Software >> LabVIEW. Here you can verify software you do and do not have.

 

To access the Sound File Read Simple VI I mentioned earlier, navigate to Programming >> Graphics & Sound >> Sound >> File on the block diagram.

 

Jordan

0 Kudos
Message 4 of 7
(5,803 Views)

@zcilingir wrote:

Jordan,

 Thank you very much for the prompt reply. I purchased the  LabVIEW Full Development System for Windows, do I need to buy the Sound and Vibration toolkit separately? or would I find it in the package?

 


He he now you do not need that toolkit at all. I guess Jordan comes directly from NI training. And how to sell products is an important part of training. After all NI must sell products to earn money, so can not blame them. But sometimes this strategy may look over the top. Like then they try to sell very expensive hardware and software to students. Or sell a very expensive toolkit then the user only want to do a sound FFT.

But anyway to start go to help in the toolbar. Then select Find Examples. Do search for sound, and then locate the Sound File to Sound Output.vi. Open this VI and save it to your personal folder. So you do not work on the example file. But your own copy. Another example worth taking a look at is the Read Sound File to Chart.vi

Since you are new to Labile always enable Show Context Help option. And do not be afraid to look into the detailed help option. Also the example collection is your best friend then it comes to learning Labile



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 5 of 7
(5,791 Views)

Thank you Coq Rouge. I'll keep in touch about how it goes!

 

 

0 Kudos
Message 6 of 7
(5,773 Views)

@COq Rouge wrote:
how to sell products is an important part of training. After all NI must sell products to earn money, so can not blame them. But sometimes this strategy may look over the top. Like then they try to sell very expensive hardware and software to students. Or sell a very expensive toolkit then the user only want to do a sound FFT.

Nicely said! 😄

-FraggerFox!
Certified LabVIEW Architect, Certified TestStand Developer
"What you think today is what you live tomorrow"
0 Kudos
Message 7 of 7
(5,764 Views)