blockIntegrator

Output the integral of the input signal with optional reset
Diagram of Integrator

Extends from Interfaces.SISO (Single Input Single Output continuous control block).

Information

This blocks computes output y as integral of the input u multiplied with the gain k:

    k
y = - u
    s

It might be difficult to initialize the integrator in steady state. This is discussed in the description of package Continuous.

If the reset port is enabled, then the output y is reset to set or to y_start (if the set port is not enabled), whenever the reset port has a rising edge.

Parameters

TypeNameDefaultDescription
Realk1Integrator gain
Booleanuse_resetfalse= true, if reset port enabled
Booleanuse_setfalse= true, if set port enabled and used as reinitialization value when reset
Initialization
InitinitTypeInit.InitialStateType of initialization (1: no init, 2: steady state, 3,4: initial output)
Realy_start0Initial or guess value of output (= state)

Connectors

TypeNameDefaultDescription
RealInputu (from SISO)Connector of Real input signal
RealOutputy (from SISO)Connector of Real output signal
Modelica.Blocks.Interfaces.BooleanInputresetOptional connector of reset signal
Modelica.Blocks.Interfaces.RealInputsetOptional connector of set signal