Table of Contents >Quanser Rapid Control Prototyping Toolkit >VI and Function Reference >VIs - By Category >VI Categories >Discrete VIs and Functions >CL Enabled Moving Average >
Parent Polymorphic VI: | CL Enabled Moving Average |
Requirements: | Quanser Rapid Control Prototyping Toolkit, LabVIEW 2020 or newer, Control Design and Simulation Module |
Computes a moving average of the input signal when enabled.
input is the input signal for which to compute the moving average. |
enable enables computation of the moving average. If enable is true then the output is the moving average of the input. Otherwise the output is held at the last computed moving average. |
states on enable determines how the mean is computed. If states on enable is then the computation of the mean is restarted from scratch every time enable becomes true. If states on enable is then the mean is computed cumulatively over every time frame in which enable is true. |
output is the moving average of the input signal when enable is true. Otherwise the output is held at the last computed moving average. |
This VI is useful for determining the mean of the input signal. How is computes the mean depends on the states on enable input.
If the states on enable input is then the computation of the moving average restarts every time the enable input becomes true.
If the states on enable input is then the computation of the moving average is continued each time the enable input becomes true so that the output is the mean of all the samples for every time frame in which enable is true.
All input/output pairs of this function have direct feedthrough behaviour.
RCP CL Enabled Moving Average Example |
CL Bias Removal | Removes any bias or offset from an input signal. |
Target |
Supported |
Comments |
---|---|---|
Yes |
Fully supported. |
Copyright © Quanser Inc. This page was generated 2021-09-24. Submit feedback to Quanser about this page.
Link to this page.