Main Content

Stateflow.EventDebug

Debugger properties for event

    Description

    Use a Stateflow.EventDebug object to specify the debugger properties for an event.

    Creation

    Each event has its own Stateflow.EventDebug object. To access the Stateflow.EventDebug object, use the Debug property for the Stateflow.Event 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 event, specified as a Stateflow.EventBreakpoints object with these properties:

    • StartBroadcast — Whether to set the Start of Broadcast breakpoint, specified as a numeric or logical 1 (true) or 0 (false).

    • EndBroadcast — Whether to set the End of Broadcast 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.EventDebug and Stateflow.EventBreakpoints objects for the Stateflow.Event object event.

    debug = event.Debug;
    breakpoints = debug.Breakpoints;

    Set the Start of Broadcast and End of Broadcast breakpoints.

    breakpoints.StartBroadcast = true;
    breakpoints.EndBroadcast = true;

    Version History

    Introduced before R2006a