LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing pointer-to-pointer matrix

Can Labview pass to an external Dll-function a pointer-to-pointer format matrix (i.e. int ** or double **)? If so, how? If not, how could I possibly work around?
0 Kudos
Message 1 of 2
(2,532 Views)
Luis ASM wrote:
> Can Labview pass to an external Dll-function a pointer-to-pointer
> format matrix (i.e. int ** or double **)? If so, how? If not, how
> could I possibly work around?

No LabVIEW can't, because this declaration is not clear. Is it just a
pointer to a pointer to some memory or is it a pointer to an array of
pointers? While C's declaration doesn't make a difference between those
two the implementation is completely and utterly different. While the
first would sort of be possible to deal with in a standardized way the
second isn't as you have all sorts of uncertain things which are
implementation specific.

The simplest and proper solution to deal with this is having a wrapper
DLL which translates between LabVIEW datatypes and those complica
ted DLL
datatypes.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 2 of 2
(2,532 Views)