Main Content

slreportgen.utils.block2chart

Get Stateflow chart object from containing block

Description

charts = slreportgen.utils.block2chart(subsystems) returns an array of Stateflow® chart objects that are contained in the specified subsystems.

example

Examples

collapse all

Get the Stateflow.Chart object for the chart control_logic in the model sldemo_fuelsys.

openExample("sldemo_fuelsys")
ch = slreportgen.utils.block2chart...
    ("sldemo_fuelsys/fuel_rate_control/control_logic");
class(ch)
ans = 
    'Stateflow.Chart'

Input Arguments

collapse all

Subsystem blocks, specified as an array of subsystem block handles or an array of handles or paths to the subsystem blocks.

Output Arguments

collapse all

Stateflow chart objects, returned as an array. The returned Stateflow charts are contained in the specified subsystems.

Version History

Introduced in R2018b