.Modelica_Requirements.SignalAnalysis.TriggeredIntegrator

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

Generated at 2025-03-13T19:24:49Z by OpenModelicaOpenModelica 1.24.5 using GenerateDoc.mos