Stateflow User's Guide Previous page   Next Page

Controlling with Junctions


This chapter introduces you to new Stateflow objects that include junctions, functions, temporal events, and superstates. These objects extend the use of states and transitions that form the basis of Stateflow capability. Use the following sections to add new control features to the models you build in Controlling with States and Transitions:
Adding a Sensor to the Model
Add the equivalent of a sensor to the Simulink model as data and a regularly occurring event.
Adding a Junction for Flow Control
Modify a Stateflow diagram to use junctions to add control that chooses between state destinations. While doing this, also learn how to edit diagrams.
Adding a Graphical Function for Convenience
Use a graphical function to make a Stateflow diagram more readable.
Simulating with a Sensor Event, Junction, and Function
Simulate the junction and graphical function you added to the example model.
Simulating Junction Behavior
Demonstrate junction behaviors with small changes to the model.
Introducing Stateflow Semantics
Understand how Stateflow uses semantics in determining the behaviour of diagrams and review the semantics rules that you have learned in previous exercises.
Using Junctions in Flow Diagrams
Use junctions without states to create visible programming flow diagrams.


Previous page  Simulating Event Triggers and Modified Output Data Adding a Sensor to the Model Next page

© 1994-2005 The MathWorks, Inc.