Setting up state chart variables

The Data Browser — in both the State Chart Properties dialog and the Submachine Properties dialog — lists the current variables and variable attributes for the state chart and submachine. You can add and delete variables, and update their attributes here.

To add and delete variables

There are several ways to add and delete variables.

      In Data Browser, use the Add Variable button and deletevariablebutton buttons. The changes you make are reflected in the connectors on the state chart block.

      Use the Edit > Add Connector and Edit > Remove Connector commands to add and remove variable connectors on the state chart block.

To edit variables

      In the Data Browser window, double-click the attribute to be changed.

      For Type, Scope, and Pin, a drop-down menu appears in which to choose an attribute value.

      For Name, Default Value, and Comment, a box surrounds the variable attribute indicating Edit mode. Enter the new attribute value and press ENTER.