LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass array from CVI DLL to LV6 by reference

I have created a DLL in CVI that builds a large array
(2048x2048 x double.) I would like to send this data to LV6i by reference pointer. I found many examples of how LV6 can create this mem and pass it to CVI - but not vice-versa.

Also, what is the difference (advantages, or
disadvantages) of sending a 'handle' to this array.

Many Thanks in advance!

-Martin
0 Kudos
Message 1 of 2
(2,856 Views)
Martin,

You will need to use the LabVIEW memory functions to create the dataspace for your array in LabVIEWs dataspace. The Using External Code with LabVIEW manual discusses these functions and how to use them.

The following document on the zone also discusses how to use the memory manager functions in LabVIEW with examples.

http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/9e21592a5f39238c862569880064d694?OpenDocument

The advantage of using a handle is that the size of the array comes along with the actual data. The disadvantage is the awkwardness of handling the handle.

Hope these links help.

Marc
0 Kudos
Message 2 of 2
(2,856 Views)