IntegerExpression

Set output signal to a time varying Integer expression

    IntegerExpression

Library

Modelica/Blocks/Sources

Description

The (time varying) Integer output signal of this block can be defined in itsparameter menu via variable y. The purpose is to support theeasy definition of Integer expressions in a block diagram. For example,in the y-menu the definition "if time < 1 then 0 else 1" can be given in orderto define that the output signal is one, if time ≥ 1 and otherwiseit is zero. 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

IntegerExpression_0

NameLabelDescriptionData TypeValid Values

mo_y

y

Value of Integer output

Scalar

IntegerExpression_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 Integer output

output

1

See Also