Example Code

Programmatically Delete All Currently Deployed Shared Variables From The Shared Variable Engine (SVE)

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Description

Overview

This example demonstrates how to delete all currently deployed Shared Variables from the Shared Variable Engine (SVE). 

 

Description

Using the Datalogging and Supervisory Control Module (DSC), you can easily manipulate Shared Variables and the Shared Variable Engine (SVE). 
This example will search all Shared Variables deployed on the system and delete the processes from the Shared Variable Engine. Use this to quickly clean up old variables from your Shared Variable Engine. 

It can be necessary to delete the already deployed Shared Variables, because Shared Variables stay deployed after you terminate your application. Learn more  at Making Shared Variables Available on a Network

 

"LabVIEW does not automatically undeploy the project library when the application terminates"

 

Requirements

 Software

  • LabVIEW Base Development System 2012 (or compatible)
  • LabVIEW Datalogging and Supervisory Control (DSC) Module 2012 (or compatible)
  • If running in a Real-Time context, you will need the LabVIEW Real-Time Module 2012 (or compatible)

 Hardware

  • No hardware is necessary to use this example VI

 

Steps to Implement or Execute Code

  1. Download and open the attached VI
  2. Run the VI

 

Additional Information or References

Delete all Shared Variables - Front Panel.png
Delete all Shared Variables - Block Diagram.png

 

**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**

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

Comments
Smootastic
NI Employee (retired)
on

Read the example too fast; didn't see the note attached.