Main Content

Stateflow.TransBreakpoints

Breakpoint properties for transition

    Description

    Use a Stateflow.TransBreakpoints object to specify the breakpoint properties for a transition. For more information, see Set Breakpoints to Debug Charts.

    Creation

    Each transition has its own Stateflow.TransBreakpoints object. To access the Stateflow.TransBreakpoints object, use the Debug.Breakpoints property of the Stateflow.Transition 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.

    Whether to set the When Transition is Tested breakpoint, specified as a numeric or logical 1 (true) or 0 (false).

    Whether to set the When Transition is Valid breakpoint, specified as a numeric or logical 1 (true) or 0 (false).

    Examples

    collapse all

    Access the Stateflow.TransDebug and Stateflow.TransBreakpoints objects for the Stateflow.Transition object transition.

    debug = transition.Debug;
    breakpoints = debug.Breakpoints;

    Set the When Transition is Tested and When Transition is Valid breakpoints.

    breakpoints.WhenTested = true;
    breakpoints.WhenValid = true;

    Version History

    Introduced before R2006a