Using Global Variable to Share Data Between Projects and Executables

Updated Jul 20, 2020

Reported In

Software

  • LabVIEW Full
  • LabVIEW Base
  • LabVIEW

Issue Details

  • I have built two LabVIEW projects, can I share data between them using a global variable?
  • I have built two LabVIEW executables, can I share data between them using a global variable that is not embedded in either executable?

Solution

No, global variables cannot share data between LabVIEW projects or executables. Each project or executable uses its own memory space. So global variables can only share data with subVIs within a single project or executable. However, there are other methods for communicating between projects or executables which are detailed in "Additional Information" below.

Additional Information

There are a few other methods of communicating between executables using LabVIEW:
  1. TCP/IP or UDP
  2. Network Streams
  3. Communicate Between Multiple LabVIEW Executables Using Shared Variables
In order to figure out the best networking protocol for you, please consult our tutorial Using the Right Networking Protocol