Main Content


Class: slreportgen.webview.WebViewDocument
Namespace: slreportgen.webview

Stateflow chart hierarchy paths and handles to export



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


expand all

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

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