PartialTriggeredMovingWindow partial block

Requirements.Interfaces.PartialTriggeredMovingWindow  ยท source

Icon of PartialTriggeredMovingWindow

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

NameTypeDescription
T parameterSI.TimeLength of sliding time window

Components and variables

NameTypeDescription
uModelica.Blocks.Interfaces.RealInputReal input signal
yModelica.Blocks.Interfaces.RealOutputReal output signal
activeModelica.Blocks.Interfaces.BooleanInputBoolean input signal (= true: the block is active)