Shared Variable "Has No Value" Message in LabVIEW or "No Known Value" in Distributed System Manager

Updated Jan 23, 2025

Reported In

Software

  • LabVIEW Full
  • LabVIEW Real-Time Module
  • OPC Servers
  • Distributed System Manager

Issue Details

  • When trying to read a shared variable in LabVIEW, I receive the following warning

Warning -1950679034: The shared variable has no value.

Possible reason(s):

LabVIEW: (Hex 0x8BBB0006) The shared variable has no value.

This error or warning occurred while reading the following Shared Variable:

\\<Target_Name>\\<Library_Name>\\Shared_Variable_Name

\\<Target_IP>\\<Library_Name>\\Shared_Variable_Name

warning.png
  • Using the Distributed System Manager (DSM) software, the shared variable(s) show a No Known Value message.

warning2.png

Solution

Warning -1950679034 is a warning that the shared variable you are trying to read has no known value.

  1. LabVIEW DSC Module - Applications developed using the LabVIEW DSC Module and deployed as executables require the LabVIEW DSC Run Time to be installed and activated on the target PC. The warning can be generated if the run time module is not installed or activated correctly.
  2. Correct IP Addresses - If your shared variable is hosted on a Real-Time system, check that the IP address of the target in the LabVIEW project matches the IP address of the Real-Time target hardware. If the IP address is incorrect, LabVIEW may be looking for the variable in its previous location.
  3. Set Initial Value - If you have just created or deployed the variable, it may not have been written to yet. If you have created an I/O Server, there could be a communication failure preventing the shared variable from receiving data.

You can prevent this warning by enabling the Initial Value option on the shared variable properties page. Once you set an initial value, you will have to redeploy the library.

  1. In the LabVIEW project, right-click the shared variable and select Properties.
  2. In the Initial Value tab, check the Enable Initial Value checkbook. Set the desired Initial Value.
  3. In the LabVIEW project, right-click the library and select Deploy All.
Instructions.png

Alternatively, you can initialize the shared variable by writing a value to the variable either in your code or using the Distributed System Manager.
Instructions.png If working with an OPC Server where LabVIEW is reading variables from the server and receiving this error, make sure you are running the variables in some sort of loop.  It is necessary to give the network communication time to respond, otherwise LabVIEW will give this Warning and report 0 as the value.

Additional Information

Warning codes do not halt execution but they may be an indication of bad data.

Was this information helpful?

Yes

No