blockSwitch
Switch between two boolean signals
Information
Block that outputs one of two boolean 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.BooleanInput | 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.BooleanInput | u3 | Input u3 | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | 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. -
January 3, 2017, by Michael Wetter:
First implementation, based on the implementation of the Modelica Standard Library.