LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW cannot load DLL

Solved!
Go to solution

Hello!

After not having used LabVIEW for some time and with a switch of my workstation to a Windows 11 based one in between, I now have trouble to get something working again.

What did I do?

1. On the old workstation, I had LV 2021 (32 bit) installed and there a set of VIs in a folder under \user.lib. The VIs each contained a CLN, for a DLL call. All was fine and loading and running.

2. Made a backup in 2024 of that folder in form of a ZIP file.

3. In January 2025 I got my new workstation, later installed LV 2021 (32bit) again.

4. Today unpacked the folder from the ZIP into the same location (i.e. same path) as it was before on the old workstation.

 

Now, when opening any of the VIs with the CLN, it cannot be run and LabVIEW says it cannot load the DLL. I even suspected a user permissions problem and changed the permissions for the DLL, but no chance.

 

Any clue what might be the actual reason? I cannot think if anything else. TIA. 

0 Kudos
Message 1 of 4
(438 Views)
Solution
Accepted by topic author MaSta

Hi MaSta,

 


@MaSta wrote:

Now, when opening any of the VIs with the CLN, it cannot be run and LabVIEW says it cannot load the DLL. I even suspected a user permissions problem and changed the permissions for the DLL, but no chance.

 

Any clue what might be the actual reason? I cannot think if anything else.


Does that DLL have any dependencies?

It's not just "load this specific DLL", but also "find all referenced dependencies"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(422 Views)
Solution
Accepted by topic author MaSta

The library probably depends on a driver or runtime. Open the DLL with this tool and see what its dependencies are: https://github.com/lucasg/Dependencies

 

Message 3 of 4
(399 Views)

@cordm wrote:

The library probably depends on a driver or runtime. Open the DLL with this tool and see what its dependencies are: https://github.com/lucasg/Dependencies

 


That's it. Thinking about it, I remembered that the DLL was based on a package of CAN tools from a german company called ESD and that this package comes with an installer that most likely had installed the dependency DLL in the system without me being aware.

0 Kudos
Message 4 of 4
(372 Views)