Skip to content

Compare To Constant

Symbol

Description

Compares the input signal against a constant threshold using a relational operator. The output is 1 when the condition is true and 0 otherwise.

Library

Control > Logic

Pins

Name Description
In Input
Out Output

Parameters

Name Description
Operator Relational operator applied between the input and the threshold.
Threshold Constant value used for the comparison.
SamplingTime -none or 0: No sampling. The system will be solved in the Newton loop (default).
-auto: Inherit the sampling time of its source device.
-Sampling Period: defined in seconds.