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

TypeNameDefaultDescription
BooleanuseConstantLimitstrueOtherwise dynamic inputs
RealconstantLowerLimitLower limit of interval
BooleanClosedOnLeftfalseInclude lower limit?
RealconstantUpperLimitUpper limit of interval
BooleanClosedOnRightfalseInclude upper limit?
BooleanInsideIntervaltrueu inside interval?

Connectors

TypeNameDefaultDescription
Blocks.Interfaces.BooleanOutputy (from partialBooleanSO)Connector of Boolean output signal
Modelica.Blocks.Interfaces.RealInputu
Modelica.Blocks.Interfaces.RealInputlowerLimit
Modelica.Blocks.Interfaces.RealInputupperLimit