Shared Variables Not Writing to the Distributed System Manager

Updated Apr 20, 2023

Reported In

Hardware

  • CompactRIO Chassis

Issue Details

My shared variable library is not writing correctly to the Distributed System Manager. For example, my variable is only writing zeros rather than the expected values. 

Solution

If you are experiencing an issue where the shared variables do not show the correct values in the DSM please try the following troubleshooting steps:

  • Verify that the data type for the shared variable in the code is the same as the one defined in the DSM.
 
  • Undeploy and redeploy the shared variable library or the variables showing the issue. Once you deploy a library to the Shared Variable Engine, those settings persist until you manually undeploy them. To undeploy a library: 
  1. Launch the NI Distributed System Manager.
  2. Add the real-time system to My Systems if needed (Actions >> Add System to My Systems). 
  3. Right-click on the library you wish to undeploy and select Remove Process. 
 
  • Restart the DSM and NI Variable Engine by following these steps:
  1. Close the DSM and your application that deploys the variables.
  2. Go to Windows Services and stop the NI Variable Engine (NI Tagger Service).
  3. Restart the NI Variable Engine.
  4. Redeploy the shared variables by running the application or appropriate method.
  5. Open the DSM and hit the refresh button on the toolbar.