IntegerExpression block

Requirements.Sources.IntegerExpression  ยท source

Icon of IntegerExpression

Output y is a (time-varying) Integer expression

Extends Requirements.Interfaces.PartialExpression

Output y is defined as an arbitrary (time-varying) Integer expression in the parameter menu.

The output y is declared with a Dialog annotation and a default binding (0), so the expression is entered directly as the modifier of y in the parameter menu or in the declaration, for example IntegerExpression expr1(y = if time < 1 then 1 else 2). The expression may refer to time and to any variable visible in the enclosing model, which makes the block the simplest way to feed a model variable into a block diagram of checks without drawing a connection. The icon (from PartialExpression) displays the expression. Unlike IntegerConstant, a literal entered here is fixed when the model is translated.

Components and variables

NameTypeDescription
yModelica.Blocks.Interfaces.IntegerOutputValue of Integer output