LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use third party dll

Hello All
I try to use a third party dll in labview. Accroding to external code manual dll should have the extcode.h and labview.lib. but I don't did they inlude this extcode.h and labview.lib file with their dll.Will call library function work without this tow file?
Thanks
Kamal
mohammad.kamal2@mail.dcu.ie
0 Kudos
Message 1 of 4
(2,875 Views)
You've misread the the manual. A dll only requires the header and lib when the dll is using LabVIEW manager functions (i.e. for LabVIEW memory manipulation). It's unlikely that your third party dll is doing anything like this so they don't have to included.
0 Kudos
Message 2 of 4
(2,875 Views)
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.
Thanks
Kamal
0 Kudos
Message 3 of 4
(2,875 Views)
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
0 Kudos
Message 4 of 4
(2,875 Views)