メインコンテンツ

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

addReference

別のインターフェイス ディクショナリへの Simulink インターフェイス ディクショナリ参照の追加

R2023a 以降

R2023b でデータ ディクショナリのアーキテクチャ データ セクションが導入されました。インターフェイス、データ型、定数、ソフトウェア アドレス メソッドを管理するときは、代わりに Simulink.dictionary.ArchitecturalData プログラム インターフェイスの使用を検討してください。詳細については、Programmatically Manage AUTOSAR Architectural Dataを参照してください。

説明

addReference(dictObj,refDict) は、refDict で指定された参照ディクショナリを指定されたインターフェイス ディクショナリ dictObj に追加します。ディクショナリの参照は、プラットフォーム マッピングを適用していない Simulink® インターフェイス ディクショナリでサポートされます。

すべて折りたたむ

参照ディクショナリ ReferenceInterfaces1.sldd および ReferenceInterfaces2.sldd をインターフェイス ディクショナリ MyInterfaces.sldd に追加します。

dictAPI1 = Simulink.interface.dictionary.open('MyInterfaces.sldd');
dictAPI2 = Simulink.interface.dictionary.open('ReferenceInterfaces1.sldd');
addReference(dictAPI1,dictAPI2);
addReference(dictAPI1,'ReferenceInterfaces2.sldd');

refDicts = getReferences(dictAPI1)
refDicts =

  2×1 cell array

    {'C:\work\ReferenceInterfaces1.sldd'}
    {'C:\work\ReferenceInterfaces2.sldd'}

入力引数

すべて折りたたむ

インターフェイス ディクショナリ。Simulink.interface.Dictionary オブジェクトとして指定します。この関数を使用する前に、Simulink.interface.dictionary.create または Simulink.interface.dictionary.open を使用して dictObj を作成するか開いておきます。

参照インターフェイス ディクショナリ。文字ベクトル、string スカラー、または Simulink.interface.Dictionary オブジェクトとして指定します。

例: 'ReferenceDictionary.sldd'

バージョン履歴

R2023a で導入

すべて折りたたむ