Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

The VISA driver library cannot be found (visa32.dll)

Hi!

 

I'm developing a Software that uses NationalInstruments.VisaNS and NationalInstruments.Common .net libraries. I have

installed already following packages:

 

- VisaSharedComponents32.msi (usb driver -> USB Test and Measurement Device (IVI) )

- NIVISAruntime.msi (install the visa32.dll and some other components)

- MStudioCommon.2005.msi (NationalInstruments.Common .net 2.0 library)

- MStudioVisa.2005.msi (NationalInstruments.VisaNS .net 2.0 library)

 

Now I got this error message: (visa32.dll is in C:\Windows\System32)

 

14:48:39 -> Init USB device 0x0123::0x0456 ... ERROR: System.DllNotFoundException: The VISA driver library cannot be found.  Either VISA is not installed, or VISA is improperly installed. ---> System.DllNotFoundException: Unable to load DLL 'Visa32.Dll': A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)
   at NationalInstruments.VisaNS.Internal.VisaDll.OpenDefaultRM32(IntPtr& sesn)
   at NationalInstruments.VisaNS.Internal.VisaDll.OpenDefaultRM(IntPtr& sesn)
   at NationalInstruments.VisaNS.Internal.VisaDll.viOpenDefaultRM(VisaHandle& sesn)
   --- End of inner exception stack trace ---
   at NationalInstruments.VisaNS.Internal.VisaDll.viOpenDefaultRM(VisaHandle& sesn)
   at NationalInstruments.VisaNS.ResourceManager.FindResources(String expression, Int32 resourceNameBufferSize)
   at NationalInstruments.VisaNS.ResourceManager.FindResources(String expression)
   at DutChanger.ChangerLogic.InitUsbDevice(String device)
14:48:39 -> System.Exception: Initialisation of device 0x0123::0x0456 failed!
   at DutChanger.MainProgram.Main(String[] args)

 

It seems he doesn't found the visa32.dll although this file is located in System32 folder!

 

 

Can someone help me please?

 

 

 

Thank you in advance!

 

 

 

Greets

 

 

 

0 Kudos
Message 1 of 7
(26,304 Views)

No one ?!

 

 

Thx

0 Kudos
Message 2 of 7
(26,271 Views)

I need a solution for this issue!

 

Thank you in advance!

 

Greets 

0 Kudos
Message 3 of 7
(26,264 Views)

have you got the correct version of VISA installed?

Regards
Ray Farmer
0 Kudos
Message 4 of 7
(26,250 Views)

Hi!

 

 

Sure. Last packages from NI site!

 

 

greets

0 Kudos
Message 5 of 7
(26,104 Views)

Hi!

 

 

I was able to solve the issue!

 

Solution: dont install parts of the installation, use the full setup package!

 

Setup package: http://joule.ni.com/nidu/cds/view/p/id/2914/lang/en (NI-VISA 5.1.2)

 

 

Greets

0 Kudos
Message 6 of 7
(26,099 Views)

For anyone who is interested to minimize the installation I found out which package was missing: VC2005MSMs_x86.msi

(you will find the folders in your extracted setup files in the Products directory)

 

The full list now:

 

VisaSharedComponents32.msi (Device driver)

NIVISAruntime.msi package: NI-VISA_Runtime

----------------------------------------------------------------------------------------------------------------------------

MStudioCommon.2005.msi package: MStudioCommon2005

----------------------------------------------------------------------------------------------------------------------------

MStudioVisa.2005.msi package: NI-VISA

----------------------------------------------------------------------------------------------------------------------------

VC2005MSMs_x86.msi package: VSMSM

 

 

 

Greets

Message 7 of 7
(26,019 Views)