slwebview_req
Export Simulink system to Web views with requirements
Description
uses additional options specified by one or more filename = slwebview_req(sysname,Name,Value)Name,Value pair
arguments.
Note
You can use slwebview_req only if you have also installed
Simulink®
Report Generator™.
Examples
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
System to export to the web view file, specified as a character vector or string
scalar that contains the path to the system or a handle to a subsystem, block diagram,
chart, or subchart. By default, the function also exports the child systems of the
sysname system. Use the SearchScope name-value
argument 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: "ShowProgressBar","off"
Systems to export, relative to the sysname system, specified as one
of these values:
"CurrentAndBelow"— Exports the Simulink system or the Stateflow® chart specified bysysnameand all systems or charts that it contains."Current"— Exports only the Simulink system or the Stateflow chart specified bysysname."CurrentAndAbove"— Exports the Simulink system or the Stateflow chart specified by thesysnameand 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 bysysname.
Data Types: char | string
Whether to export masked blocks, specified as one of these values:
"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 | string
Whether to follow links into library blocks, specified as "on" or
"off", or as numeric or logical 1 (true) or 0
(false). A value of "on" is equivalent to
true, and "off" is equivalent to
false. Thus, you can use the value of this property as a logical value.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState. When
you specify:
"on"— Follows links into library blocks in the web view"off"— Does not follow links into library blocks in the web view
Whether to access referenced models, specified as "on" or
"off", or as numeric or logical 1 (true) or 0
(false). A value of "on" is equivalent to
true, and "off" is equivalent to
false. Thus, you can use the value of this property as a logical value.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState. When
you specify:
"on"— Includes referenced models in the web view"off"— Does not include referenced models in the web view
Since R2024b
Whether to export referenced subsystems, specified as "on" or
"off", or as numeric or logical 1 (true) or 0
(false). A value of "on" is equivalent to
true, and "off" is equivalent to
false. Thus, you can use the value of this property as a logical value.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState. When
you specify:
"on"— Exports referenced subsystems in the web view"off"— Does not export referenced subsystems in the web view
Whether to include behavior components defined in architecture models, specified as "on" or
"off", or as numeric or logical 1 (true) or 0
(false). A value of "on" is equivalent to
true, and "off" is equivalent to
false. Thus, you can use the value of this property as a logical value.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState. When
you specify:
"on"— Includes behavior components in the web view"off"— Does not include behavior components in the web view
Whether to include user notes, specified as "on" or
"off", or as numeric or logical 1 (true) or 0
(false). A value of "on" is equivalent to
true, and "off" is equivalent to
false. Thus, you can use the value of this property as a logical value.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState. When
you specify:
"on"— Includes user notes in the web view"off"— Does not include user notes in the web view
Whether to export supporting MATLAB functions used in MATLAB Function blocks or Stateflow charts, specified as "on" or
"off", or as numeric or logical 1 (true) or 0
(false). A value of "on" is equivalent to
true, and "off" is equivalent to
false. Thus, you can use the value of this property as a logical value.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState. When
you specify:
"on"— Exports supporting functions or charts in the web view"off"— Does not export supporting functions or charts in the web view
Since R2026a
Whether to include variant subsystems, specified as one of these values:
| Value | Description |
|---|---|
"All" | Subsystems in all variants |
"Active" | Subsystems in active variants |
"ActivePlusCode" | Subsystems in active variants and code variants |
Data Types: char | string
Whether to display the web view in a web browser after you export the web view,
specified as "on" or
"off", or as numeric or logical 1 (true) or 0
(false). A value of "on" is equivalent to
true, and "off" is equivalent to
false. Thus, you can use the value of this property as a logical value.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState. When
you specify:
"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
Whether to display the status bar when you export the web view, specified as "on" or
"off", or as numeric or logical 1 (true) or 0
(false). A value of "on" is equivalent to
true, and "off" is equivalent to
false. Thus, you can use the value of this property as a logical value.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState. When
you specify:
"on" — Displays the status bar when you export the web view
"off" — Does not display the status bar when you export the web view
Output Arguments
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 R2015aWhen generating a model web view, choose which variant subsystems to include by using the
propertyIncludeVariantSubsystems. The default behavior is to include
all variant subsystems in the model web view.
Web views now display mask parameters for masked Stateflow subcharts.
When generating a model web view, choose whether or not to include referenced subsystems
by using the propertyFollowSubsystemReference. The default behavior is to
include referenced subsystems in the model web view.
See Also
Functions
slwebview(Simulink Report Generator) |slwebview_cov(Simulink Coverage)
Topics
- Include Model Requirements and Coverage Data in Web Views (Simulink Report Generator)
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)