Switch

Switch between two Real signals

 Description The output $y$ switches between inputs $\mathrm{u1}$ and $\mathrm{u3}$, depending on the $\mathrm{u2}$ input.
 Equations $y=\left\{\begin{array}{cc}\mathrm{u1}& \mathrm{u2}\\ \mathrm{u3}& \mathrm{otherwise}\end{array}$

Connections

 Name Description Modelica ID $\mathrm{u1}$ Real input signal u1 $\mathrm{u2}$ Boolean input signal u2 $\mathrm{u3}$ Real input signal u3 $y$ Real output signal y

 Modelica Standard Library The component described in this topic is from the Modelica Standard Library. To view the original documentation, which includes author and copyright information, click here.