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

TypeNameDefaultDescription
ExtendableArraytableExternal object
IntegeriXOne-based index where u needs to be stored in the array of the external object
RealxValue to store in the external object
IntegeriYOne-based index of the element that needs to be returned from C to Modelica

Outputs

TypeNameDefaultDescription
RealyValue of the i-th element

Revisions

  • September 9, 2011, by Michael Wetter:
    Revised implementation.
  • July 27, 2011, by Pierre Vigouroux:
    First implementation.