blockSwitch
Switch between two Real signals
Extends from Modelica.Blocks.Icons.PartialBooleanBlock (Basic graphical layout of logical block).
Information
The Logical.Switch switches, depending on the logical connector u2 (the middle connector) between the two possible input signals u1 (upper connector) and u3 (lower connector).
If u2 is true, the output signal y is set equal to u1, else it is set equal to u3.
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Blocks.Interfaces.RealInput | u1 | Connector of first Real input signal | |
| Blocks.Interfaces.BooleanInput | u2 | Connector of Boolean input signal | |
| Blocks.Interfaces.RealInput | u3 | Connector of second Real input signal | |
| Blocks.Interfaces.RealOutput | y | Connector of Real output signal |