Documentation

slwebview_req

Export Simulink system to Web views with requirements

Syntax

filename = slwebview_req(sysname)
filename = slwebview_req(sysname,Name,Value)

Description

filename = slwebview_req(sysname) exports the system sysname and its children to a web page filename with contextual requirements information for the system displayed on a separate panel of the layered model structure Web view.

example

filename = slwebview_req(sysname,Name,Value) uses additional options specified by one or more Name,Value pair arguments.

Note

You can use slwebview_req only if you have also installed Simulink® Report Generator™.

Examples

collapse all

Export all the layers (including libraries and masks) from the system gcs to the file filename

filename = slwebview_req(gcs, 'LookUnderMasks', 'all', 
'FollowLinks', 'on')

Input Arguments

collapse all

Exports the specified system or subsystem and its child systems to a Web view file, with contextual requirements information for the system displayed on a separate panel of the layered model structure Web view. By default, child systems of the sysname system are also exported. Use the SearchScope name-value pair to export other systems, in relation to sysname.

Example: ‘sysname’

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside single quotes (' '). You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example:

collapse all

'CurrentAndBelow' exports the Simulink system or the Stateflow® chart specified by sysname and all systems or charts that it contains.

'Current' exports only the Simulink system or the Stateflow chart specified by sysname.

'CurrentAndAbove' exports the Simulink system or the Stateflow chart specified by the sysname and all systems or charts that contain it.

'All' exports all Simulink systems or Stateflow charts in the model that contains the system or chart specified by sysname.

Data Types: char

'none' does not export masked blocks in the Web view. Masked blocks are included in the exported systems, but you cannot access the contents of the masked blocks.

'all' exports all masked blocks.

Data Types: char

'off' does not allow you to access referenced models in a Web view.

'on' allows you to access referenced models in a Web view.

Data Types: char

'on' displays the Web view in a Web browser when you export the Web view.

'off' does not display the Web view in a Web browser when you export the Web view.

Data Types: char

'on' displays the status bar when you export a Web view.

'off' does not display the status bar when you export a Web view.

Data Types: char

Output Arguments

collapse all

Reports the name of the HTML file for displaying the Web view. Exporting a Web view creates the supporting files, in a folder.

Tips

A Web view is an interactive rendition of a model that you can view in a Web browser. You can navigate a Web view hierarchically to examine specific subsystems and to see properties of blocks and signals.

You can use Web views to share models with people who do not have Simulink installed.

Web views require a Web browser that supports Scalable Vector Graphics (SVG).

Introduced in R2015a

Was this topic helpful?