modelRealPassThroughWithAssertion
Asserts Real input value while passing it through to Real output
Extends from Modelica.Blocks.Routing.RealPassThrough (Pass a Real signal through without modification).
Information
Asserts Real input value while passing it through to Real output.
Level of assertion message can be selected. Error will directly abort the simulation.
As during a period after initialization one might not want to assert
the Real value, the parameter startTime can be set.
Use startTime =
Modelica.Constants.inf to totally avoid assertion
(functionality then is the same as in Modelica.Blocks.Routing.RealPassThrough).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | minBound | Minimal value for the assertion boundary | |
| Real | maxBound | Maximal value for the assertion boundary | |
| Modelica.Units.SI.Time | startTime | -Modelica.Constants.inf | Time after which assert statement is applied |
| AssertionLevel | assertLevel | AssertionLevel.error | Level of assertion (built-in enumerator) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput | u (from SISO) | Connector of Real input signal | |
| RealOutput | y (from SISO) | Connector of Real output signal |
Revisions
- March 26, 2020 by Philipp Mehrfeld:
First implementation. See #884.