Fixed-Point Blockset    
FixPt Relational Operator

Perform the specified relational operation on the inputs

Description

The FixPt Relational Operator block is a masked S-function that performs a comparison of its two inputs. The first (top) input is converted the data type of the second (bottom) input prior to comparison.

The operator connecting the two inputs is selected with the Operator parameter list. The supported relational operators are given below.

Operation
Description
==
TRUE if the first input is equal to the second input
~=
TRUE if the first input is not equal to the second input
<
TRUE if the first input is less than the second input
<=
TRUE if the first input is less than or equal to the second input
>=
TRUE if the first input is greater than or equal to the second input
>
TRUE if the first input is greater than the second input

The output is specified with the Logical output data type parameter. The output equals 1 for TRUE and 0 for FALSE.

Parameters and Dialog Box

Operator
Relational operator used to compare the two inputs.
Logical output data type
Output data type. You should only use data types that can represent zero exactly.

Conversions

The input with the smallest positive range is converted to the data type of the other input offline using round-to-nearest and saturation. This conversion is performed prior to comparison. Refer to Parameter Conversions for more information about parameter conversions.

Characteristics

Input Port
Any data type supported by the blockset
Output Port
Any data type supported by the blockset that can exactly represent zero
Direct Feedthrough
Yes
Sample Time
Inherited
Scalar Expansion
Of inputs
States
0
Vectorized
Yes


 FixPt Product FixPt Relay