Main Content

publishActorBehavior

Generate proto file for actor simulation

    Description

    Simulink.publish.publishActorBehavior(actorBehavior,Name,Value) generates a proto file from the actor behavior specified by actorBehavior for actor simulation with additional options specified using one or more name-value arguments.

    example

    Simulink.publish.publishActorBehavior(modelName,Name,Value) generates a proto file from the model specified by modelName for actor simulation with additional options specified using one or more name-value arguments.

    Examples

    collapse all

    Publish the model actor behavior as a proto file to use in actor simulation.

    Simulink.publish.publishActor("mSimple",OutputFile="output.slprotodata")

    Input Arguments

    collapse all

    Actor behavior for MATLAB® System object™, specified as a character vector or string.

    Example: "MySystemObjectBehavior.m"

    Data Types: char | string

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

    Example: "mSimple"

    Data Types: char | string

    Name-Value Arguments

    Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

    Example: Simulink.publish.publishActorBehavior("mSimple",OutputFile="output.slprotodata")

    Output file for proto file, specified as a string of the full file path with or without the default SLPROTODATA extension.

    Data Types: string

    Version History

    Introduced in R2022a