Printing Stateflow® Charts

Printing a Chart

The Print option prints a copy of the current chart loaded in the Stateflow® Editor. You can also select to print subcharts of the current chart or the chart, subcharts, and Simulink® subsystems that contain the current chart.

Print a copy of a chart by following these steps:

  1. Open the chart or subchart you want to print.

  2. In the Stateflow Editor, select File > Print.

    The Print Model dialog box appears as follows:

In the Print Model dialog box, select the printer for this report and one of these options for the type of report you receive:

Enhance a report with these options:

Generating a Model Report

The Print Details report is an extension of the Print Details report in the Simulink model window. It provides a report of Stateflow and Simulink objects relative to the chart currently in view in the Stateflow Editor from which you select the report.

To generate a model report on chart objects, follow these steps:

  1. Open the chart or subchart for which you want a report.

  2. In the Stateflow Editor, select File > Print Details.

    The Print Details dialog box appears as follows:

  3. Enter the destination directory of the report file and select options to specify what objects appear in the report.

    For details on setting the fields in the File locations/naming options section of this dialog, see Generating a Model Report in the Simulink software documentation. For details on the report you receive from the option you choose in the System reporting options section, see System Report Options and Report Format.

  4. Click Print.

The Print Details dialog box appears and tracks the activity of the report generator during report generation. See Generating a Model Report in the Simulink software documentation for more details on this window.

If no serious errors occur, the HTML report appears in your default browser.

System Report Options

Reports for the current Stateflow chart vary with your choice of one of the System reporting options fields:

Report Format

The general top-down format of the Print Details report is as follows:

Printing the Current Chart

The Print Current View option prints an individual chart or subchart as follows:

  1. Open the chart or subchart that you want to print.

  2. In the Stateflow Editor, select File > Print Current View.

  3. In the submenu, choose one of these options:

You can also print the current view from the MATLAB command line using the sfprint function.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS