Hi!
I have made a DLL in C++/MFC. I have to implement a function that can
fill a LabView 2D-array with some data. How can that be done?
I suppose the function should look something like this:
int MyDllFunction(unsigned char **matrix, int width, int height)
{
for (int r = 0; r height; r++)
Evan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]...
Chris,
I just wanted to add my 2 cents on the topic. Rolf has got you down
the correct path, however there is an example that I think will really
help you.
It ships with LabVIEW 7.0 and can be found at C:\Program
rolf [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]...
So basically my function is valid (although I have to switch rows and
columns for a valid result) and all I need is to make a LabView
program that allocates a 2d-array and passes it to this dll function?
Well, not sure about
So basically my function is valid (although I have to switch rows and
columns for a valid result) and all I need is to make a LabView
program that allocates a 2d-array and passes it to this dll function?
Well, not sure about switching columns and rows really, you will have
to try this out. My
Chris,
I just wanted to add my 2 cents on the topic. Rolf has got you down
the correct path, however there is an example that I think will really
help you.
It ships with LabVIEW 7.0 and can be found at C:\Program
Files\National Instruments\LabVIEW 7.0\examples\dll\data
passing\Calling Native
Thanks a lot! I'll try it out. To me it seems quite strange to be
using a single pointer though. But, then again, I don't really know
how LabView works =).
As Rolf pointed out, this isn't a LV issue, but a C one. In C, 2D
arrays can be defined with [][], in which case the code generated by