Main Content

sendEvent

Publish action completion event to scenario

    Description

    example

    sendEvent(actorSim, 'ActionComplete','ActionID') publishes an event indicating completion of the user-defined action ActionID by the actor actorSim to a scenario.

    Examples

    collapse all

    Publish an action completion event for the user-defined action named CustomBrakes.

    sendEvent(mActorHdl, 'ActionComplete', 'CustomBrakes');

    Input Arguments

    collapse all

    Actor for which an action completion event is published, specified as a Simulink.ActorSimulation object.

    Identifier of the completed action, specified as a string or character vector.

    Version History

    Introduced in R2022b