"Driver not Found" or "Failure Loading Driver" Using Visual Basic Examples for NI-DMM, NI-Scope, NI-FGEN and NI-DSA
Primary Software: Measurement Studio>>Visual Basic Support
Primary Software Version: 7.0
Primary Software Fixed Version: N/A
Secondary Software: Driver Software>>NI-DSA, Driver Software>>NI-DMM, Driver Software>>NI-SCOPE
Problem: When I run the Visual Basic examples for NI-DMM, NI-SCOPE, NI-DSA, and NI-FGEN or create them from scratch, I always get an error that it can't load the driver. How can I get around this?
Solution: The problem could be one of several reasons.
- You could have a bad installation of drivers. Make sure that the driver that your are using is supported on your operating system. Make sure that you have the latest versions of software, which will avoid version conflicts.
- The reference that you are using has become corrupted. Go to Project>>References within your Visual Basic project and remove the reference and add it again.
- There also could be a conflict with memory addressing within NI-DAQ and Visual Basic. You will need to add a registry key to the windows registry to correct this. Administrator privileges will be necessary to change anything in the registry.
- Go to Start» Run... and type regedit. Click OK.
- Goto \\HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\NI-PAL\CurrentVersion
- Right Click in the window on the right and create a new key and name it "palConfig"
- Click on the palConfig key and right click in the right hand window and create another key and name it "Memory"
- Click on the Memory key and create a DWORD and name it "sharedFixedAddress"
- Right Click on the sharedFixedAddress DWORD and modify the value to a hexadecimal of value 44000000.
You must then restart the computer for the change to take effect. You should now be able to run your NI-DMM, NI-SCOPE, NI-DSA, and NI-FGEN Visual Basic Examples.
- Specific to NI-DMM: There are known DLL collision issues with the Visual Basic debugger and National Instruments device drivers. This issue can also occur when using Teststand with a 4050 or 4060 DMM. A support DLL used by NI-DMM fails to load if Visual Basic has already loaded another DLL into the same address space. More information on this issue and solution are documented in the knowledgebase linked below.
Related Links: KnowledgeBase 2Q1HG8A6: Unusual Error Messages Loading, Executing, or Debugging an Application When Using NI-DAQ for Windows
Attachments:
Report Date: 10/04/2002
Last Updated: 02/25/2008
Document ID: 2Q36UJ2H