Error -311105 Deploying the EPICS Server I/O Server to NI Linux Real-Time Target

Updated Dec 7, 2023

Issue Details

I want to deploy multiple EPICS Server libraries to a NI Linux Real-Time target such as CompactRIO.
For example, I have Library1.lvlib and Library2.lvlib which contain shared variables for EPICS server.
I can deploy the first library Library1.lvlib but when I deploy the second library the following error occurred.
 
error epics.png

Error -311105
Possible Reason(s):
LabVIEW: (Hex 0xFFFB40BF) Failed to connect to the MAX databse (MXS) when deploying the EPICS Server I/O server.


How can I deploy 2 libraries separate library without combining both libraries into a single library?
This error does not occur when I deployed those libraries to a Windows target.

Solution

You can resolve this error by combining the individual variable references from all the libraries into the same arrays, create process variables (PV) for each variable and deploying it at once using Deploy Epics Server VI.

You can refer to the below diagram as one of the implementation examples.
 
Create and deploy PV.png
Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. 
To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.