LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL Keyence LJ-V problem

Solved!
Go to solution

Hello, i'm new to the world of Labview, since i discovered it three weeks ago. I'm currently in internship and i must develop a Labview application using a Keyence profilometer. I need to extract datas from the profilometer and treat them at the same time using Labview. I have a laser head LJ-V080 plugged into a controller LJ-V7001P, who's communicating with the computer using a USB cable.

Keyence provided a DLL library (LJV7_IF.dll) wich is supposed to work with Labview, however i'm using the "Import shared library" tool and Labview is unable to recognize all the functions contained in the library. It's seems that the LONG type is not recognized, wich is supposed to be defined in windows.h, right ? So i tried including windows.h in the header but nothing changed. And i didn't understand how to use the preprocessor definitions to fix the problem.

I attached the zip file containing the Keyence DLL along with a picture of the error i'm getting. I'm using Labview 2016 with Windows 7 professional 64 bit. I apologize for the bad english, it's not my first language.

 

Thank you in advance,

Theo

Download All
0 Kudos
Message 1 of 5
(7,877 Views)

HI,

 

Thank you for posting in the NI Forum. This link might be helpful: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YGZjCAO&l=en-US.

 

More than that, where did you get the windows.h file ?

 

Can you install the windows SDK (https://www.microsoft.com/en-us/download/details.aspx?id=8279) and point in the "Include Path" the location of the Windows.h header after the SDK installation ?

 

Thanks,

0 Kudos
Message 2 of 5
(7,766 Views)
Solution
Accepted by topic author choisn_t

Hi

Keyence once had LabVIEW driver for LJ-V7000 series, but I can't find it anywhere on the Internet (there is evidence here: https://www.dmcinfo.com/latest-thinking/blog/id/8658/using-lj-v-keyence-lasers-in-labview , but the download link is dead). I remember it wrapped DLL you use.

Try contacting your Keyence representative, maybe they'll locate it for you.

0 Kudos
Message 3 of 5
(7,749 Views)

Do you realize that "data" is already a plural?  "Datas" is not a word - unless you are referring to duplicate copies of a certain android on a certain TV show.  😄

 

I'm just noting this because, as you are an intern, I am lead to believe you are someday wanting to become an engineer.  Engineers must learn how to communicate effectively.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 5
(7,740 Views)

Hi choisn_t,

 

I would like to know if you managed with one of the solutions given to import your DLL file ? 🙂

 

Best Regards,

 

 

0 Kudos
Message 5 of 5
(7,702 Views)