WOLFRAM SYSTEMMODELER

BooleanToReal

Convert Boolean to Real signal

Wolfram Language

In[1]:=
SystemModel["Modelica.Blocks.Math.BooleanToReal"]
Out[1]:=

Information

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.

Parameters (2)

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

Connectors (2)

u

Type: BooleanInput

Description: Connector of Boolean input signal

y

Type: RealOutput

Description: Connector of Real output signal