LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Initializing a buffer in call library function for capturing image data

Hi all,
How can I initializing a buffer in call library function for capturing image data from a camera?




Thanks
Kamal
0 Kudos
Message 1 of 3
(2,808 Views)
If you want your DLL code to initialize buffer to pass data back to LabVIEW, then you have to use LabVIEW's memory manager functions e.g. DSSetHandleSize etc..

Here is your starting point
http://digital.ni.com/public.nsf/websearch/a6705fec7ea42300862567b70054206e?OpenDocument

A Rafiq
0 Kudos
Message 2 of 3
(2,791 Views)
Hi Kamal,
An easy way could be to use, e.g., the "Initialize Array.vi" from the Array palette or any other LabView code to generate an array of the desired type, dimension and size. Then configure the Call Library Node to pass a pointer to the array to your external code.

Best regards

Arno
0 Kudos
Message 3 of 3
(2,771 Views)