Call dll in LabVIEW wrote:
> Thanks for your answer. Actuly I try to operate a camera by LabVIEW. I
> use call library function for calling third part dll. I wrote SubVI
> accroding to dll. But I have problem to capture Signal from camera.
> Accroding to dll the capturesignal functio output shout be zero and
> then will give an array output.
> I send LV code as attachment. Will you check my LV code.
This means the DLL allocates the image. This is a very difficult
situation to deal with when calling it from LabVIEW. You can of course
treat the pointer as a 32 bit integer passed by reference and then later
on call the appropriate function in the DLL to deallocate the picture
(your DLL does privide such a function I would strongly hope, otherwis
e
it is sort of broken).
However you also want to get at the actual data in that image from
within LabVIEW and here the whole story gets utterly complicated. The
only thing I really can recommend is trying to find someone
knowledgeable in C and have them write an intermediate DLL which can
handle the LabVIEW <-> image capture DLL translation of data.
Rolf Kalbermatter
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390