Fixed-Point Blockset    
Compare To Constant

Determine if a signal is equal to the specified constant

Library

Logic & Comparison

Description

The Compare To Constant block is a masked block that determines if a signal is equal to the specified constant where:

You enter the constant with the Constant value parameter.

Parameters and Dialog Box

Operator
Specify how the input is compared to the constant value.
Constant value
Specify the constant value that the input is compared with.

Characteristics

Input Port
Any data type supported by the blockset
Output Port
An 8-bit unsigned integer
Direct Feedthrough
Yes
Scalar Expansion
Yes

See Also

Compare to Zero


  Bitwise Operator Compare To Zero