Products & Services Solutions Academia Support User Community Company

Learn more about Simulink Report Generator   

Exporting Models to the Web

Opening the Export Interface

You can export a model to a Web view using either a Simulink Report Generator dialog box or a Report Explorer pane.

To Open the export interface from ...Use ...Export interface opens as...
Report ExplorerTools > Export to WebReport Explorer
Simulink model windowFile > Export to WebDialog box
Stateflow editorFile > Export to WebDialog box
Command lineThe slwebview function, with no argumentsReport Explorer

Setting Export Options

You can set options that specify which Simulink systems or Stateflow charts to export to a Web view, including:

Include Systems

Specifies which Simulink systems or Stateflow charts to export.

Include Systems Option ValueMeaning
CurrentExport only the Simulink system that is open in the model window or the Stateflow chart that is open in the diagram editor
Current and aboveExport the current Simulink system or Stateflow chart and all systems or charts that contain it
Current and belowExport the current Simulink system or Stateflow chart and all subsystems or subcharts that it contains
All (Default)Export all Simulink systems or Stateflow charts in the model

Look Under Masks

This option is available only when you choose Current and below or All for Include Systems. It specifies which masked blocks, if any, to export from Simulink subsystems or Stateflow subcharts.

Look Under Masks Option ValueMeaning
No masked blocksDo not export any masked blocks
Masks with no workspace and no dialog (Default )Export only graphical masked blocks—those that have no workspaces and no dialog boxes
Masks with no dialogExport only functional masked blocks—those that have no dialog boxes
All masked blocksExport all masked blocks

Follow Library Links

Specifies whether to follow links into library blocks.

Follow Library Links Option ValueMeaning
SelectedFollow links into library blocks
Unselected (Default)Do not follow links into library blocks

Follow Model Reference Blocks

Specifies whether to follow links into referenced models.

Follow model reference blocks Option ValueMeaning
trueFollow links into referenced models
false (Default)Do not follow links into referenced models

Generating and Reviewing Web Views

The Web view export process exports the system or chart that is visible at the time you click Export Model. If you change the visible system or chart while the Report Explorer Web view export pane is visible, the Report Explorer pane does not automatically change to show information about the newly visible system. To update the Report Explorer pane, click Refresh.

The Web view export dialog box or the Report Explorer displays a list of layers—that is, Simulink systems or Stateflow charts—to export. The list of layers depends on the export options you specify, as described in Setting Export Options.

To generate a Web view of all layers in the model, click OK in the Web View dialog box, or click Export Model in the Report Explorer pane. This action generates two sets of files in the current MATLAB folder:

To send the Web view to another computer, include both the HTML file and the folder of supporting files. Package these items into a zip file for transfer.

When you generate a Web view, it appears in a Web browser by default. You can suppress the display by setting the 'ViewFile' option to false.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

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