Skip to Main Content Skip to Search
Product Documentation

slwebview - Export Simulink models to Web views

Syntax

slwebview
filename = slwebview(system_name)
... = slwebview(system_name, 'option1', value1, ...)

Description

This function creates an interactive Web view of a Simulink model. For more information about Web views, see Exporting Simulink Models to Web Views.

Export Options

The first argument passed to the slwebview command is the name (a string) or a handle identifying the Simulink system or Stateflow chart to export. Remaining arguments are alternating name and value pairs (strings) that set export options.

SearchScope

Specifies which Simulink systems or Stateflow charts to export.

'SearchScope' Option ValueMeaning
CurrentExport only the Simulink system or the Stateflow chart specified by the first argument
CurrentAndAboveExport the Simulink system or the Stateflow chart specified by the first argument and all systems or charts that contain it
CurrentAndBelow (Default)Export the Simulink system or the Stateflow chart specified by the first argument and all systems or charts that it contains
AllExport all Simulink systems or Stateflow charts in the model that contains the system or chart specified by the first argument

LookUnderMasks

This option is relevant only when you are exporting Simulink subsystems or Stateflow subcharts that the specified system or chart contains. It specifies which masked blocks, if any, in subsystems or subcharts to export.

'LookUnderMasks' Option ValueMeaning
NoneDo not export any masked blocks
Graphical (Default)Export only masked blocks that have no workspaces and no dialog boxes
FunctionalExport only masked blocks that have no dialog boxes
AllExport all masked blocks

FollowLinks

Specifies whether to follow links into library blocks.

'FollowLinks' Option ValueMeaning
OnFollow links into library blocks
Off (Default)Do not follow links into library blocks

FollowModelReference

Specifies whether to follow links into referenced models.

'FollowModelReference' Option ValueMeaning
OnFollow links into referenced models
Off (Default)Do not follow links into referenced models

ViewFile

Specifies whether to display the Web view in a Web browser.

'ViewFile' Option ValueMeaning
true (Default)Display the Web view in a Web browser
falseDo not display the Web view in a Web browser

How To

  


Related Products & Applications

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

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