| Contents | Index |
slwebview
filename = slwebview(system_name)
... = slwebview(system_name, 'option1',
value1, ...)
This function creates an interactive Web view of a Simulink model. For more information about Web views, see Exporting Simulink Models to Web Views.
slwebview with no arguments starts the Web View dialog box in the Report Explorer.
filename = slwebview(system_name) exports the subsystem system_name and its child systems to the file filename.
You can specify system_name as:
A string
A handle to a Simulink subsystem or block diagram
A handle to a Stateflow chart or subchart
... = slwebview(system_name, 'option1', value1, ...) sets Web view export options. For more information, see 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.
Specifies which Simulink systems or Stateflow charts to export.
| 'SearchScope' Option Value | Meaning |
|---|---|
| Current | Export only the Simulink system or the Stateflow chart specified by the first argument |
| CurrentAndAbove | Export 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 |
| All | Export all Simulink systems or Stateflow charts in the model that contains the system or chart specified by the first argument |
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 Value | Meaning |
|---|---|
| None | Do not export any masked blocks |
| Graphical (Default) | Export only masked blocks that have no workspaces and no dialog boxes |
| Functional | Export only masked blocks that have no dialog boxes |
| All | Export all masked blocks |
Specifies whether to follow links into library blocks.
| 'FollowLinks' Option Value | Meaning |
|---|---|
| On | Follow links into library blocks |
| Off (Default) | Do not follow links into library blocks |
Specifies whether to follow links into referenced models.
| 'FollowModelReference' Option Value | Meaning |
|---|---|
| On | Follow links into referenced models |
| Off (Default) | Do not follow links into referenced models |
Specifies whether to display the Web view in a Web browser.
| 'ViewFile' Option Value | Meaning |
|---|---|
| true (Default) | Display the Web view in a Web browser |
| false | Do not display the Web view in a Web browser |

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 |