Complete the following steps to configure or read a shared variable programmatically.
- Create and deploy a shared variable.
- Place the Shared Variable Constant on the block diagram.
- Click the down arrow on the Shared Variable Constant and select or browse to a shared variable to configure.
- Right-click the Shared Variable Constant and select Create»Property from the shortcut menu.
- 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. |
- Wire the Shared Variable Constant to the Property Node.