WithinBand block

Requirements.LogicalBlocks.WithinBand  ยท source

Icon of WithinBand

Output y is true if input u is within a lower and upper threshold

The output y is true if the Real input u is greater or equal u_min and less or equal u_max. Otherwise the output is false:

   y = u ≥ u_min and u ≤ u_max

This block is demonstrated with example ThresholdComparisons.

Parameters

NameTypeDescription
u_max parameterRealUpper threshold
u_min parameterRealLower threshold

Components and variables

NameTypeDescription
uModelica.Blocks.Interfaces.RealInputConnector of Real input signal
yModelica.Blocks.Interfaces.BooleanOutputConnector of Boolean output signal