Introduction to Stateflow with Applications

Chapter 7: History Junctions and Transitions

This chapter describes the use of history junctions to represent historical decision points in the Stateflow diagram. A description with an illustrative example is provided, and the chapter concludes with a discussion on transitions. For easy reference, the examples presented are the same or similar to those included in the Stateflow documentation.

7.1 History Junction Defined

A history junction records a previously active state in which it is resident. It is used to represent historical decision points in the Stateflow diagram. The decision points are based on historical data relative to state activity. Placing a history junction in a superstate [*] indicates that historical state activity information is used to determine the next state to become active. The history junction applies only to the level of the hierarchy in which it appears.

[*]We recall from Chapter 1 that objects in Stateflow exist in a hierarchy and states can contain other states referred to as substates, and can be contained by other states referred to as superstates.

7.2 The Stateflow History Junction Tool

Figure 7.1 is our familiar Stateflow Editor window, and when we place the mouse cursor over the

History Junction tool , its name appears at the bottom of the window.


Figure 7.1: The Stateflow Editor window with the mouse pointer near the History Junction tool

To create a history junction, we do the following:

  1. In the diagram toolbar, we click the History Junction tool .

  2. We move the cursor into the diagram...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Diodes
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.