Programmatically Create and Deploy Libraries and Shared Variables

Updated Jun 29, 2018

Reported In


  • LabVIEW

Issue Details

I want to create programmatically a library with shared variables and visualize it in my main LabVIEW project and I do not have DSC module. Is there a way to perform this without DSC module?


It is possible to create new libraries and shared variables into a LabVIEW project without using DSC module. You can use the four VIs shipped with LabVIEW to create libraries and shared variables. You won´t be able to find this VIs in functions palette in LabVIEW, insted, you will have to find them in C:\Program Files\National Instruments\LabVIEW 20xx\vi.lib\Utility\Variable. Where 20xx is your installed LabVIEW version.

You can use these VIs in combination with property and invoke nodes as shown in Figure 1 to create libraries and variables directly into your LabVIEW project.

Figure 1. Create a Library with a Shared Variable Programatically.

NOTE: This example is attached to this KB.


Not Helpful