WOLFRAM SYSTEM MODELER
BooleanToRealConvert Boolean to Real signal |
SystemModel["Modelica.Blocks.Math.BooleanToReal"]
This information is part of the Modelica Standard Library maintained by the Modelica Association.
This block computes the output y as Real equivalent of the Boolean input u:
y = if u then realTrue else realFalse;
where u is of Boolean and y of Real type, and realTrue and realFalse are parameters.
realTrue |
Value: 1.0 Type: Real Description: Output signal for true Boolean input |
---|---|
realFalse |
Value: 0.0 Type: Real Description: Output signal for false Boolean input |
u |
Type: BooleanInput Description: Connector of Boolean input signal |
|
---|---|---|
y |
Type: RealOutput Description: Connector of Real output signal |