Compare Binary Value

From Visuino
Revision as of 09:03, 13 August 2025 by Visuino (talk | contribs) (Created page with "Image:TArduinoCompareBinaryValue.png == Summary == Compares an incoming binary value to a preset reference and outputs true or false accordingly. == Description == The **Compare Binary Value** component evaluates a binary input against a configured constant based on the selected compare type: - **Compare Type**: Choose from **ctEqual** (true if input equals the reference) or **ctNotEqual** (true if input does not match the reference). - **Enabled**: When **False**,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

File:TArduinoCompareBinaryValue.png

Summary

Compares an incoming binary value to a preset reference and outputs true or false accordingly.

Description

The **Compare Binary Value** component evaluates a binary input against a configured constant based on the selected compare type: - **Compare Type**: Choose from **ctEqual** (true if input equals the reference) or **ctNotEqual** (true if input does not match the reference). - **Enabled**: When **False**, the component remains inactive and **always outputs false**, regardless of the input value. - **Value**: The reference binary value used for comparison.

This component is handy for logic flows where certain binary codes or flags need detecting before triggering downstream actions.

Diagram:

Categories

Properties

  • Compare Type – `ctEqual` or `ctNotEqual`.
  • Enabled – When disabled, the component does not compare and outputs false.
  • Value – The binary reference value to compare against.

Pins

  • In – Binary input to be compared.
  • Out – Boolean output: result of the comparison or always false if disabled.