IntegerExpression
Set output signal to a time varying Integer expression
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
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_y | y | Value of Integer output | Scalar |
Name | Label | Description | Data Type | Valid 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' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
y | implicit | Value of Integer output | output | 1 |