REL – Relational operator

Block SymbolLicensing group: STANDARD

Function Description
The REL block evaluates the binary relation $\mathtt{\text{u1}}\circ \mathtt{\text{u2}}$ between the values of the input signals and sets the output Y according to the result of the relation "$\circ$". The output is set to $\mathtt{\text{Y}}=\mathtt{\text{on}}$ when relation holds, otherwise it is zero (relation does not hold). The binary operation codes are listed below.

Inputs

 irel Relation type  $\odot$1 long 1 .... equality (==) 2 .... inequality (!=) 3 .... less than (<) 4 .... greater than (>) 5 .... less than or equal to (<=) 6 .... greater than or equal to (>=)