05-15-2011 03:26 PM
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
05-16-2011 07:34 PM - last edited on 06-05-2024 06:27 PM by Content Cleaner
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).
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
05-17-2011 11:28 AM
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
05-18-2011 09:11 PM
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
05-19-2011 01:56 AM
@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
05-23-2011 11:19 PM
Thank you Coq Rouge. I'll keep in touch about how it goes!
05-24-2011 04:50 AM
@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! 😄