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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | k | 1 | Integrator gain |
| Initialization | |||
| Real | y_start | 0 | Initial or guess value of output (= state) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | u | Input to be integrated | |
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | y_reset_in | Input signal for state to which integrator is reset | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput | trigger | Input that resets the integrator output when it becomes true | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | y | Value of the integrator |
Revisions
-
June 8, 2023, by Michael Wetter:
Updated documentation. -
February 2, 2022, by Michael Wetter:
Removedunit="1"declaration for gaink. This is to avoid the warning observed in Buildings, issue 2872. -
October 21, 2021, by Michael Wetter:
Removed errorneousvisibleattribute in icon. -
August 3, 2020, by Jianjun:
Fixed the inputy_reset_in.
This is for Buildings, issue 2056. -
April 21, 2020, by Michael Wetter:
Removed parameterinitType.
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.