LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to transfer 2d array between LV Call Lib Func Node and a DLL?

the document only lists the 1d array data transfer, is it possible to trans
2d array btw LV and DLL ?

any sample or rules ?

thanks
0 Kudos
Message 1 of 3
(2,711 Views)
Depends what you understand under a 2D array. In C a two dimensional array will sometimes be a pointer to an array of pointers to the array of data. This is not how LabVIEW can pass 2D arrays. LabVIEW 2D arrays are really just a pointer to a single array with row * column elements.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 3
(2,711 Views)
Hi Richard,

I have attached an example that uses a dll built in LabVIEW and calls it from LabVIEW. Please take a look at how the Call Library Function is configured.

I hope this helps.

Sincerely,
Feroz
National Instruments
0 Kudos
Message 3 of 3
(2,711 Views)