RealExpression

Set output signal to a time varying Real expression

    RealExpression

Library

Modelica/Blocks/Sources

Description

The (time varying) Real output signal of this block can be defined in itsparameter menu via variable y. The purpose is to support theeasy definition of Real 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

RealExpression_0

NameLabelDescriptionData TypeValid Values

mo_y

y

Value of Real output

Scalar

RealExpression_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 Real output

output

1

See Also