主要内容

本页采用了机器翻译。点击此处可查看英文原文。

setAsynchronous

将函数元素设置为异步

自 R2022b 起

    说明

    如果 functionElemtrue,则 setAsynchronous(functionElem,isAsync) 将函数元素 isAsync 设置为异步。

    示例

    示例

    全部折叠

    创建一个新模型。

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

    创建一个服务接口。

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

    创建一个函数元素。

    element = addElement(interface,"newFunctionElement");

    将函数元素设置为异步。

    setAsynchronous(element,true)

    输入参数

    全部折叠

    函数元素,指定为 systemcomposer.interface.FunctionElement 对象。

    函数元素是否异步,指定为 1 (true) 或 0 (false)。

    数据类型: logical

    详细信息

    全部折叠

    版本历史记录

    在 R2022b 中推出