getExportStateflowDiagrams

Class: slreportgen.webview.WebViewDocument
Package: slreportgen.webview

Stateflow chart hierarchy paths and handles to export

Description

example

[paths,handles] = getExportStateflowDiagrams(wvdoc) returns an array of Stateflow® chart paths and handles to export. The paths and handles are returned for both charts at the top level of the model and all charts in the hierarchy.

Input Arguments

expand all

Web view document, specified as an slreportgen.webview.WebViewDocument object.

Output Arguments

expand all

Stateflow diagram paths in the model, returned as a cell array of character vectors.

Stateflow diagram handles that correspond to the Stateflow diagram paths. returned as an array of character vectors.

Examples

expand all

Get the paths and handles for Stateflow diagrams in the sf_cdplayer Simulink® model.

sf_cdplayer
wvdoc = slreportgen.webview.WebViewDocument('myWebview','sf_cdplayer');
[paths,handles] = getExportStateflowDiagrams(wvdoc)
paths =

  7×1 cell array

    'sf_cdplayer/CdPlayerBehaviorModel'
    'sf_cdplayer/CdPlayerModeManager'
    'sf_cdplayer/CdPlayerModeManager/AMMode'
    'sf_cdplayer/CdPlayerModeManager/CDMode'
    'sf_cdplayer/CdPlayerModeManager/CDMode/Play'
    'sf_cdplayer/CdPlayerModeManager/FMMode'
    'sf_cdplayer/UserRequest'

handles =

	Stateflow.Object: 1-by-7

Introduced in R2017a