blockIntervalTest
Output y is true, if input u is within the specified interval
Extends from Modelica.Blocks.Interfaces.partialBooleanSO (Partial block with 1 output Boolean signal).
Information
The output is true if the Real input is within interval specified by lower and upper limit. The Boolean parameters ClosedOnLeft and ClosedOnRight indicate whether lower respectively upper limit are included in the interval. If Boolean parameter InsideInterval = false, the output is inverted (u is outside the interval).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | useConstantLimits | true | Otherwise dynamic inputs |
| Real | constantLowerLimit | Lower limit of interval | |
| Boolean | ClosedOnLeft | false | Include lower limit? |
| Real | constantUpperLimit | Upper limit of interval | |
| Boolean | ClosedOnRight | false | Include upper limit? |
| Boolean | InsideInterval | true | u inside interval? |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Blocks.Interfaces.BooleanOutput | y (from partialBooleanSO) | Connector of Boolean output signal | |
| Modelica.Blocks.Interfaces.RealInput | u | ||
| Modelica.Blocks.Interfaces.RealInput | lowerLimit | ||
| Modelica.Blocks.Interfaces.RealInput | upperLimit |