Extractor

Extract scalar signal out of signal vector dependent on IntegerRealInput index

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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 (4)

nin

Value: 1

Type: Integer

Description: Number of inputs

useConjugateInput

Value: fill(false, nin)

Type: Boolean[nin]

Description: If true, inputs are processed conjugate complex

allowOutOfRange

Value: false

Type: Boolean

Description: Index may be out of range

outOfRangeValue

Value: Complex(1e10, 0)

Type: Complex

Description: Output signal if index is out of range

Connectors (3)

u

Type: ComplexInput[nin]

Description: Connector of Complex input signals

y

Type: ComplexOutput

Description: Connector of Complex output signal

index

Type: IntegerInput

Components (3)

uInternal

Type: Complex[nin]

Description: Equals either u or conjugate complex input u if useComplexInput = true

outOfRangeValue

Type: Complex

Description: Output signal if index is out of range

k

Type: Complex[nin]