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
load_system("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