blockBooleanToReal
Convert Boolean to Real signal
Information
Block that outputs the Real
equivalent of the Boolean input.
y = if u then realTrue else realFalse;
where u is of Boolean and y
of Real type,
and realTrue and realFalse are parameters.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | realTrue | 1.0 | Output signal for true Boolean input |
| Real | realFalse | 0.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 a Real signal | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | y | Converted input signal as a Real |
Revisions
-
May 17, 2022, by Hongxiang Fu:
Corrected documentation texts where the variables were described with wrong types.
This is for Buildings, issue 3016. -
April 10, 2017, by Jianjun Hu:
First implementation, based on the implementation of the Modelica Standard Library.