Solution
When using Shared Variables on a real-time target, it is necessary to first install the Shared Variable software components. If you do not, you will be prompted with the above error when you try to run your real-time program.
There are two components to the Shared Variable Engine for real-time targets: the Network Variable Engine and Variable Client Support. The Network Variable Engine must be installed on the real-time target if you wish to host shared variables on your real-time target. The Variable Client Support component must be installed if you wish to access Shared Variables hosted on a different machine (real-time or Windows).
To install these components,
- Open Measurement & Automation Explorer (NI MAX).
- Find your real-time target under Remote Systems.
- Expand your real-time target and right-click Software.
- Select Add/Remove Software.
- Install the shared variable components (Network Variable Engine and Variable Client Support).
If you do have the Shared Variable Engine and Shared Variable Client installed onto your Real-Time target, you may be running into a memory issue. You can resolve this by
formatting and performing the minimum installation onto your target. For instance, with a CompactRIO you would only install the NI CompactRIO software stack as shown below (making sure to not add any software besides the Network Variable Engine and the Variable Client Support as shown above):
If the format and re-installation of minimum software does not resolve the issue, there may be something with your LabVIEW program that is causing memory problems. You can
monitor memory usage or start from scratch with a new project, adding small elements of your code at a time.