blockBooleanToInteger
Convert Boolean to Integer signal
Information
Block that outputs the Integer
equivalent of the Boolean input.
y = if u then integerTrue else integerFalse;
where u is of Boolean and y
of Integer type,
and integerTrue and integerFalse are parameters.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | integerTrue | 1 | Output signal for true Boolean input |
| Integer | integerFalse | 0 | Output signal for false Boolean input |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput | u | Boolean signal to be converted to an Integer signal | |
| Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput | y | Converted input signal as an Integer |
Revisions
-
May 17, 2022, by Hongxiang Fu:
Corrected documentation texts where the variables were described with wrong types.
This is for Buildings, issue 3016. -
January 3, 2017, by Michael Wetter:
First implementation, based on the implementation of the Modelica Standard Library.