blockBooleanToReal

Convert Boolean to Real signal

Extends from Interfaces.partialBooleanSI (Partial block with 1 input Boolean signal).

Information

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

TypeNameDefaultDescription
RealrealTrue1.0Output signal for true Boolean input
RealrealFalse0.0Output signal for false Boolean input

Connectors

TypeNameDefaultDescription
Blocks.Interfaces.BooleanInputu (from partialBooleanSI)Connector of Boolean input signal
Blocks.Interfaces.RealOutputyConnector of Real output signal