BooleanExpression

Set output signal to a time varying Boolean expression

    BooleanExpression

Library

Modelica/Blocks/Sources

Description

The (time varying) Boolean output signal of this block can be defined in itsparameter menu via variable y. The purpose is to support theeasy definition of Boolean expressions in a block diagram. For example,in the y-menu the definition "time >= 1 and time <= 2" can be given in orderto define that the output signal is true in the time interval1 ≤ time ≤ 2 and otherwise it is false.Note, that "time" is a built-in variable that is alwaysaccessible and represents the "model time" and thatvariable y is both a variable and a connector.

Parameters

BooleanExpression_0

NameLabelDescriptionData TypeValid Values

mo_y

y

Value of Boolean output

Scalar

true
false

BooleanExpression_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

y

implicit

Value of Boolean output

output

1

See Also