LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL

Hello;

 

I am trying to communicate with my third party device.It is a laser sensor(Keyence LK-G 3001V type 152) I need to get distance information.The manufacturer provided me a DLL file and a header file which I am attaching in my post.The question is I am still unclear how to communicate i did read all information about calling DLL but still having problem to communicate.are those commands are sufficent to take distance information?

for instance i would like to use this command  LKIF_GetCalcData(OUT LKIF_FLOATVALUE *CalcData1,OUT LKIF_FLOATVALUE *CalcData2);

I use Call Library Function node and set the parameters and their type and so on ..what is the input? I m getting no output?

Please forgive me if i am making silly questions but I have no idea

Any kind of help ,idea will be appreciated.

Thanks in advance

NAzli

0 Kudos
Message 1 of 3
(2,908 Views)

Are you asking how to call a DLL in general, or how to use this specific DLL?

 

If it's the former, then you should take a look at the documentation that ships with LabVIEW as well as the example code that ships with LabVIEW that show you how to call DLLs. You can also take a look at How Do I Call a Dynamic Link Library (DLL) from LabVIEW?

 

If it's the latter, have you taken a look at the example that is provided in the zip file? It's in VB, but it's failry easy to follow.

Message 2 of 3
(2,887 Views)

Update: duplicate post to another duplicate post.

 

Please don't create multiple threads.  You just annoy the people trying to help you. 

0 Kudos
Message 3 of 3
(2,870 Views)