To download NI software, including the products shown below, visit ni.com/downloads.
Overview
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
Hardware
Steps to Implement or Execute Code
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-2Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.