取消
显示结果 
搜索替代 
您的意思是: 

Moving average filter

已解决!
转到解答

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 :

konv.png 

0 项奖励
1 条消息(共 5 条)
12,990 次查看
解答
已被主题作者 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
2 条消息(共 5 条)
12,983 次查看

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 项奖励
3 条消息(共 5 条)
12,979 次查看

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 项奖励
4 条消息(共 5 条)
12,970 次查看

Thanks! It works! 🙂

0 项奖励
5 条消息(共 5 条)
12,944 次查看