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
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput | u1 (from SI2SO) | Connector of Real input signal 1 | |
| RealInput | u2 (from SI2SO) | Connector of Real input signal 2 | |
| RealOutput | y (from SI2SO) | Connector of Real output signal |