Main Content

slwebview_cov

Export Simulink models to Web views with coverage

Description

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

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

Note

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

example

Examples

collapse all

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

filename = slwebview_cov(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 coverage 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 Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

Example: slwebview_cov(gcs,'SearchScope','CurrentAndBelow','LookUnderMasks','all','FollowLinks','on')

'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

Since R2024b

Whether to export referenced subsystems in a webview, specified as "on" or "off". If true, the web view includes referenced subsystems. If false, the web view does not include referenced subsystems.

Data Types: string

'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

The coverage data to use, specified as the comma-separated pair consisting of 'CovData' and the cvdata objects to use.

Example: 'CovData', covdata

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).

Version History

Introduced in R2015a

expand all

See Also

(Requirements Toolbox)