Stateflow    

Specifying Custom Code Options

You specify configuration options to build custom code into a target with the following procedure:

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

  1. Select the Target Options button.
  1. The Target Options dialog appears similar to the following:

    The Target Options dialog box identifies the target in its window title and contains a drop-down list of options for specifying the code to include in the target and where the code is located. Use the edit box following the list to add, change, and display custom code that you enter for the current option.

  1. Select any or all of the following options required to specify your code and specify them in the edit box:
  2. Click Apply to apply the specification to the target or OK to apply the specifications and close the dialog.
  1. If you make a change in one of your custom code options, to force the rebuild of the S-function to incorporate your changes you must either change one of the charts slightly (this forces a rebuild when you simulate again) or go to the Simulation Target Builder dialog box and select the Rebuild All option.

References

For additional information on specifying custom code for your target, see the following online articles:


  Integrating Custom Code with Stateflow Diagrams Specifying Path Names in Custom Code Options