modelIntegratorSetFreeze
Outputs the integral of the input signal with optional set/reset and optional state freeze
Extends from Modelica.Blocks.Interfaces.SISO (Single Input Single Output continuous control block).
Information
This blocks computes output y as integral of the input u multiplied with the gain K:
K
y = - u
s
If the reset port is enabled, then the output y is reset to set or to Y0 (if the set port is not enabled), whenever the reset port has a rising edge.
Extended with Freeze functionality: If boolean input is set to true, the derivative of the state variable is set to zero.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | K | 1 | Integrator gain |
| Boolean | UseReset | false | =true, if reset port enabled |
| Boolean | UseSet | false | =true, if set port enabled and used as reinitialization value when reset |
| Boolean | UseFreeze | false | =true, if freeze port enabled |
| Real | Y0 | 0 | Initial or guess value of output (= state) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput | u (from SISO) | Connector of Real input signal | |
| RealOutput | y (from SISO) | Connector of Real output signal | |
| Modelica.Blocks.Interfaces.BooleanInput | reset | Optional connector of reset signal | |
| Modelica.Blocks.Interfaces.RealInput | set | Optional connector of set signal | |
| Modelica.Blocks.Interfaces.BooleanInput | freeze | Optional connector of freeze signal |