02-27-2012 08:16 AM
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
03-06-2012 01:39 AM
No one ?!
Thx
03-06-2012 06:42 AM
I need a solution for this issue!
Thank you in advance!
Greets
03-08-2012 02:55 AM
have you got the correct version of VISA installed?
04-11-2012 03:33 AM
Hi!
Sure. Last packages from NI site!
greets
04-11-2012 07:49 AM
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
04-26-2012 02:46 AM - edited 04-26-2012 02:47 AM
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