08-18-2008 04:24 PM
Just trying to brainstorm a more clever way of handling a common task that we find on our code. We use a lot of custom DLL's to implement some optimized functions. There are several times where we have a large array of data but only need to pass into the function a subset of the array at a certain offset into the array. This is currently handled using an array subset function and passing that data as an array data pointer into the function.
I was just thinking about the In Place Element and wondering if it would make this task much more efficient. My thought is that with the In Place element I could index the array element that represents my offset. Then pass the address of this element into my DLL function. This would only work if the address of the element matches its address in the array. Hopefully the attached image describes what I'm trying to explain.
My guess from reading the help is that the In Place Element only ensures that the entire array is not copied but does not mean that the element indexed is not a temporary allocation. Anyone know if this is true?
My other option is to re-write my DLL functions to accept an offset but this affects all the other programs that call these functions and are not written in LabVIEW.
Thanks,
Andy
08-19-2008 02:34 AM
08-19-2008 06:49 PM