LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW changes DLL paths & names... (LV 8.2)

Hi,

we have a problem like the following:

- we created a version 1.0 of a DLL named "dll 1.0.dll" that we call from LabVIEW, which resides in a directory "...\Version 1.0"
- we created wrapper vis that reside in the very same directory

- we created a new version 1.1 of the DLL, named it "dll 1.1.dll" and placed it into a different directory named "...\Version 1.1"
- we copied all vis from 1.0 to 1.1 and changed (!) the location and names (!) of all DLL calls

When we reopen the 1.1 vis, LabVIEW starts to search for the DLL (which is not really necessary, since all is there in the right place and with the right name!). Here it comes: It finds Version 1.0... this does not cause an error in the first place, since all function calls were already there in the old version, but the functionality changed of course...

I've read all the articles around here regarding LabVIEW finding DLLs in different places unless the DLL is stored in the application directory - but why does it find a DLL with a different name and uses it instead?!?

Regards
Matthias
0 Kudos
Message 1 of 4
(2,693 Views)

Hi Matthias,

Which version of LabVIEW are you using? If you are using LV8.0 or higher and there especially the Project Explorer, so keep in mind that the Projecttree and the Folders, VIs or other files locations not necessary must be in the same directory structure as displayed within the Project Explorer. This means that Folders you are creating in the Project Explorer don't be created also on the System!

As you said, LabVIEW is searching for the dll if you start the updated VI (1.1) and then finds the dll 1.0.dll. For which dll is LabVIEW searching, for the 1.0 or for the 1.1 version?

Kind Regards, Christian

0 Kudos
Message 2 of 4
(2,669 Views)
Hi Christian,

this happened in 7.0 and 8.2 and is not related to project folders. And yes, afaik LabVIEW searched for the 1.1 and found the 1.0...

Matthias
0 Kudos
Message 3 of 4
(2,662 Views)

Hi!

In the dialog, where LabVIEW is searching the dll, you can select the dll manually. If you do this the first time, LabVIEW knows it for all further starts, did you try this? Also i would recommend to change the name of the dll form dll 1.1.dll into dll_1_1.dll or dll_11.dll, so don't use a . in the name.

Christian

0 Kudos
Message 4 of 4
(2,639 Views)