04-27-2006 04:53 AM
05-02-2006 04:10 AM
05-03-2006 08:29 PM
05-09-2006 10:42 AM
05-09-2006 03:45 PM
Stop right here! The function will return an array of I16 values. But your function expects an array of chars or in other words bytes. Now is the type of the pointer not really that important as no matter what LabVIEW passes to the DLL function it is just a pointer and the DLL is free to interpret it in any way it wants. The problem is that the size of the I16 array will be in number of I16 elements. Passing this as length to the DLL function will tell the function that you have placed x bytes in the buffer while in fact you have placed x words in there, but the function will only look at x bytes and ignore the remaining x bytes in the buffer.
@Jimmy168 wrote:
Hi wiebe,I am very sorry for my late reply because I am very busy for these days.i tried your method. i used "read from I16 file"
05-16-2006 08:34 PM