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

load_system("slrgex_fuelsys_fuel_rate_control")
slreportgen.utils.block2chart...
  ("slrgex_fuelsys_fuel_rate_control/control_logic")
ans = 
  Chart with properties:

                                     Path: 'slrgex_fuelsys_fuel_rate_control/control_logic'
                          RequirementInfo: ''
     AllowGlobalAccessToExportedFunctions: 1
                      EnableZeroCrossings: 1
                NoCodegenForCustomTargets: 0
                     NonTerminalMaxCounts: 1000
    RegisterExportedFunctionsWithSimulink: 0
                                   Editor: [1x1 Stateflow.Editor]
                           ActionLanguage: 'C'
                               ChartColor: [1 0.9608 0.8824]
                           SelectionColor: [1 0 0.5176]
                   ConstantFoldingTimeOut: 40000
                  DerivativesFormatString: '$N_dot'
                         EmlDefaultFimath: 'Same as MATLAB Default'
                             EnableBitOps: 0
                  EnableNonTerminalStates: 0
                  ExecuteAtInitialization: 0
                               ErrorColor: [1 0 0]
                     ExportChartFunctions: 0
                         InitializeOutput: 0
                  FimathForFiConstructors: 'Same as FIMATH for fixed-point input signals'
                              InputFimath: 'fimath(......'
                             PortFontSize: 12
                            JunctionColor: [0.6824 0.3294 0]
                               OutputData: []
                SaturateOnIntegerOverflow: 0
                               StateColor: [0 0 0]
                          StateLabelColor: [0 0 0]
                                StateFont: [1x1 Stateflow.StateFont]
                          TransitionColor: [0.2902 0.3294 0.6039]
                     TransitionLabelColor: [0.2902 0.3294 0.6039]
                                TreatAsFi: 'Fixed-point'
         TreatUndefinedSymbolsAsExtrinsic: 0
                         StateMachineType: 'Classic'
                                  Visible: 0
                            HasOutputData: 0
                     OutputMonitoringMode: 'ChildActivity'
              StateActivityOutputDataType: 'Enum'
                                    Debug: [1x1 Stateflow.ChartDebug]
                           TransitionFont: [1x1 Stateflow.TransFont]
                                  Machine: [1x1 Stateflow.Machine]
                            Decomposition: 'PARALLEL_AND'
              NonTerminalUnstableBehavior: 'Proceed'
                    VariantActivationTime: 'update diagram analyze all choices'
                                     Name: 'control_logic'
                               SampleTime: '-1'
                           hadBreakpoints: 0
                              Description: ''
                                    Dirty: 0
                                 Document: ''
                                     Iced: 0
                                   Locked: 0
                    SupportVariableSizing: 0
     TreatDimensionOfLengthOneAsFixedSize: 1
                                      Tag: []
                                       Id: 191
                              ChartUpdate: 'INHERITED'
                       StatesWhenEnabling: 'held'
                         PaperOrientation: 'landscape'
                        PaperPositionMode: 'auto'
                            PaperPosition: [3.2404 0.2500 4.5192 8]
                                PaperSize: [11 8.5000]
                               PaperUnits: 'inches'
                                PaperType: 'usletter'
                        TiledPaperMargins: [0.5000 0.5000 0.5000 0.5000]
                           TiledPageScale: 1
                       ShowPageBoundaries: 'off'

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