blockIntegratorWithReset

Output the integral of the input signal

Information

Block that outputs

y(t) = ystart + ∫t0t u(s) ds.

Whenever the input signal trigger changes from false to true, the integrator is reset by setting ystart to the value of the input signal y_reset_in.

Parameters

TypeNameDefaultDescription
Realk1Integrator gain
Initialization
Realy_start0Initial or guess value of output (= state)

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.RealInputuInput to be integrated
Buildings.Controls.OBC.CDL.Interfaces.RealInputy_reset_inInput signal for state to which integrator is reset
Buildings.Controls.OBC.CDL.Interfaces.BooleanInputtriggerInput that resets the integrator output when it becomes true
Buildings.Controls.OBC.CDL.Interfaces.RealOutputyValue of the integrator

Revisions

  • June 8, 2023, by Michael Wetter:
    Updated documentation.
  • February 2, 2022, by Michael Wetter:
    Removed unit="1" declaration for gain k. This is to avoid the warning observed in Buildings, issue 2872.
  • October 21, 2021, by Michael Wetter:
    Removed errorneous visible attribute in icon.
  • August 3, 2020, by Jianjun:
    Fixed the input y_reset_in.
    This is for Buildings, issue 2056.
  • April 21, 2020, by Michael Wetter:
    Removed parameter initType.
    This is for Buildings, issue 1887.
  • March 2, 2020, by Michael Wetter:
    Changed icon to display dynamically the output value.
  • November 6, 2017, by Michael Wetter:
    Explicitly declared types from CDL.
  • March 23, 2017, by Jianjun Hu:
    First implementation, based on the implementation of Buildings.Utilities.Math.IntegratorWithReset.