Stateflow User's Guide Previous page   Next Page

Adding a Target in the Model Explorer

Targets are parented exclusively by a Simulink model. A permanent simulation target (sfun) is automatically created for a model when you create the model. You can add an RTW target or multiple custom targets to a model in the Model Explorer as follows:

  1. In the Model Explorer, in the left Model Hierarchy pane, select the Simulink model to receive the target.
  2. From the Explorer's Add menu, select Stateflow Target.
  1. The Contents pane of the Model Explorer displays the existing default simulation target sfun and the new custom target with the default name untitled.

  1. In the Stateflow Target Builder dialog pane on the right, enter the name of the target and other properties. Click Apply when finished.
  1. The simulation target for the model has the name sfun. The RTW target for a model has the name rtw. Custom targets have names other than sfun and rtw.

    The properties you enter for the target depend on the kind of target you create. See How Do You Build a Target? for a guide.


Previous page  Adding Data and Events in the Model Explorer Renaming Objects in the Model Explorer Next page

© 1994-2005 The MathWorks, Inc.