How to Deploy Network-Shared Variables Programmatically

Updated Aug 25, 2025

Network-Published Shared Variables can be published programmatically from LabVIEW without the need of manual intervention in the Project Explorer.

The following steps show how to achieve this:

  1. Press Ctrl + Space in your keyboard to open the Quick Drop window and search for Invoke Node.
  2. Press Enter to select and place it on the block diagram.
  3. Clicking on Method of that Invoke Node will open a dropdown of all available methods. Within that dropdown, navigate to Library >> Deploy Library.
    Invoke Node Dropdown 
  4. Now wire a Control to the Lib Path to select where the Library that contains the variables is located. Adding an Indicator from the Error Out is recommended to check for possible errors.
    Snippet of code 
    Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram. 

Running this VI will deploy the Library located in the set path, including all shared variables within.