LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add inbuilt DLL to a project explorer


@billko wrote:

Project --> Show Item Paths


Thanks for the heads-up but it still does not display a path. The image below shows two different DLL files in the project viewer, and the DAQ970 one just doesn't display a path:

mc5000_0-1627912607368.png

 

Do you have any idea what that means?

 

0 Kudos
Message 11 of 17
(1,736 Views)

Have you checked in C:\Windows\System32 (or C:\Windows\SysWOW64 if you use LabVIEW 32-bit on a windows 64-bit system)?

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 12 of 17
(1,726 Views)

@rolfk wrote:

Have you checked in C:\Windows\System32 (or C:\Windows\SysWOW64 if you use LabVIEW 32-bit on a windows 64-bit system)?


Yes I have looked around manually and searched through the entire C:\Windows with windows explorer and freecommander. I can find some generic NI DAQ dll's but not that specific one.

0 Kudos
Message 13 of 17
(1,722 Views)

Hi. I have the same issue. I am writing drivers for some Keysight/Agilent instruments and seems I am using a "dll wrapper" IVI driver like the OP. I did find the KtDAQ970.dll file. Its in C:\Program Files (x86)\IVI Foundation\IVI\Bin.

 

Exe's cannot find this DLL, and there is no way to include it into the "Always included" box:

Krokanwood_0-1634726645599.png

 

So is the solution to rewrite everything to use SCPI commands instead? Why Can't I just add the DLL and stuff works? (Tried copying the dll... The exe created a tiny black hole and divided by zero. Didn't go well....)

 

0 Kudos
Message 14 of 17
(1,680 Views)

@Krokanwood wrote:

Hi. I have the same issue. I am writing drivers for some Keysight/Agilent instruments and seems I am using a "dll wrapper" IVI driver like the OP. I did find the KtDAQ970.dll file. Its in C:\Program Files (x86)\IVI Foundation\IVI\Bin.

 

Exe's cannot find this DLL, and there is no way to include it into the "Always included" box:

Krokanwood_0-1634726645599.png

 

So is the solution to rewrite everything to use SCPI commands instead? Why Can't I just add the DLL and stuff works? (Tried copying the dll... The exe created a tiny black hole and divided by zero. Didn't go well....)

 


I never found a working solution for including the DLL. What does work for me is to install the IVI shared components and the Keysight drivers (KtDAQ970-IviC-x64_1.0.0.0.msi in my case) on the machine which will run the executable.

 

I placed the necessary driver install files in a sub-folder of the LabView project and then added them as source files in the settings for the installer. This way the drivers are copied in a sub folder next to the executable but must still be installed manually. I believe I read somewhere that it is possible to make the installer run the driver files during installation, but it did not seem straight forward when multiple external installers are necessary so I did not spend the time trying to make it work.

0 Kudos
Message 15 of 17
(1,675 Views)

Thanks for the update. Good to know I can bundle it together like that, its a great idea.

 

For my project I downloaded a different driver set from page 1 in the discussion here and I'm going to replace all the code with SCPI based commands. Anything requiring a dll should be avoided like a viral infection when it comes to Labview I guess...

0 Kudos
Message 16 of 17
(1,672 Views)

Hi the problem can be solved by installing IVI C driver in the destination laptop. https://download.keysight.com/GM/KtDAQ970-IviC-x86_1.0.0.0.msi?dl=1&authparam=1643102215_e854a7d00a9...

 

which fixed the problem for me. for that you might also need to download ivi sharedcomponent driver too.

 

https://ivifoundation.org/downloads/Shared%20Components/IviSharedComponents_300.exe

0 Kudos
Message 17 of 17
(1,626 Views)