Stateflow User's Guide Previous page   Next Page

Adding a Junction for Flow Control

In Adding a Sensor to the Model, you add a simulated temperature sensor to the Simulink model. The sensor has a value for the temperature provided by the input data temp, and a periodic event temp_event, that acts as a reporting time for the temperature. In this section, you add more selective control based on the new temperature sensor, which reports the value of the temperature to the Controller Stateflow diagram every second.

Add temperature control to the SFcontrol3 model in the following procedure topics:

  1. Deleting, Copying, and Renaming Stateflow Objects -- Alter the Stateflow diagram by deleting a transition, copying a state, and renaming two states.
  2. Adding and Connecting Junctions -- Connect a junction in the Stateflow diagram.
  3. Entering Transition Conditions -- Enter conditions for transitions and transition segments.

Previous page  Adding Sensor Data Deleting, Copying, and Renaming Stateflow Objects Next page

© 1994-2005 The MathWorks, Inc.