LabVIEW Statechart Module

Table of Contents

Specifying the State that a Region Executes First (Statechart Module)

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

Complete the following steps to specify the state that a region executes first.

  1. Place an Initial pseudostate on the statechart diagram.

    Add 

  2. Create a transition from this pseudostate to the state that you want to execute first.
  3. (Optional) Define any actions for this transition. You cannot define a trigger or guard for this transition.

For example, consider the following figure:

Each region must have an Initial pseudostate. In the previous figure, the statechart executes State 1 first. If the statechart takes the transition into State 2, the statechart executes State 3 first.

Note  The Terminal pseudostate specifies the state that can terminate the enclosing region.

Log in to get a better experience