主要内容

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

systemcomposer.profile.Profile.closeAll

关闭所有打开的配置文件

    说明

    systemcomposer.profile.Profile.closeAll 强制关闭所有打开的配置文件而不保存,并从工作区中删除它们。

    提示

    使用 close 关闭一个打开的配置文件。

    示例

    示例

    全部折叠

    创建延迟特性配置文件并保存。

    profile = systemcomposer.profile.Profile.createProfile("LatencyProfile");
    
    latencybase = profile.addStereotype("LatencyBase");
    latencybase.addProperty("latency",Type="double");
    latencybase.addProperty("dataRate",Type="double",DefaultValue="10");
    
    connLatency = profile.addStereotype("ConnectorLatency",...
    Parent="LatencyProfile.LatencyBase");
    connLatency.addProperty("secure",Type="boolean");
    connLatency.addProperty("linkDistance",Type="double");
    
    nodeLatency = profile.addStereotype("NodeLatency",...
    Parent="LatencyProfile.LatencyBase");
    nodeLatency.addProperty("resources",Type="double",DefaultValue="1");
    
    portLatency = profile.addStereotype("PortLatency",...
    Parent="LatencyProfile.LatencyBase");
    portLatency.addProperty("queueDepth",Type="double");
    portLatency.addProperty("dummy",Type="int32");
    
    profile.save

    关闭所有打开的配置文件,并尝试检查其中一个。

    systemcomposer.profile.Profile.closeAll
    profile
     profile = 
    
      handle to deleted Profile

    详细信息

    全部折叠

    版本历史记录

    在 R2019a 中推出