From 08:00 PM CDT Friday, August 12 - 01:00 PM CDT Saturday, August 13, will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.


Showing results for 
Search instead for 
Did you mean: 

Moving average filter

Go to solution

Hi. I want to do a moving average filter to my VI. I have done a basic FIR filter.. but i havent any clue how to do a moving average filter.
+ I want a button for play  the input wav file.. how can i make this?

This is the vi :


0 Kudos
Message 1 of 5
Accepted by P3tson

My trick for a moving average is to use the FIR filter with specific coefficients.

moving average.png


As far as playing your wav file, check out the Graphics and Sound palette.  I have little experience with them, but I know there's VIs there to play your wav file.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 5

Thanks for the filter!!!

Ok i have found how to play the wav file, but this play it immediately! I want a button and when i push it then schould play the input wav.. 

0 Kudos
Message 3 of 5

You need to put your Play waveform inside an event structure.  The VI will wait at the event structure until something happens such as the Value change of a boolean Play button you put on the front panel.

0 Kudos
Message 4 of 5

Thanks! It works! 🙂

0 Kudos
Message 5 of 5