This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Create Reports

Use the Report API and DOM API to generate and customize Simulink® Report Generator™ reports

The Simulink Report Generator Report API provides classes and functions to use in programs that obtain data and information from Simulink models and Stateflow® charts.


expand all Diagram snapshot image file location Create custom diagram reporter class Create diagram template Diagram class definition file location
slreportgen.finder.DiagramResult.getReporter Get diagram reporter
slreportgen.finder.DiagramElementResult.getReporter Get diagram element reporter
slreportgen.finder.DiagramElementResult.getDiagramReporterReturns Diagram reporter for diagram element result
slreportgen.finder.BlockResult.getReporter Get block reporter
slreportgen.finder.BlockResult.getDiagramReporterReturns Diagram reporter for this block result Simulink lookup table block reporter template custom LookupTable reporter class Table reporter class definition file location MATLAB Function reporter template custom MATLAB Function reporter class Function reporter class definition file location Create truth table template Create custom truth table reporter class Location of truth table class definition file Element diagram snapshot image file location Create custom element diagram reporter class Element diagram class definition file location Create element diagram template Create custom Simulink object properties class Create Simulink object properties reporter template Simulink object properties class definition file location Create Stateflow object properties reporter template Create custom Stateflow object properties class Stateflow object properties class definition file location Report Explorer-based (RptFile) reporter template Create custom Report Explorer-based reporter class Explorer-based reporter class definition file location

Classes for report creation diagram reporter object properties reporter Function block or Stateflow MATLAB function reporter table block reporter Truth table reporter
slreportgen.finder.SystemDiagramFinder Create block diagram finder
slreportgen.finder.AnnotationFinder Find Simulink annotation objects
slreportgen.finder.BlockFinder Find Simulink blocks
slreportgen.finder.BlockResult Create block finder result object
slreportgen.finder.DiagramElementFinderCreate diagram element finder object
slreportgen.finder.DiagramElementResult Create diagram element finder result object
slreportgen.finder.DiagramFinder Create finder for diagrams
slreportgen.finder.DiagramResult Create diagram result finder object Element diagram snapshot and caption reporter
slreportgen.finder.ChartDiagramFinder Create Stateflow chart finder
slreportgen.finder.StateFinder Find Stateflow states object properties reporter
slreportgen.finder.StateflowDiagramElementFinderFind Stateflow diagram elements Report Explorer-based reporter


Create a Simulink Report Generator Report

Use the Report API to create a System Design Description report

Report on MATLAB Function

Report on Simulink MATLAB Function block or Stateflow MATLAB® function

Reporting on DocBlock Blocks

This example shows how to include the contents of Simulink DocBlock blocks in a Microsoft Word report generated by the Report API.

Simulink Bus Object Report Example

Create report of Simulink Bus objects

Testing a Wing Flutter Suppression System Design

This example illustrates use of the Simulink Report Generator to verify that a wing flutter suppression system design meets its design requirement.

Use Simulink Report Explorer Components in a Report API Report

Use RptFile reporter to add Report Explorer component content to a Report API report

Report Systems Hierarchically

Create report with model systems numbered hierarchically

Tile Simulink Diagrams

Span a Simulink diagram across multiple pages of a report

Customize Simulink Diagram Hyperlinks in HTML and PDF Reports

Customize hyperlink target for a block