CL Enabled Moving Average (Scalar) End of trail navigation bar

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 >

CL Enabled Moving Average (Vector)

CL Enabled Moving Average (Vector)

Parent Polymorphic VI:CL Enabled Moving Average

Requirements:Quanser Rapid Control Prototyping Toolkit, LabVIEW 2020 or newer, Control Design and Simulation Module


Description

Computes a moving average of the input signal when enabled.


Required Inputs All required inputs must be wired. They always appear as terminals on the VI palette. They also appear in bold text in the context help window for the VI.
input

input is the input signal for which to compute the moving average.


Outputs

output

output is the moving average of the input signal when enable is true. Otherwise the output is held at the last computed moving average.


Details

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 reset average then the computation of the moving average restarts every time the enable input becomes true.

If the states on enable input is cumulative average 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.


Feedthrough Behaviour

All input/output pairs of this function have direct feedthrough behaviour.


Examples

  • RCP CL Enabled Moving Average Example


    See Also

  • CL Bias Removal

    Removes any bias or offset from an input signal.


    Targets

    Target

    Supported

    Comments

    RCP Windows (64-bit) Target

    Yes

    Fully supported.

     

    navigation bar