From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call Library Function Issue

I'm having some issues that came about when we had to replace an old PC.  The issue is documented in the attached Microsoft Word document.  Any and all help is much appreciated.  Thanks!
0 Kudos
Message 1 of 8
(3,065 Views)

You could open the vi with the call to the DLL and delete the Call Library. Add a new Call Library and reconfigure it. Save your Labview vi restart labview and see if it saved the DLL location properly.If this worked then make the application an see if it works.

 

Have you tried replacing the dll that does not work in the orginal location with the dll that does work in the orginal dll's location.

 

It sound like there are multiple versions of this dll with different code. Unfortunatly they are all named the same.

Tim
GHSP
0 Kudos
Message 2 of 8
(3,057 Views)
How are things going with this?
Regards,
Claire Reid
National Instruments
0 Kudos
Message 3 of 8
(3,031 Views)

cauwelsc wrote:
I'm having some issues that came about when we had to replace an old PC.  The issue is documented in the attached Microsoft Word document.  Any and all help is much appreciated.  Thanks!

Most likely you have another VI that references the same DLL with the old path and is loaded first in your project. When LabVIEW gets along to load your changed VI it sees that the DLL is already loaded and relinks to that one. Why the DLL would work in one place but not in the other is hard to say. It could be that it references other DLLs, or some configuration file or something located relative to itself and this file is missing in the one place that doesn't work.

 

Rolf Kalbermatter 

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 8
(3,016 Views)
Thank you all for your suggestions.  Turns out that, for some reason, I needed to type the path of the source code DLL in the Windows environment variables path setting.  As soon as I did that, the issue went away in re: to the source code execution.  I'll be testing out an EXE today.  Thanks again!
0 Kudos
Message 5 of 8
(2,973 Views)

I'm having this same issue with a DLL.  Everytime I freshly load labview and this vi, it won't run the dll.  I need to physically open the Call Library Function, click on the folder and point the DLL to the exact same location that was already listed.  It will then run properly.

 

I've confirmed that this specific function call is the "first time run".   I do not have the path set in the windows environment but will experiment doing this.

0 Kudos
Message 6 of 8
(2,515 Views)

Note that when the Call Library Function does not contain an explicit path to the DLL, it relies on the OS to find it; whereas if it does have an explicit path, it looks only there.

0 Kudos
Message 7 of 8
(2,509 Views)

I tried suppling a path (Specify Path on Diagram), and it still will not work correctly.  If I copy the dll to the system32 directory, it works.  But, this is not an option as I do not want to clutter the system32 directory with auxillary dlls.

0 Kudos
Message 8 of 8
(2,506 Views)