.Modelica_Requirements.SignalAnalysis.TriggeredIntegrator

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 2024-04-24T18:15:52Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos