encapsulated function setMatrix import Modelica; import Modelica_DeviceDrivers.Incubate.OperatingSystem.DynamicArray; input DynamicArray arrayID; input Real u[:, :] "data to be stored"; input Integer index "index, where in memory data has to be stored"; end setMatrix;