Stateflow User's Guide Previous page   Next Page

Configuring the Stateflow Blocks in Library Models for Real-Time Workshop

For library models you configure the Stateflow blocks in your model for Real-Time Workshop by configuring a Stateflow RTW target. When the model is built, the configuration for this target is carried into the Simulink RTW configuration and resolved under actual Simulink conditions.

To configure an existing Stateflow RTW target for a library model, do the following:

  1. From the Stateflow diagram editor Tools menu, select Open RTW Target.
  1. The Stateflow RTW Target Builder dialog appears, as shown.

  1. Select one of the following build options:
  2. Select Coder Options to specify Stateflow code generation options for the RTW target.
  1. The RTW Coder Options dialog box appears, as shown.

  1. Select any or all of the following coder options:

  1. Select (check) the Use settings for all libraries option if you want the settings that you specify for this target to apply to all the Stateflow charts contributed by library models as well.
  2. To integrate custom code with Stateflow generated code for the RTW target, select Target Options.
  1. See Integrating Custom Code with Stateflow Targets for details on using the RTW target to integrate custom code with generated code for the Stateflow diagrams in the model.

  1. To finish configuring the simulation target, do one of the following:
  1. This creates a new RTW target if one did not previously exist.

Custom code options are selected through the Target Options button. To specify custom code options for your rtw target, see Integrating Custom Code with Stateflow Targets.


Previous page  Configuring Stateflow Blocks in Nonlibrary Models for Real-Time Workshop Configuring a Custom Target in Stateflow Next page

© 1994-2005 The MathWorks, Inc.