Logical operations

| Vector | C | ST |
в палитре на схеме
The block implements an arbitrary logical (boolean) operation:
  1. & (AND).
  2. 1 (OR).
  3. > (GREATER-THAN).
  4. < (LESS-THAN).
  5. = (EQUAL-TO).
  6. ≠ (NOT-EQUAL-TO).
  7. ≥ (GREATER-THAN-EQUAL-TO).
  8. ≤ (LESS-THAN-EQUAL-TO).
  9. ⊻ (exclusive OR, i.e. XOR).
  10. ⊻ (exclusive NOT-OR, i.e. NOT-XOR).
Depending on the selected logical operation, the block icon on the schematic changes.

Входные порты

  • U1 - the first operand port;
  • U2 - the second operand port.

Выходные порты

  • Y - operation result.

Свойства

  • Second operand type – specifies the type of the second operand. If vector - element-by-element operation is performed. If scalar value - the operation is performed with each element of the first input and the value of the second input.
  • Operand type – type of logical operation.

Параметры

none