ExtractSignal

Extract signals from an input signal vector

    ExtractSignal

Library

Modelica/Blocks/Routing

Description

Extract signals from the input connector and transfer themto the output connector.

The extracting scheme is given by the integer vector 'extract'.This vector specifies, which input signals are taken and in whichorder they are transferred to the output vector. Note, that thedimension of 'extract' has to match the number of outputs.Additionally, the dimensions of the input connector signals andthe output connector signals have to be explicitly defined via theparameters 'nin' and 'nout'.

Example:

     nin = 7 "Number of inputs";     nout = 4 "Number of outputs";     extract[nout] = {6,3,3,2} "Extracting vector";

extracts four output signals (nout=4) from the seven elements of theinput vector (nin=7):

   output no. 1 is set equal to input no. 6   output no. 2 is set equal to input no. 3   output no. 3 is set equal to input no. 3   output no. 4 is set equal to input no. 2

Parameters

ExtractSignal_0

NameLabelDescriptionData TypeValid Values

mo_nin

nin

Number of inputs

Scalar

mo_nout

nout

Number of outputs

Scalar

mo_extract

extract

Extracting vector

Vector

ExtractSignal_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

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 signals

output

1