BooleanExpression block
Requirements.Sources.BooleanExpression
ยท source
Output y is a (time-varying) Boolean expression
Extends Requirements.Interfaces.PartialExpression
Output y is defined as an arbitrary (time-varying) Boolean expression in the parameter menu.
The output y is declared with a Dialog annotation and a default binding (false), so the
expression is entered directly as the modifier of y in the parameter menu or in the declaration, for
example BooleanExpression expr1(y = time > 1). 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 BooleanConstant, a literal entered here is fixed when the model is translated.
Components and variables
| Name | Type | Description |
|---|---|---|
y | Modelica.Blocks.Interfaces.BooleanOutput | Value of Boolean output |