Main Content

Stateflow.ChartDebug

Debugger properties for chart or state transition table

    Description

    Use a Stateflow.ChartDebug object to specify the debugger properties for a chart or state transition table.

    Creation

    Each chart and state transition table has its own Stateflow.ChartDebug object. To access the Stateflow.ChartDebug object, use the Debug property for the Stateflow.Chart or Stateflow.StateTransitionTableChart object.

    Properties

    expand all

    Stateflow® API objects have properties that correspond to the values you set in the Stateflow Editor. To access or modify a property, use dot notation. To access or modify multiple properties for multiple API objects, use the get and set functions, respectively. For more information, see Modify Properties and Call Functions of Stateflow Objects.

    Breakpoint properties for the chart or state transition table, specified as a Stateflow.ChartBreakpoints object with this property:

    • OnEntry — Whether to set the On Chart Entry breakpoint, specified as a numeric or logical 1 (true) or 0 (false).

    For more information, see Set Breakpoints to Debug Charts.

    Examples

    collapse all

    Access the Stateflow.ChartDebug and Stateflow.ChartBreakpoints objects for the Stateflow.Chart object ch.

    debug = ch.Debug;
    breakpoints = debug.Breakpoints;

    Set the On Chart Entry breakpoint.

    breakpoints.OnEntry = true;

    Version History

    Introduced before R2006a