07-22-2021 03:49 AM
My vendor requested a .NET assembly from me, a quite simple application in LabVIEW. The output of my method should be a 2D Array with over 1.0000.000 elements, i.e. [4][250000]. Passing a LabVEW array to .net doesn't work directly, so I have to create a .NET array programmatically, based on the LabVEW array. You can see on the snippet, how I do it. It is working, but... the To .NET Object.vi takes too long, and the conversion time for all the 1M element is not acceptable - neither for me nor for the vendor.
Is there any faster way to do that? Or is there any other way to pass the array from LV to .NET?
Solved! Go to Solution.
07-22-2021 04:26 AM
07-22-2021 04:41 AM
This returns TRUE. I didn't test 250000, because the 'old' method takes forever.
Both types are System.Double[,], so it seems to me they are the same.
07-22-2021 04:50 AM
Hey, it is easier as I thought 😄
I have done this, now I am waiting for reply from the .NET developer. On my side it works, the resulting .NET array has the same content as the LabVIEW array.
Thanks!
07-22-2021 05:03 AM
@Madottati wrote:
Hey, it is easier as I thought 😄
Sometimes you get lucky!