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

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.BooleanInputu1Input u1
Buildings.Controls.OBC.CDL.Interfaces.BooleanInputu2Boolean switch input signal, if true, y=u1, else y=u3
Buildings.Controls.OBC.CDL.Interfaces.BooleanInputu3Input u3
Buildings.Controls.OBC.CDL.Interfaces.BooleanOutputyOutput 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.