Stateflow    

Specifying Code Generation Options

Specify code generation options for a target in the Target Builder dialog box for the target (see Accessing the Target Builder Dialog for a Target for instructions on how to access this dialog). These options differ between targets as described in the following topics:

Simulation Target (sfun) Coder Options

To specify code generation options for a simulation target, do the following:

  1. Open the Stateflow Simulation Target Builder dialog.
  1. See Accessing the Target Builder Dialog for a Target for instructions on how to access this dialog.

  1. Select Coder Options.
  1. The Simulation Coder Options dialog box appears.

  1. Select any or all of the following options:

  1. Click Apply to apply the selected options or OK to apply the options and close the dialog.

RTW Target (rtw) Coder Options

To specify code generation options for an RTW target:

  1. From the Stateflow RTW Target Builder dialog (see Accessing the Target Builder Dialog for a Target) select Coder Options.
  1. The RTW Coder Options dialog box appears.

  1. Select any or all of the following options:

  1. Click Apply to apply the selected options or OK to apply the options and close the dialog.

Custom Target Coder Options

Custom targets have any other name than sfun or rtw. To specify code generation options for a custom target, do the following:

  1. Open the Stateflow Custom Target Builder dialog.
  1. See Accessing the Target Builder Dialog for a Target for instructions on how to access this dialog.

  1. Select the Coder Options button.
  1. The Coder Options dialog box for the custom target appears as follows:

  1. Select any or all of the following options:
  1. For any of the following options, see RTW Target (rtw) Coder Options for a description.

    The following options are unique to custom targets:


  Specifying Build Options for a Target Integrating Custom Code with Stateflow Diagrams