PartialTriggeredMovingWindow partial block
Requirements.Interfaces.PartialTriggeredMovingWindow
ยท source
Icon and equations for a block with a trigger signal and a moving time window
Partial block for signal analysis over a moving time window that is enabled by a trigger.
It declares the length T of the time window, the Real input u, the Real output
y and the Boolean trigger input active at the bottom of the icon, and displays the
value of T in its icon. It has no equations: the extending block defines how y is computed from the
values of u in the last T seconds while active is true.
It is extended by MovingAverage, whose output is the moving average of u over the window while active = true, and 0 otherwise.
Parameters
| Name | Type | Description |
|---|---|---|
T parameter | SI.Time | Length of sliding time window |
Components and variables
| Name | Type | Description |
|---|---|---|
u | Modelica.Blocks.Interfaces.RealInput | Real input signal |
y | Modelica.Blocks.Interfaces.RealOutput | Real output signal |
active | Modelica.Blocks.Interfaces.BooleanInput | Boolean input signal (= true: the block is active) |