LabVIEW Statechart Module

Specifying a State that Can Terminate a Region (Statechart Module)

  • Updated2023-02-21
  • 2 minute(s) read

Complete the following steps to specify a state that can terminate a region.

  1. Place a Terminal pseudostate on the statechart diagram. Having this pseudostate in a region is optional.

    Add 

  2. Create a transition from a state to this pseudostate. More than one state can terminate a region, so you can create transitions from multiple states to a single Terminal pseudostate.
  3. (Optional) Define any triggers, guards, or actions for this transition.
Note  When the statechart enters a Terminal pseudostate that is at the top level of the statechart diagram, the entire statechart terminates.

For example, consider the following figure:

Each Terminal pseudostate corresponds to a region. In the previous figure, notice that you can terminate Region 1 only when the statechart is in State 4. You can terminate the entire statechart only when the statechart is in State 1.

Note  The Initial pseudostate specifies the state that a region executes first.