メインコンテンツ

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

systemcomposer.profile.Profile.load

プロファイルをファイルから読み込む

    説明

    profile = systemcomposer.profile.Profile.load(profileName) は、ファイル名からプロファイルを読み込みます。

    すべて折りたたむ

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

    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

    プロファイルを別の変数に読み込みます。

    newProfile = systemcomposer.profile.Profile.load("LatencyProfile")
    newProfile = 
    
      Profile with properties:
    
                Name: 'LatencyProfile'
        FriendlyName: ''
         Description: ''
         Stereotypes: [1×5 systemcomposer.profile.Stereotype]

    入力引数

    すべて折りたたむ

    プロファイルの名前。文字ベクトルまたは string として指定します。プロファイルは MATLAB® パス上で使用可能でなければなりません。拡張子は .xml です。

    例: "LatencyProfile"

    データ型: char | string

    出力引数

    すべて折りたたむ

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

    詳細

    すべて折りたたむ

    バージョン履歴

    R2019a で導入