Main Content

setAsynchronous

Set function element as asynchronous

Since R2022b

    Description

    setAsynchronous(functionElem,isAsync) sets the function element functionElem as asynchronous if isAsync is true.

    example

    Examples

    collapse all

    Create a new model.

    model = systemcomposer.createModel("archModel","SoftwareArchitecture");
    systemcomposer.openModel("archModel");

    Create a service interface.

    interface = addServiceInterface(model.InterfaceDictionary,"newServiceInterface");

    Create a function element.

    element = addElement(interface,"newFunctionElement");

    Set function element as asynchronous.

    setAsynchronous(element,true)

    Input Arguments

    collapse all

    Function element, specified as a systemcomposer.interface.FunctionElement object.

    Whether function element is asynchronous, specified as 1 (true) or 0 (false).

    Data Types: logical

    More About

    collapse all

    Version History

    Introduced in R2022b

    See Also

    Functions

    Objects

    Blocks

    Tools