Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
2 ratings:
 2 out of 5     Rate this Document

CVS Error "Failed to load shared library *.dll on RT Target device"

Hardware: Image Acquisition (IMAQ)>>Compact Vision System

Problem:
When I try to download a program to my CVS, I get the following error, where the asterisk can be any number of DLL files.

Failed to load shared library *.dll on RT Target device

How can I fix this?

Solution:
Most likely the ni-rt.ini file on your CVS has been corrupted. There are a few options to remedy the situation.
  • Delete ni-rt.ini file.

    1. Connect to the CVS through its FTP server. See KnowledgeBase 3409ILOK: How Do I FTP to the Compact Vision System (CVS 145x)? for more information on this.
    2. Delete ni-rt.ini.
    3. Power cycle the CVS.
    4. The CVS should now appear as an unconfigured controller in MAX with IP address 0.0.0.0. Assign its IP address through MAX. It will prompt you to reboot.
    5. Install software as you have done before. After the software install, you should no longer receive this error.


  • Modify ni-rt.ini.

    1. Connect to the CVS through its FTP server. See KnowledgeBase 3409ILOK: How Do I FTP to the Compact Vision System (CVS 145x)? for more information on this.
    2. Download ni-rt.ini from the CVS.
    3. Open the .ini file notepad.
    4. Find the line beginning with "StartupDLLs=", and delete the offending DLLs from this line.
    5. Save the file.
    6. Upload the file back to the RT controller and the reboot the controller. This method should permanently fix the problem while making the fewest changes to the rest of the configuration.


  • Reboot controller.

    1. Reboot the controller.
    2. Switch execution target to the CVS for the first time after the reboot.
    3. Press OK on the error box that appears. The issue should not reappear until the next reboot, and everything should be working fine. This may not be a desirable method if the CVS is rebooted frequently.


Related Links:
KnowledgeBase 2Z6DLUEW: What Causes Failed to Load DLL Errors on Startup of a Real-Time Controller After Downgrading?
KnowledgeBase 3409ILOK: How Do I FTP to the Compact Vision System (CVS 145x)?

Attachments:





Report Date: 01/13/2005
Last Updated: 05/26/2009
Document ID: 3HC8N4L6

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit