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

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

LabVIEW Statechart Module 1.0 Help
August 2007

NI Part Number:
372103A-01

»View Product Info

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

  1. Place an Terminal pseudostate on the statechart diagram. Having this pseudostate in a region is optional.  
  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) Configure 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.

Resources


 

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