gets the indexed value of the array. The input timeIn and this strange if-else-clause is just to force the compiler to treat this call as a dynamic call. Any ideas how to fix it?
function getReal input ExternalMemoryLib.ExternalMemoryReal arr; input Integer idx; input Real timeIn; output Real val; end getReal;