Access Denied Error When Deploying to cRIO

Updated Apr 18, 2024

Reported In

Hardware

  • CompactRIO Controller

Software

  • LabVIEW Real-Time Module

Driver

  • NI-RIO

Operating System

  • Windows

Issue Details

When I try to deploy a VI to my Real-Time target, I get the following error:

"Access Denied: The target is locked for a deployment operation by another process such as a VI or NI Distributed System Manager. Ensure that all other deployments are complete before attempting to deploy. If you continue to encounter this conflict, refer to the "Deploying and Running VIs on an RT Target" topic in the LabVIEW Help for information about resolving target deployment conflicts."

I have looked over the "Deploying and Running VIs on an RT Target" topic in the LabVIEW Help and none of those suggestions worked. What do I do?

Solution

If you are using network-published shared variables, take care to ensure that you are first deploying the variables and all VI's to your target before you try to run any code on your host.

If you are not using network published shared variables, or you are deploying the variables first, other steps you can take to get rid of this error message are as follows:
  • Reset your cRIO device by pushing the Reset button
  • Reboot the cRIO
  • Reformat the cRIO
  • Upgrade your version of NI-RIO

Additional Information

This issue can occur due to how you are deploying various items in your LabVIEW project to your real-time target. If you have a host VI that reads shared variables, some parts of your code on your real-time target may deploy and then cause the "Access Denied" error to occur when attempting to run VI's on your target afterwards.

Also, running LabVIEW as administrator and move your VIs to a new project could mitigate possible permissions issues.