CompareToConstant

This block compares its input with a constant parameter by way of a relational operator.

    CompareToConstant

Library

LogicalOperations

Description

The CompareToConstant block compares input with a constant by way of a relational operator, and produces a double output, 1 for true, and 0 for false.

Parameters

CompareToConstant_0

NameLabelDescriptionData TypeValid Values

op

Relational operator

'=='
'~='
'<'
'<='
'>'
'>='

C

Constant

zcr

Apply zero crossing

Number

0
1

externalActivation

External Activation

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

1

Port 2

explicit

output

1

Port 3

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

yes

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no

See Also