embedded web view reports -凯发k8网页登录

main content

embedded web view reports

what is embedded web view?

embedded web view is a matlab® application programming interface (api) that allows you to create html reports containing web views. embedded web view lets you generate compact and navigable reports from simulink® models. for example, the following image shows a control system calibration guide generated by a matlab program based on embedded web view.

this calibration guide comprises three hyperlinked panes:

  • left pane — calibration guide table of contents

  • center pane — calibration guide content

  • right pane — web view of the simulink model used to create the control system

use the matlab report generator™ dom and report apis and the simulink report generator report apis to generate the calibration guide content. use the embedded web view api to create the report. the report is a user interface with guide content, an embedded web view, and hyperlinks between the web view and the guide report text. the resulting guide runs in any standard browser without requiring either matlab or simulink.

navigate through embedded web view reports

the embedded web view api facilitates report navigation by letting you create two-way hyperlinks between report content and the embedded web view. the hyperlinks are illustrated in the following calibration guide example.

navigate via a table of contents

the embedded web view api creates a table of contents (toc) based on your report section headings. clicking a toc heading entry displays the corresponding report section in the contents pane. it also displays and flashes the corresponding model element. the linked model block in this calibration guide example is shown highlighted in yellow in the web view pane.

navigate via contents

this calibration guide has hyperlinks from any text element in the content to any model element in the web view pane. clicking the text element in the contents displays and flashes the corresponding model element. the linked model block in this calibration report example is shown highlighted in yellow in the web view pane.

navigate via web view

this calibration guide has hyperlinks from any element in the web view pane to any location in the report content pane. clicking the model element displays the corresponding location in the content pane as shown highlighted in this calibration guide example.

embedded web view packaging

the embedded web view api generates a report as a package of html, image, style sheet, javascript®, and javascript object notation (json) files organized into folders. by default, the api produces both zipped and unzipped versions of a report package in the current matlab folder.

view embedded web view reports

if matlab report generator is installed on your system, you can use the report generator function to view a zipped or unzipped embedded web view.

to view an embedded web view report on systems that do not have matlab installed,

  1. unzip the report in an empty, writable folder on your system. this step creates a file named webview.html in the folder and a subfolder containing supporting files.

  2. open webview.html in a browser to view the report.

related topics

    网站地图