blockSwitch
Switching between inputs depending upon condition
Extends from Interfaces.PartialConverters.SI2SO (Converter with two inputs and a single output).
Information
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
Depending upon the boolean input u_cond the output y will be equal to either the input u1 (u_cond = true) or the input u2 (u_cond = false).
See also
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Connectors.RealInput | u1 (from SI2SO) | Input 1 | |
| Connectors.RealInput | u2 (from SI2SO) | Input 2 | |
| Interfaces.Connectors.BooleanInput | u_cond | Condition |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y (from SO) |