functionexchangeValues
Store the value u at the element n in the external object, and return the value of the element i
Information
External function that stores the input value x as the element
a[iX] in the array
a = [a[1], a[2], ...],
and that returns the element a[iY].
The size of the array a is automatically enlarged as needed.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| ExtendableArray | table | External object | |
| Integer | iX | One-based index where u needs to be stored in the array of the external object | |
| Real | x | Value to store in the external object | |
| Integer | iY | One-based index of the element that needs to be returned from C to Modelica |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | y | Value of the i-th element |
Revisions
-
September 9, 2011, by Michael Wetter:
Revised implementation. -
July 27, 2011, by Pierre Vigouroux:
First implementation.