blockTriggeredIntegrator
Output is the integral over the input, as long as the Boolean input active is true (for a rising edge of active the integrator state is reset to 0)
Information
Syntax
integral_u = TriggeredIntegrator(u=..., active=...).y;
Description
Real output y is the integral over the input u, that is y = integral(u*dt) whenever the Boolean input active = true. Output y is initialized to zero. When active has a rising edge, output y is re-initialized to zero.
Example
This block is demonstrated with the following example:
results in
![]() |
|
| simulation result |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u | Input signal | |
| Modelica.Blocks.Interfaces.RealOutput | y | Output signal = if active then integral over input | |
| Modelica.Blocks.Interfaces.BooleanInput | active | Boolean input defining when integral shall be computed) |
