blockSqDiffIntegrator

Accumulates the time-integrated squared difference between two signals.

Extends from Modelica.Blocks.Interfaces.SI2SO (2 Single Input / 1 Single Output continuous control block).

Information

This block calculates the time integral of the squared deviation between inputs u1 and u2:

y = ∫ (u1 - u2)² dt

If scaleByDuration is true, the output is normalized by the time interval since activation.

Connectors

TypeNameDefaultDescription
RealInputu1 (from SI2SO)Connector of Real input signal 1
RealInputu2 (from SI2SO)Connector of Real input signal 2
RealOutputy (from SI2SO)Connector of Real output signal