08-18-2014 08:40 AM
Hello,
I have two channels, a time channel with varying step values and a time-dependant output channel. Is there a way to calculate a moving average across a set timespan? I have looked into the Smooth function, but it appears to only accept number of points as the set width.
Thanks,
Colin
08-19-2014 10:45 AM
Hi Colin,
If you have plenty of time resolution in your data, you can simply use the "Reducing Classification" ANLYSIS routine in the "Statistics" palette.
If you don't have as many data points as you need, 'd recommend a two stage process-- 1) resample the data channel to a faster/constant sampling rate, then 2) smooth over a certain number of points that comprises your desired time window.
Brad Turpin
DIAdem Product Support Engineer
National Instruments