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 thevector of input signals dependent on the Integervalue 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__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

'k'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

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

See Also