Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Creating Shared Variables Programmatically (DSC Module)

Complete the following steps to create shared variables programmatically.

  1. Create a new LabVIEW VI.
  2. Place 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. Choose 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.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit