NI Software Does Not Open Because of Missing msvcp140.dll

Updated May 14, 2019

Reported In

Hardware

  • cDAQ-9133

Software

  • LabVIEW
  • TestStand
  • Measurement & Automation Explorer (MAX)
  • Embedded Control and Monitoring Software Suite

Operating System

  • Windows Embedded Standard (WES)

Issue Details

When I try to open any NI software I get an error indicating that the msvcp140.dll is missing or has an error, how can I get fix this and get the software to open?

Example scenario:
  • I can call LabVIEW code from TestStand when the LabVIEW Development Environment is installed.  However, if only the LabVIEW Run-Time Engine is installed, calling LabVIEW code with the RTE gives the missing DLL error.
  • I uninstalled several software from my cDAQ controller and after trying to run LabVIEW it gave missing MSVCP140.dll error.
  • I receive an error message detailing "the program can't start because msvcp140.dll is missing from your computer.” 
Addtionally when I try to install some National Instruments software I receive the following error:

Solution

  1. Issues related to corruption of msvcp.dll can usually be corrected by installing the Visual C++ Redistributable for Visual Studio 2015, which can be found here Visual C++ Redistributable.
  2. If installing the redistributable itself doesn't work you can try installing the latest update to it found here Visual C++ Redistributable update.
    1. NOTE: When downloading the redistributable or redistributable updates, select the executable corresponding to the same bitness as your LabVIEW program, not your operating system.
      - vc_redist.x64.exe corresponds to 64-bit
      - vc_redist.x86.exe corresponds to 32-bit
  3. A complete uninstall and reinstall of National Instruments software can fix potential software corruption.
  4. Lastly a reimage procedure could be needed if no other option work. Although this is the most time consuming this could avoid error about other DLLs missing.