Declaring Local Variables and Probes

Declare local variables, including probes, in different scopes (operator, state, activate if/when, forward).

Declaring Local Variables

You can add variables that are only accessible in the scope in which they are declared:
  1. Open the Local Variables editor as follows:
    • In an operator, click at the top-right corner of the operator block diagram.

    • In an automaton, select a state and click .

    • In an activate if, activate when or forward, select a scope and click .

  2. Declare the local variable with respect to the syntax described in Variable Declaration.
    Note: The text editing features and auto-completion (Ctrl+Space) are available while declaring variables.

Declaring Probes

You can declare probes by defining local variables and adding the keyword probe.
  1. Create a local variable in an operator, state, or activate if/when scope.
  2. Add the keyword probe before its identifier.