Documentation

slreportgen.webview.WebViewDocument.getExportStateflowDiagrams

Package: slreportgen.webview

Stateflow chart hierarchy paths and handles to export

Syntax

[paths,handles] = getExportStateflowDiagrams(wvdoc)

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.

Examples

collapse 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

Input Arguments

collapse all

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

Output Arguments

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

Introduced in R2017a

Was this topic helpful?