Using Global Variables to Share Data Between Projects and Executables

Updated Nov 6, 2023

Reported In

Software

  • LabVIEW
  • LabVIEW Application Builder Module

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

Global variables cannot share data between LabVIEW projects or executables. Each project or executable runs in a different instance and in consequence uses its own memory space. 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 below.
  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