LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Importing keyence LS9501 DLL fails or just won't work

I'm trying to get my Keyence LS9501 laser measurement unit working in Labview.

Keyence only offers a .dll file for 32Bit and 64Bit, see

https://www.keyence.com/download/download/confirmation/?dlAssetId=AS_58192&dlSeriesId=&dlModelId=&dl...

so I manipulated the header file according to

https://www.ni.com/docs/en-US/bundle/labview/page/calling-external-apis.html

and imported the dll by tools/import/shared library, working fine for the 32Bit version, the 64Bit version offers no function to convert, strange...

So I went on with the 32Bit version, although running on 64Bit Windows 10. I can open the Ethernet connection and get measurement values, but what is most important for me are the set and get settings function, which don't work.

I get error code 1097, Call Library Function Node in LS9_IF.lvlib:LS9IF Get Setting.vi->LS9501.vi and get no value for the settings I want to read in.

The VI created by the wrapper indicates the red informations as a string instead of bytes, also the control for writing the settings is a string instead of bytes.

In the header file of the dll, the control / indicator is defined as BYTE* , can i modify this in any way so the VI will accept byte or at least will indicate the output right, because all I get in the indicator is "".

0 Kudos
Message 1 of 4
(3,117 Views)

Hi @B_Hackert,

 

I know that it is not a direct answer to your question, but after a very brief research I found information about Communications Library from Keyence.

Did you see this forum discussion?

Best Regards,
TK
Certified LabVIEW Architect (CLA)

0 Kudos
Message 2 of 4
(3,077 Views)

@n_dakota wrote:

@hi @B_Hackert,

 

Did you see this forum discussion?


He did! The second last post, the one before my answer is from him!

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 3 of 4
(3,071 Views)

Shame on me, thanks @rolfk!

Best Regards,
TK
Certified LabVIEW Architect (CLA)

0 Kudos
Message 4 of 4
(3,065 Views)