Skip to content

Integrator

Integrates the input over simulation time and clamps the result to the configured limits. The first output is the initial condition.

With sample index n and step size dt, y(0) = ic and y(n) = limit(y(n-1) + dt * u(n-1), lower_limit, upper_limit) for n > 0.

Direction Name Type
Input u T
Output y T
Name Type Default Meaning
T Signal type f64 Float scalar or float array type
ic T ZERO First output and starting state
lower_limit T NEG_INFINITY Minimum integrated output
upper_limit T INFINITY Maximum integrated output

T may be a float scalar or float array; integration and limiting are element-wise for arrays. The initial ic is emitted as-is before limits are applied. Choose lower_limit <= upper_limit. The defaults leave the output unlimited at every T.

With dt = 0.1, ic = 0, and u = 2 at every sample, outputs begin 0, 0.2, 0.4, 0.6. With upper_limit = 0.5, the fourth output is 0.5.