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