メインコンテンツ

このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。

open

プロファイルを開く

    説明

    open(profile) は、プロファイルをプロファイル エディターで開きます。

    すべて折りたたむ

    レイテンシ特性のプロファイルを作成して保存します。

    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

    プロファイルをプロファイル エディターで開きます。

    open(profile)

    入力引数

    すべて折りたたむ

    プロファイル。systemcomposer.profile.Profile オブジェクトとして指定します。

    詳細

    すべて折りたたむ

    バージョン履歴

    R2019a で導入