Description
Description-Separate-1Overview
The example demonstrates how to generate shared variables programmatically and store them in a library file.
Description
The example will programmatically generate and deploy a library with the NI Shared Variable Engine. It will create multiple variables with different data types (String, Double, Boolean, Integer). After the creation of the library can also be deployed as a process right away.
Since a process in the Shared Variable Engine stays deployed until the process is deleted the example checks at the beginning if a process with the same name already exists and deletes the existing process so the new process can be deployed afterwards.
Requirements
Software
- LabVIEW 2012 Base Development System (or compatible)
- LabVIEW 2012 Datalogging and Supervisory Control (DSC) Module (or compatible)
Hardware
- No hardware is necessary to use this example VI
Steps to Implement or Execute Code
- Open the attached file
- Select a path to store the library file to be created
- Select if the library should be deployed after the creation
- Run the VI
- (Optional) Use the Distributed System Manager (DSM) to check if the library has been deployed
Additional Information or References
Using the LabVIEW Shared Variable
**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.**
Description-Separate-2