Main Content

slreportgen.utils.block2chart

Get Stateflow chart object from containing block

Description

example

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

Examples

Obtain Chart Object

Run the following command to access the supporting files used in this example.

openExample('rptgenext/SimulinkReportGeneratorFilesExample');
load_system("slrgex_fuelsys_fuel_rate_control")
slreportgen.utils.block2chart...
  ("slrgex_fuelsys_fuel_rate_control/control_logic")

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