I'm doing a CEMS conversion from a PLC to DeltaV and struggling with building a control module to support the rolling averages for the 1min, 15min and hourly averages. has anybody done this type of code?