RealToBoolean

Convert Real to Boolean signal

    RealToBoolean

Library

Modelica/Blocks/Math

Description

This block computes the Boolean output yfrom the Real input u by the equation:

y = u ≥ threshold;

where threshold is a parameter.

Parameters

RealToBoolean_0

NameLabelDescriptionData TypeValid Values

mo_threshold

threshold

Output signal y is true, if input u >= threshold

Scalar

RealToBoolean_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

u

implicit

Connector of Real input signal

input

1

y

implicit

Connector of Boolean output signal

output

1

See Also