Main Content

このページの翻訳は最新ではありません。ここをクリックして、英語の最新版を参照してください。

coder.dictionary.create

Embedded Coder ディクショナリおよび coder.Dictionary オブジェクトを作成

R2019b 以降

説明

coderDictionaryObj = coder.dictionary.create(sourceName) は、sourceName で識別されるモデルまたは Simulink® データ ディクショナリに Embedded Coder ディクショナリを作成します。この関数は、新しい Embedded Coder ディクショナリを表す coder.Dictionary オブジェクトを返します。

ソースのモデルまたはデータ ディクショナリに既に Embedded Coder ディクショナリがある場合は、coder.dictionary.open を使用して coder.Dictionary オブジェクトにアクセスします。Embedded Coder ディクショナリは、Embedded Coder アプリでモデルを開くか、モデルまたはデータ ディクショナリの [Embedded Coder ディクショナリ] ダイアログ ボックスを開くと作成されます。

すべて折りたたむ

データ ディクショナリを作成します。

dataDictionary = Simulink.data.dictionary.create('DataDictionary.sldd');

データ ディクショナリに Embedded Coder ディクショナリを作成します。

coderDictionary = coder.dictionary.create(dataDictionary);
coderDictionary = 

  Dictionary with Sections:

                    StorageClasses: [1×1 coder.dictionary.Section]
                    MemorySections: [1×1 coder.dictionary.Section]
    FunctionCustomizationTemplates: [1×1 coder.dictionary.Section]

入力引数

すべて折りたたむ

ターゲットのモデル ファイルまたはデータ ディクショナリの名前。文字ベクトル、string スカラー、または Simulink.data.Dictionary オブジェクトとして指定します。

  • モデルは、読み込み済み (たとえば load_system を使用) であるか開いていなければなりません。

    ファイル拡張子 .slx を指定する必要はありません。

  • ディクショナリは、モデル エクスプローラーで開いているか、現在のフォルダーまたは MATLAB® パス上になければなりません。

    ファイル拡張子 .sldd を指定する必要があります。

例: 'myLoadedModel'

例: 'myDictionary.sldd'

データ型: char

出力引数

すべて折りたたむ

新しい Embedded Coder ディクショナリ。coder.Dictionary オブジェクトとして返されます。

バージョン履歴

R2019b で導入