Deployed EXE not Communicating With OPC Server Shared Variables

Updated Jun 28, 2023

Reported In

Software

  • LabVIEW Datalogging and Supervisory Control Module
  • LabVIEW Datalogging and Supervisory Control Runtime Module

Issue Details

I am using shared variables to read and write data to an OPC server in order to communicate between a cRIO or computer and a PLC.  The cRIO and computer can communicate with the PLC when I am running it on my development computer.  However, when I deploy my application as an EXE (stand-alone application) or installer to my HMI computer, there is no communication between the shared variables and the OPC server, even though they are using the same OPC server.  How can I get my application working in my deployment environment?

Solution

The EXE that you have created is likely using a DSC (Datalogging and Supervisory Control Module) component such as the OPC I/O Server.  You can check to see if you are using such a component in What is the DSC Run-Time System and When Should I Use It?

If you are using a DSC component, you will need to purchase and install the NI LabVIEW DSC Module Runtime  on your deployment machine.

If you are not using DSC Module components and if you are using a different OPC server for deployment than for development, make sure that you have OPC server installed and activated in the deployment environment.  Please make sure that your NI OPC Server is licensed properly.