LabWindows/CVI

取消
顯示結果 
搜尋替代 
您的意思是: 

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 積分
1 條訊息(共 2 條)
2,957 檢視
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 積分
2 條訊息(共 2 條)
2,957 檢視