Extractor

Extract scalar signal out of signal vector dependent on IntegerRealInput index

    Extractor

Library

Modelica/Blocks/Routing

Description

This block extracts a scalar output signal out the vector of input signals dependent on the Integer value of the additional u index:

    y = u [ index ] ;

where index is an additional Integer input signal.

Parameters

Extractor_0

NameLabelDescriptionData TypeValid Values

mo_nin

nin

Number of inputs

Scalar

mo_allowOutOfRange

allowOutOfRange

Index may be out of range

Scalar

true
false

mo_outOfRangeValue

outOfRangeValue

Output signal if index is out of range

Scalar

Extractor_1

NameLabelDescriptionData TypeValid Values

mo_u

u

u

Structure

mo_u/fixed

fixed

Cell of vectors

true
false

mo_u/start

start

Cell of vectors

mo_y

y

y

Structure

mo_y/fixed

fixed

Cell of scalars

true
false

mo_y/start

start

Cell of scalars

mo_index

index

index

Structure

mo_index/fixed

fixed

Cell of scalars

true
false

mo_index/start

start

Cell of scalars

Ports

NameTypeDescriptionIO TypeNumber

u

implicit

Connector of Real input signals

input

1

y

implicit

Connector of Real output signal

output

1

index

implicit

input

2