Complete the following steps to create shared variables programmatically.
- Create a new LabVIEW VI.
- Place the Create Shared Variable VI on the block diagram.
- 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.
- Choose for the shared variable and wire it to the shared variable name input of the Create Shared Variable VI.
- Specify a data type for the shared variable and wire it to the data type input of the Create Shared Variable VI.
- Select File»Save to save the VI.
- Run the VI. LabVIEW creates a shared variable with the shared variable name in the process name process.