blockSwitchInteger

Switch between two Integer signals
Diagram of SwitchInteger

Information

The Logical.Switch switches, depending on the logical connector u2 (the middle connector) between the two possible input signals u1 (upper connector) and u3 (lower connector).

If u2 is true, the output signal y is set equal to u1, else it is set equal to u3.

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.IntegerInputu1Connector of first Integer input signal
Modelica.Blocks.Interfaces.BooleanInputu2Connector of Boolean input signal
Modelica.Blocks.Interfaces.IntegerInputu3Connector of second Integer input signal
Modelica.Blocks.Interfaces.IntegerOutputyConnector of Real output signal