Example Code

Programmatically Delete Shared Variables from a Library Using an Executable

Code and Documents

Attachment

Introduction

The LabVIEW Datlogging and Supervisory Control Module makes it possible to programmatically deploy libraries as well as modify shared variables and processes. This example deploys a library, lists the shared variables, and deletes user-selected variables from the Shared Variable Engine as well as the project library on disk.

Steps to Complete

Run prog_delete_var.vi, attached, and follow the steps on the front panel.  The default is to use the attached library, to_modify.lvlib, saved to the C:\ directory but it is possible to browse to any library.

prog_delete_var.PNG

Additional Notes

This code can run as a VI or a stand-alone application.  If building it into an executable, be sure to check "Enable Enhanced DSC Run-Time support" under the Advanced application properties.  Running the executable requires the LabVIEW DSC development software or the LabVIEW DSC Run-Time System.

Jennifer R.
National Instruments
Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors