partialThresholdComparison partial block

Requirements.Interfaces.partialThresholdComparison  ยท source

Icon of partialThresholdComparison

Partial block to compare the Real input u with a threshold and provide the result as 1 Boolean output signal

Block has one continuous Real input and one continuous Boolean output signal as well as a 3D icon (e.g., used in Blocks.Logical library).

The block declares parameter threshold (default 0), input u and output y, and displays the value of threshold in its icon. It has no equation; a block that extends from it defines y as comparison of u with threshold and adds the comparison symbol to the icon: GreaterThreshold, GreaterEqualThreshold, LessThreshold and LessEqualThreshold.

Parameters

NameTypeDescription
threshold parameterRealComparison with respect to threshold

Components and variables

NameTypeDescription
uModelica.Blocks.Interfaces.RealInputReal input signal that is compared with threshold
yModelica.Blocks.Interfaces.BooleanOutputBoolean output signal (result of the comparison)