slreportgen.utils.getModelHandle
Get Simulink model
Description
returns the handle of a Simulink® model or Stateflow® object.modelHandle
= slreportgen.utils.getModelHandle(obj
)
Examples
Obtain Simulink Model Handle
openExample('f14') modelHandle_blk = slreportgen.utils.getModelHandle('f14/Controller')
modelHandle_blk = 2.0002
Obtain Stateflow Chart Handle
Run the following command to access the supporting files used in this example.
openExample('rptgenext/SimulinkReportGeneratorFilesExample');
load_system('slrgex_sf_car'); chart = find(slroot,'-isa',... 'Stateflow.Chart','Name','shift_logic'); chart_handle = slreportgen.utils.getModelHandle(chart);
Input Arguments
Output Arguments
Version History
Introduced in R2018b