Main Content

publishCustomEvent

Generate asset file for user-defined event

Since R2023a

    Description

    Simulink.publish.publishCustomEvent(modelName) generates an event asset file for the Simulink® actor behavior model modelName that reads or writes a certain user-defined event.

    example

    Examples

    collapse all

    Publish Simulink actor behavior as an event asset file to use in a scenario simulation.

    Simulink.publish.publishCustomEvent("CustomEventOvertakeSimulinkModel");

    Input Arguments

    collapse all

    Simulink model name, specified as a character vector or string.

    Example: "mSimple"

    Data Types: char | string

    Version History

    Introduced in R2023a