From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
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.
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.