LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Snap7 DLL not found with executable, OK in Labview

Solved!
Go to solution

Hello,

 

I created a VI using snap7 library (using a DLL) to communicate with a siemens S7-1500 PLC.

 

In Labview environnement everything is working (Labview 2014 32 bits - Windows 7) but when I created the executable file with the application builder it doesn't work. I can see the DLL en the project and it is in the data file but I have some error messages :

 

1)

1.jpg

 

Cannot start the program because SNAP7.DLL is missing on your computer. Try reinstalling the program to fix this problem.

 

 

 

2)

2.jpg

 

Labview : Resource not found
lv_snap7.dll
An error occurred when loading the VI 'Snap7.lvlib:CliDestroy.vi'.

 

 

 

3)

3.jpg

 

Sub-VI '....' missing in the VI '........'

 

 

 

 

 

 

 

I try to copy this DLL in windows file, system32, in the same file than the .exe, to copy all in the c: root, but always the same messages.

 

I also try to register the DLL using REGSVR32 command but impossible :4.jpg

 

Failure while loading the module "lv_snap7.dll".

Check that the binary file is stored at the location designated by the specified path or debug it to look for any problems with binary or dependent DLL files.

The specified module cannot be found.

 

 

I precise that the DLL is in the path.

 

I think I'm missing something. 

I join a simplified VI and the Snap7 library link :

https://sourceforge.net/projects/snap7/files/1.4.2/

 

Thanks for your help.

Mathieu

 

 

0 Kudos
Message 1 of 3
(3,139 Views)
Solution
Accepted by topic author MathieuG.

I found that the lv_snap7.dll use anothe dll named snap7.dll. When I copy this second dll it works.

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

I had the same issue. I fixed it thanks to your response. 🙂

0 Kudos
Message 3 of 3
(1,509 Views)