blockBooleanToReal

Convert Boolean to Real signal (no event)

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

Information

1. Purpose of model

This block computes the output y as Real equivalent of the Boolean input u:

y = if u then realTrue else realFalse

2. Level of detail, physical effects considered, and physical insight

(Description)

3. Limits of validity

(Description)

4. Interfaces

Modelica RealOutput y

5. Nomenclature

(no elements)

6. Governing Equations

(no equations)

7. Remarks for Usage

(none)

8. Validation

(no validation or testing necessary)

9. References

(no remarks)

10. Version History

Model created by Pascal Dubucq (dubucq@tuhh.de), Apr 2015

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
Modelica.Blocks.Interfaces.RealOutputyConnector of Real output signal