| Stateflow® | ![]() |
| On this page… |
|---|
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:
In the Print Model dialog box, select the printer for this report and one of these options for the type of report you receive:
Current system – Prints the current chart or subchart in view in the Stateflow Editor.
Current system and above – Prints the current chart or subchart in view in the Stateflow Editor and all the subcharts and Simulink subsystems that contain it.
Current system and below – Prints the current chart or subchart in view in the Stateflow Editor and all the subcharts that it contains.
All systems – Prints the current chart or subchart in view in the Stateflow Editor, all the subcharts that it contains, and all the subcharts and Simulink subsystems that contain it.
Enhance a report with these options:
Enable tiled printing for all systems — Enables tiled printing for all systems in your model and overrides any individual tiled-print settings.
For more information, see Tiled Printing in the Simulink documentation.
Include Print Log — Includes a list of all printed charts as a preface to the print report.
Look under mask dialog — Applies only to the masked subsystems that might appear in Simulink subsystems that are printed with the report options Current system and below and All systems.
Expand unique library links — Applies only to the library blocks that might appear in Simulink subsystems that are printed with the report options Current system and below and All systems.
Frame — Prints a title block frame that you specify in the adjacent field on each chart in the report.
Note This option is also available in the Simulink model window. See Printing a Block Diagram in the Simulink software documentation for more information on the preceding options and on the behavior of this command as used in the Simulink model window. The information in this topic describes the behavior of this option only when you use it in the Stateflow Editor. |
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:
In the Stateflow Editor, select File > Print Details.
The Print Details dialog box appears as follows:

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.
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.
Note You can also use MATLAB® Report Generator™ software to generate a report that documents an entire model, including both Simulink and Stateflow objects. See the MATLAB Report Generator User's Guide. |
Reports for the current Stateflow chart vary with your choice of one of the System reporting options fields:
Current — Reports on the chart or subchart in the current Stateflow Editor and its immediate parent Simulink system.
Current and above — This option is grayed out and unavailable for printing chart details in the Stateflow Editor.
Current and below — Reports on the chart or subchart in the current Stateflow Editor and all contents at lower levels of the hierarchy, along with the immediate Simulink system.
Entire model — Reports on the entire model including all charts and all Simulink systems.
If you select this option, you can modify the report as follows:
Look under mask dialog – Includes the contents of masked subsystems in the report.
Expand unique library links – Includes the contents of library blocks that are subsystems in the report.
The report includes a library subsystem only once even if it occurs in more than one place in the model.
The general top-down format of the Print Details report is as follows:
The report shows the title of the system in the Simulink model containing the chart or subchart in current view in the Stateflow Editor.
A representation of Simulink hierarchy for the containing system and its subsystems follows. Each subsystem in the hierarchy links to the report of its Stateflow charts.
The report section for the Stateflow charts of each system or subsystem begins with a small report on the system or subsystem, followed by a report of each contained chart.
Each chart report includes a reproduction of its chart with links for subcharted states that have reports of their own.
An appendix tabulates the covered Stateflow and Simulink objects in the report.
The Print Current View option prints an individual chart or subchart as follows:
In the submenu, choose one of these options:
To File — Converts the current view to a graphics file.
Select the format for the graphics file from a submenu of graphical file types.
To Clipboard — Copies the current view to the system clipboard.
Select the format for the clipboard copy from a submenu of graphical formats.
To Figure — Converts the current view to a MATLAB® figure window.
To Printer — Prints the current view on the current printer.
You can also print the current view from the MATLAB command line using the sfprint function.
![]() | Using Notes to Extend Charts | Defining Data | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |