Switch

Switch between two Real signals

    Switch

Library

Blocks/Logical

Description

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.

Parameters

Switch_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 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