SelectInput

This block selects one of its inputs and copies it into its output, when activated. The block determines the selected port depending on the way by which it has been activated. If the activation is received on its i-th input activation port (the top left port being numbered one), the i-th regular input is copied to the output (top most port being numbered one). In case the block is activated synchronously through more than one input activation ports, the lowest numbered port is taken into account, others are ignored. The block accepts different signal types and sizes but all the inputs must have identical type and compatible sizes (same size as the output or scalar).

    SelectInput

Library

Activate/Routing

Description

This block selects one of its inputs and copies it into its output when activated. The block determines the selected port depending on the way by which it has been activated. If the activation is received on its i-th input activation port (the top left port being numbered one), the i-th regular input is copied to the output (top most port being numbered one). In case the block is activated synchronously through more than one input activation ports, the lowest numbered port is taken into account, others are ignored. When the external activation is turned off, this block copies the currently activated input to the output by inheriting activation. The block accepts different signal types and sizes but all the inputs must have identical type and compatible sizes (same size as the output, scalar is expanded to the same size of other matrix input).

Parameters

SelectInput_0

NameLabelDescriptionData TypeValid Values

typ

Input/Output datatype

Specifies the data type of the input and output.
Supported types are: double, complex, int32, int16, int8, uint32, uint16, uint8, inherit.

String

'double'
'complex'
'int32'
'int16'
'int8'
'uint32'
'uint16'
'uint8'
'boolean'
'inherit'

nin

Number of inputs

Specify the number of input signals to be selected.

Number

externalActivation

External activation

The same number of activation inputs as regular inputs are added to the block when selected. The external activation determines which input to be copied to the output. Default is OFF.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

nin

Port 2

explicit

output

1

Port 3

activation

input

nin*externalActivation

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no

See Also