LogicalSwitch

Logical Switch

    LogicalSwitch

Library

Modelica/Blocks/Logical

Description

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

If u2 is true, connector y is set equal to u1, else it is set equal to u3.

Parameters

LogicalSwitch_0

NameLabelDescriptionData TypeValid Values

mo_u1

u1

u1

Structure

mo_u1/fixed

fixed

Cell of scalars

true
false

mo_u1/start

start

Cell of scalars

mo_u2

u2

u2

Structure

mo_u2/fixed

fixed

Cell of scalars

true
false

mo_u2/start

start

Cell of scalars

mo_u3

u3

u3

Structure

mo_u3/fixed

fixed

Cell of scalars

true
false

mo_u3/start

start

Cell of scalars

mo_y

y

y

Structure

mo_y/fixed

fixed

Cell of scalars

true
false

mo_y/start

start

Cell of scalars

Ports

NameTypeDescriptionIO TypeNumber

u1

implicit

Connector of first Boolean input signal

input

1

u2

implicit

Connector of second Boolean input signal

input

2

u3

implicit

Connector of third Boolean input signal

input

3

y

implicit

Connector of Boolean output signal

output

1