Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

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

LabVIEW 2010 Statechart Module Help

Edition Date: June 2013

Part Number: 372103F-01

»View Product Info
Download Help (Windows Only)

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.  

  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.

 

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