blockSwitch
Switch between two integer signals
Information
Block that outputs one of two integer input signals based on a boolean input signal.
If the input signal u2 is true,
the block outputs y = u1.
Otherwise, it outputs y = u3.
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.IntegerInput | u1 | Input u1 | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput | u2 | Boolean switch input signal, if true, y=u1, else y=u3 | |
| Buildings.Controls.OBC.CDL.Interfaces.IntegerInput | u3 | Input u3 | |
| Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput | y | Output with u1 if u2 is true, else u3 |
Revisions
-
July 17, 2020, by Jianjun Hu:
Changed icon to display dynamically which input signal is being outputted.
This is for Buildings, issue 2033. -
July 10, 2019, by Milica Grahovac:
First implementation.