01-25-2007 08:49 AM
01-25-2007 10:59 AM
01-26-2007 03:28 AM
Hi!
Thanks for the tip!
In fact now I am able to pass 1D-arrays using the method "Array Data Pointer" when I create the DLL in Labview. It appears another variable which is the length of the array and everything works fine. In Matlab I create the pointer and I give the size of the array and it works.
The problem is that when I move to 2D or 3D-arrays, when generating the DLL, Labview no longer asks me if I want to pass the table as Array Data Pointer or Array Handle Pointer (if I use the last one, even with 1D-arrays, it does'nt work in Matlab). So I generate the DLL, I load the library into Matlab and when I look the description of the functions inside Matlab indicates that the tables are passes as "voidPtr". I create those pointers in Matlab but it gives an error when I call the DLL. I don't know how to work around on this. If there are someone with some experience on how to solve this problem, please give me some feedback.
Thank you for the help.
Sérgio