Do you have an example for the calculation of a moving average?

Category:
Dynamic Simulation
Answer

A simple moving average discrete time filter is provided for your reference. It can be used for both RMS and EMT type simulations.

The register model (ElmReg) could be used to calculate a moving average.

The attached project contains a small example. The speed of the asynchronous machine is sampled with a sample and hold element (ElmSamp) and then passed into the register element. The different elements are connected via the composite model "Filter model". The behaviour or the filter is displayed on the "Plots" page.

Back