Creating Shared Variables Programmatically

Complete the following steps to create shared variables programmatically.
  1. Create a new LabVIEW VI.
  2. Add the Create Shared Variable VI on the block diagram.
  3. Specify a name for the process and wire it to the process name input of the Create Shared Variable VI. Use the process name input to define a logical grouping of shared variables.
  4. Specify a name for the shared variable and wire it to the shared variable name input of the Create Shared Variable VI.
  5. Specify a data type for the shared variable and wire it to the data type input of the Create Shared Variable VI.
  6. Select File»Save to save the VI.
  7. Run the VI. LabVIEW creates a shared variable with the shared variable name in the process name process.