Error 21 While Creating Installer with NI-DAQmx Runtime

Updated Aug 8, 2018

Reported In

Software

  • LabVIEW 2016 Full

Driver

  • NI-DAQmx 17.0

Operating System

  • Windows

Issue Details

I received an error 21 message when trying to create an installer for my LabVIEW application. This happens only if I include DAQmx runtime in the additional installers section while creating the installer. How do I make the installer with DAQmx included in it ?

Solution

Occurrence of Error 21 when creating an installer points to a generic error and can be because of multiple reasons. It mostly arises out of missing source files or wrong file paths in DLLs as can be seen in the screenshot below : 



Follow the steps below to resolve this error :
  • Download and install DAQmx 17.6 drivers.
  • Repair DAQmx drivers currently installed on your system. You can find the instructions to repair software here. If you have NI Package manager installed, follow steps mentioned here to repair NI software.
  • Uninstall and Reinstall DAQmx drivers.
Note : Check DAQmx compatibility with LabVIEW version and Operating system if versions of LabVIEW or OS being used are different.
 

Additional Information

A typical error 21 message points to a file path for a component missing from the build. The problematic component can be found by examining the file path in the error message. Subsequently, repairing the corresponding software such as DAQmx or VISA, and ensuring file paths point to correct locations should lead to a resolution.

WAS THIS ARTICLE HELPFUL?

Not Helpful