CMP – Comparator with hysteresis
Block SymbolLicensing group: STANDARD
Function Description
The CMP block compares the inputs u1 and u2 with the hysteresis h as follows:
where
and
The indexed variables refer to the values of the corresponding signal in the cycle defined by the index, i.e. denotes the value of output in the previous cycle/step. The value is used only once when the block is initialized () and the difference of the input signals is within the hysteresis limits.
Inputs
u1 | First analog input of the block | Double (F64) |
u2 | Second analog input of the block | Double (F64) |
Output
Y | Logical output of the block | Bool |
Parameter
hys | Hysteresis 0.0 0.5 | Double (F64) |
[Previous] [Back to top] [Up] [Next]
2023 © REX Controls s.r.o., www.rexygen.com