LabVIEW DSC Application Missing OPC UA DLLs

Updated Dec 20, 2023

Reported In

Software

  • LabVIEW Datalogging and Supervisory Control Module

Issue Details

I have an application built which uses the LabVIEW Datalogging and Supervisory Control (DSC) Module's OPC UA VIs. When I deploy this application to another computer, it throws a LabVIEW: Resource not found error and is unable to find one or more of the OPC UA support DLLs.


For example, ni_opcua_client.dll, ni_opcua_server.dll, or ni_opcua_utilities.dll. How can I get my application to run properly on my deployment system?

Solution

If the deployment machine is using LabVIEW DSC Runtime 2017 or later, these DLLs were combined into one ni_opcua.dll and as such the separate DLLs ni_opcua_client.dll, ni_opcua_server.dll, or ni_opcua_utilities.dll won't be available. 
Update your development system to match the Runtime version that you install, or downgrade your deployment system to match the development version.

If you are using LabVIEW DSC 2016 or previous, try the following steps to resolve these load errors: 
  • Include the support files for your application 
  • Confirm the LabVIEW DSC Debug or Debug/Deploy license is installed and licensed on the deployment system as this is required when using OPC UA VIs or calling OPC UA DLLs. If it is not, install it from physical media. 

Additional Information

When building an application for LabVIEW DSC, the DLLs mentioned above are pulled into the Data directory next to the built executable. If that directory is not copied over properly, this problem will occur.

The LabVIEW DSC Run-Time System (DSC RTS) is required to run LabVIEW DSC applications, and must be installed from disc. If the DSC RTS is not present on a deployment computer, the DLLs will not load properly resulting in the above behavior.