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
| 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 |
|---|---|---|---|
| Blocks.Interfaces.BooleanInput | u (from partialBooleanSI) | Connector of Boolean input signal | |
| Blocks.Interfaces.RealOutput | y | Connector of Real output signal |