Failed to Load Shared Library on a Real-Time Target Device

Updated Jan 5, 2018

Reported In


  • LabVIEW Real-Time Module
  • LabVIEW 8.6.1 Base
  • LabVIEW 8.6.1 Full
  • LabVIEW 8.6.1 Professional

Issue Details

When I attempt to run a VI on my Real-Time (RT) device, a LabVIEW dialog displays:
Deployment completed with errors
In the details, I can see a message similar to this:
Failed to load shared library c:\ni-rt\system\serial.dll on RT target device


The following steps can be taken to resolve the issue:
  1. Make sure that your RT target has all the necessary drivers installed using the Measurement & Automation Explorer (MAX). For example if your application uses a serial driver and NI SoftMotion, make sure NI Serial and NI SoftMotion are installed on the controller. If the required software is missing from the controller, perform a custom software installation to add the missing software.
  1. Ensure that the DLL is compatible with the RT Operating System you are using.
  1. If you believe you have all the correct software installed and are still getting this error, you can also reformat the controller and reinstall all of the software on the device.

Additional Information

In most cases this problem is caused from either a missing driver or software module on your controller that is required to run your RT application. Also this could be caused by calling a external DLL that has not been deployed to the system, in this case it will need to be distributed to the system. Reformatting the device takes a few minutes and ensures you have a clean start with all the necessary drivers and files.


Not Helpful