NI-DAQ OPC Server Troubleshooting Wizard: Verifying Installation
Verifying Installation
- A corrupted installation is highly unlikely on a new computer, but can be the result of multiple installations, upgrades, a previous crash, or an improper system shutdown. The NI-DAQ OPC 7.0 server is implemented by nidaqopc.exe (or nidaqopc.dll if connecting to the in-process implementation). First, make sure you have these two files on your computer. Just search your hard drive. They should be located in <x:>\Program Files\National Instruments\NI-DAQ\OPC.
- The server is a standard Windows 32 application and depends on a few other DLL libraries. Some of them, such as nidopcmg.dll, are National Instruments DLLs; some of them, such as msvcrt.dll, are not. A missing DLL or a wrong version can result in an incorrect behavior, usually presented by the OPC client as Server Execution Failed: 0x80080005 .This error message can have different causes, so it should not be an immediate indication for reinstallation.
- You can download a third-party utility called Dependency Walker from the link below and load the nidaqopc.exe in this utility (File»Open). If there is a missing file, an error displays. If the system reports a missing file, reinstall NI-DAQ.

- Another way an installation can be corrupted is a registry corruption. Some sort of registry verification can be done through the DCOM Configuration Utility.
- Start DCOM configuration by typing dcomcnfg in the Start » Run dialog box (refer to Microsoft DCOM Site, linked below, if you receive an error).
- In the Component Services Window that opens, select Component Services, Computers, My Computer, DCOM Config as shown below.

[+] Enlarge Image
- Right-click DAQ OPC Server and select Properties. If you cannot find this entry, you either have an incomplete installation or are running NI-DAQ version 6.8.x or earlier on a Windows NT/2000 system. If you are running NI-DAQ version 6.8.x or earlier and do not want to update to the latest NI-DAQ driver version (linked below), look for the Local entry. This is how version 6.8 will appear on Windows NT/2000/XP systems.
- The Property page displays the Local Path, which should point to the right folder (<x>:\Program Files\National ….):

Note: It is likely that the path will be truncated as shown on the picture above. This is not the result of an error, but limited display space. - If you cannot see any of these entries nor browse the properties, there is something wrong with the registry. You can try to reregister the OPC server with the following command line (executed from the command prompt from the directory in which nidaqopc.exe resides):
nidaqopc.exe /register - If this still does not help, you need to reinstall the server. Make sure you run registry cleaner before reinstalling. The cleaner is available for download on the Internet; use a search engine to search for Regclean.
Return to NI-DAQ OPC Server Troubleshooting Wizard Home.
See Also:
Dependancy Walker
Microsoft DCOM Site
Latest DAQ Drivers
Reader Comments | Submit a comment »
Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
