Failed to Connect to the Target When Using a CompactRIO in LabVIEW

Updated Aug 24, 2018

Reported In

Hardware

  • CompactRIO Controller

Software

  • LabVIEW
  • LabVIEW Real-Time Module

Driver

  • NI-RIO

Issue Details

  • My NI Real-Time Target shows up under Remote Devices in NI MAX, but LabVIEW can't connect to it.
  • My CompactRIO shows as Connected - Safe Mode (No software installed), and LabVIEW doesn't discover it when I add Targets and Devices to my project.
  • I'm developing an application using a CompactRIO which is detected correctly in NI MAX. The status shows as Connected - Running, and it doesn't show any problems. However, 
    • When I try to use it from LabVIEW, I can add it to my project but I can't connect or deploy to  it
    • When I try to use it from LabVIEW by clicking Connect in the target, I see a message that displays an error:

 

 

Conflict Resolution

RT CompactRIO Target: Unable to resolve from current dialog.

Failed to connect to the target.

Solution

  1. Make sure the device shows up in NI Measurement and Automation Explorer (NI MAX). If it does not show, or comes up as disconnected. Follow the guide to troubleshoot getting the device to show up in NI MAX: NI Networked Device Doesn't Show Up or is Missing in MAX.
  2. Check that you have the correct software installed in your computer: Preventing Software Compatibility Issues for CompactRIO Systems.
  3. It's likely that LabVIEW can't connect to your target, because there is a problem with the software installed. Follow the article How Do I Format My Real-Time Target and Reinstall the Software?​ to fix this problem.
    1. Make sure the version of LabVIEW you are using matches the version installed in your Real-Time controller: NI-RIO and LabVIEW Version Compatibility. For example: If you are using LabVIEW 2017 (with its 2017 Real-Time Module), you would install LabVIEW Real-Time 17.0 from NI MAX.


​Image: Using NI MAX, install the corresponding NI LabVIEW Real-Time version that you will use in your target. It must be the same version of the Real-Time module (and LabVIEW version) that you will use to program it. You can access this windows from the Software tab of the Remote Device in NI MAX.

WAS THIS ARTICLE HELPFUL?

Not Helpful