Main Content

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 sfMediaPlayer Simulink® model.

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

  10×1 cell array

    {'sfMediaPlayer/App Interface'                    }
    {'sfMediaPlayer/Mode Manager'                     }
    {'sfMediaPlayer/Stream Player'                    }
    {'sfMediaPlayer/Stream Player/PlaySounds'         }
    {'sfMediaPlayer/Stream Player/PlaySounds/Handel'  }
    {'sfMediaPlayer/Stream Player/PlaySounds/Laugh'   }
    {'sfMediaPlayer/Stream Player/PlaySounds/MusicOff'}
    {'sfMediaPlayer/Stream Player/PlaySounds/Train'   }
    {'sfMediaPlayer/Stream Player/UpdateIndex'        }
    {'sfMediaPlayer/Stream Player/UpdateIndex'        }


handles =

	1×10 heterogeneous DDObject (Chart, State) array with no properties.

Version History

Introduced in R2017a