Example Code

Average FFT of multiple Wav Files

Code and Documents

Attachment

Download All

Introduction:

I have been searching around for ways to average the FFT of multiple wav files and couldn't find anything...

So i ended up writing this VI. I'm new to LabVIEW & DSP so this might not be perfect. I hope this is useful for people.

FFT Averager.png

Code Logic:

- Open as many wav files as you want

- While loop so settings are live when adjusted

- Calc FFT of each wav file & add to a 2D array

- Add array of each wav file to a 2D array

- Calculate average of each FFT & Plot

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
cpip
Member
Member
on

This can also be done using the following vi instead of the averaging technique in my VI: https://zone.ni.com/reference/en-XX/help/371361J-01/gmath/stand_deviation_variance/

Contributors