BooleanExpression
Set output signal to a time varying Boolean expression
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
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_y | y | Value of Boolean output | Scalar | true |
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 Boolean output | output | 1 |