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

Configuring and Reading Shared Variable Properties Programmatically (DSC Module)

Note  You can configure and read SharedVariableIO properties only for shared variables with the Variable Type set to Network-Published on the Variable page of the Shared Variable Properties dialog box.

Complete the following steps to configure or read a shared variable programmatically.

  1. Create and deploy a shared variable.
  2. Place the Shared Variable Constant on the block diagram.

  3. Click the down arrow on the Shared Variable Constant and select or browse to a shared variable to configure.
  4. Right-click the Shared Variable Constant and select Create»Property from the shortcut menu.
  5. Select the property you want to configure. A Property Node appears with property you selected.
    Note  To write data to the shared variable properties, right-click the Property Node and select Change To Write from the shortcut menu. To read data from shared variable properties, right-click the Property Node and select Change To Read from the shortcut menu. Some properties are read-only properties. Refer to the characteristics of each property to determine if the property is read-only.
  6. Wire the Shared Variable Constant to the Property Node.

Resources


 

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