10-25-2016 05:50 PM
Hi,
I am having some issues with LabVIEW creating a working executable for my application. The program communicates with a Keyence LK-G5000 series laser displacement sensor with drivers provided by Keyence. When running the program within the development environment, the program runs without any issues. However, when building the program and running the program with an executable, the program outputs Error 7 as shown below:
After looking through previous posts about error 7 and the executable environment on the NI forums, I found a lot of people mentioned that the development environment and run-time environment use different path structures. I also found a guide from NI to fix this issue here:
http://digital.ni.com/public.nsf/allkb/FD7DE8BC8FFC256C862565F4006BE363
However, after following these instructions, I still receive error 7 only while running the program in an executable environment.
I have never used any .lvlib libraries in the past before, so I am not sure if this may have been the issue (it was provided by Keyence.) The library includes 2 private VIs that can only be called within the library, so I don't think I can go without using the library. There are VIs in the library that call upon DLL files (which are also included in that same library) through the Call Library Function Node in LabVIEW which don't seem to be included when I create an executable. Even adding the DLL files manually to the folder where the executable exists results in the same error 7.
Is there anything I am forgetting in my code to allow the program to function within an executable?
Attached are the Keyence drivers, my top level VI (GeoREF-Keyence controller.vi) and all my sub VIs.
Best regards,
Victor
Solved! Go to Solution.
10-26-2016 05:24 AM
Executables take different path, as a start of debug make the path as indicator and see what path is being expected in executable mode?
10-26-2016 07:39 AM
10-26-2016 11:07 AM
Hi PalanivelT,
Thanks for the reply.
It looks like I was missing a another strip path on the development environment after using indicators to show the DLL path.
The problem is now solved.
Thanks!
12-09-2021 09:30 AM
Good day. I found your write-up and was looking at the VI you made available. I just started trying to get connectivity between labview and then LK-G5001 via ethernet. I am currently just wanting to connect over Ethernet and read the values for the output setup in the LK-Navigator software. Can you assist in a generic connectivity vi? THank you for your time.