Stateflow Previous page   Next Page

Define Input Data

Since the transition segment between the junction and the state Off has a condition based on the value of the Stateflow data temp, you must define temp in the diagram.

To define the input data temp for your Stateflow diagram, do the following:

  1. Select Data from the Add menu of the diagram editor.
  2. In the resulting submenu, select Input from Simulink.

  1. The property dialog for the new data appears.

  1. Enter temp in the Name field of the properties dialog.

  1. Leave all other fields with their default values.

  1. Select OK to apply the changes and close the window.


Previous page  Define Input Events Define the Stateflow Interface Next page

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS