Switch

Switch between two Real signals

    Switch

Library

Modelica/Blocks/Logical

Description

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

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

Ports

NameTypeDescriptionIO TypeNumber

u1

implicit

Connector of first Real input signal

input

1

u2

implicit

Connector of Boolean input signal

input

2

u3

implicit

Connector of second Real input signal

input

3

y

implicit

Connector of Real output signal

output

1

See Also