Error Loading lvdaq.dll, a Dynamic Link Library (DLL) Initialization Routine Failed

Updated May 3, 2018

Reported In

Software

  • LabVIEW

Driver

  • NI-DAQmx
  • Traditional NI-DAQ

Issue Details

After I open or start LabVIEW, I try to load my program. When it is loading, this error message is displayed: Error loading \LabVIEW x.x\vi.lib\daq\lvdaq.dll. A dynamic link library (dll) initialization routine failed.

Solution

This problem can occur with both Traditional NI-DAQ (Legacy) and NI-DAQmx. To solve, follow these steps:
  1. Examine the error code to determine which type of DAQ driver triggered the error;  If the path name in the error message contains the folder DAQ after the LabVIEW x.x directory, then it is a Traditional DAQ program. If it contains the folder DAQmx after the LabVIEW x.x directory, then it is a DAQmx program.
  2. Install or repair the Traditional NI-DAQ (Legacy) or NI-DAQmx driver, following the directions on the driver download page. 

Please see the NI-DAQmx and LabVIEW Compatibility Guide and NI-DAQ and LabVIEW Compatibility Guide for more information on what driver your device supports.

Additional Information

There are typically two reasons this error may occur: 
  1. The user moving a DAQ program to a new computer with new hardware. It is possible that their new hardware may not be compatible with the Traditional NI-DAQ (Legacy) driver, so your Traditional NI-DAQ (Legacy) code will not work with the new piece of hardware.
  2. You have a corrupted install of the driver you need. In this case, repair the driver in the control panel. 

WAS THIS ARTICLE HELPFUL?

Not Helpful