Stateflow    

Specifying Code Generation Options

Specifying code generation options differs slightly depending on whether you are specifying options for a simulation target or an RTW target.

Simulation Target

To specify code generation options for a simulation target:

  1. Open the target builder dialog for the target.

    You can do this by selecting Open Simulation Target from the graphics editor's Tools menu or by clicking on the target in the Stateflow Explorer.

    The Simulation Target Builder dialog box for the simulation target appears

    .

  1. Select Coder Options....

    The Simulation Coder Options dialog box appears (see "Simulation Coder Options Dialog Box" on page 9-14).

  1. Check the desired options.
  2. Select Apply to apply the selected options or OK to apply the options and close the dialog.

RTW Target

To specify code generation options for an RTW target:

  1. Open the target builder dialog for the RTW target.

    You can do this by selecting Open RTW Target from the graphics editor's Tools menu or by clicking on the target in the Stateflow Explorer.

    The RTW Target Builder dialog box for the simulation target appears

    .

  1. Select Coder Options....

    The RTW Coder Options dialog box appears (see "RTW Coder Options Dialog Box" on page 9-15).

  1. Check the desired options.
  2. Select Apply to apply the selected options or OK to apply the options and close the dialog.

 Configuring a Target Simulation Coder Options Dialog Box