Using Global Variable to Share Data Between Executables

Updated Nov 17, 2017

Reported In

Software

  • LabVIEW Full
  • LabVIEW Base

Issue Details

I have built two 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 executables. Each executable uses its own memory space. So global variables can only share data with subVIs within a single executable. However, there are other methods for communicating between 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. Shared Variables
In order to figure out the best networking protocol for you, please consult our tutorial Using the Right Networking Protocol

WAS THIS ARTICLE HELPFUL?

Not Helpful