LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Moving Averages in Labview SignalExpress

Hi everyone,

I am measuring power consumption values from a PC system at 25k samples/sec and looking for a way to calculate the 1-sec and 5-sec moving averages via Labview SignalExpress (Unfortunately I don't have Labview to custom-implement this). One person suggested using FIR low pass filter instead, but I am not quite sure what values I need to set for "number of taps" and "cutoff frequency" values to have it act like a 1-second and 5-second moving average. Any suggestions here?

 

Also, does anyone have a .VI from Labview for a moving average functionality, which I can use in my Labview SignalExpress setup?

 

Thanks,

--Serhan 

Message 1 of 3
(3,217 Views)

Serhan,

 

If you are just aiming to smooth out your signal and reduce noise, than an FIR filter would work fine, but it sounds like you are trying to achieve an exact moving average.  Unfortunately, there are entire textbooks on filter design and getting the filter to accomplish that with great accuracy would be a feat.  It is true that the moving average is a form of the FIR filter.

 

I had some old code that took the running average of 100 samples in SE, but I'll have to look for it when I get to work tomorrow.  I'll post again when Ifind it.

 

I don't have any moving average VI's handy, but that would probably be the easiest way to accomplish this. Maybe someone can distribute their VI to Serhan?

Rob K
Measurements Mechanical Engineer (C-Series, USB X-Series)
National Instruments
CompactRIO Developers Guide
CompactRIO Out of the Box Video
0 Kudos
Message 2 of 3
(3,158 Views)

Rob, I appreciate if you can provide me your SE code if you can find it.

 

If anyone else has a VI for moving averages, please let me know as well.

 

Thanks!

0 Kudos
Message 3 of 3
(3,132 Views)