Warning -1950679034 When Reading a Shared Variable

Updated Mar 29, 2021

Reported In


  • LabVIEW Full
  • LabVIEW Real-Time Module
  • OPC Servers

Issue Details

When trying to read a shared variable, I receive Warning -1950679034: The shared variable has no value.


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 on the target PC. The warning can be generated if the run time module is not installed.
  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 in the shared variable properties page. Once you set an initial value, you will have to redeploy the library.

Alternatively, you can initialize the shared variable by writing a value to the variable either in your code or using the Distributed System Manager.

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.