coder.Dictionary クラス
名前空間: coder
説明
coder.Dictionary
クラスのオブジェクトは Embedded Coder ディクショナリを表します。このオブジェクトを使用して、定義のパッケージの読み込みやディクショナリのセクションへのアクセス取得など、Embedded Coder ディクショナリに対する操作を実行できます。
coder.Dictionary
オブジェクトには coder.dictionary.Section
オブジェクトが含まれています。これは、Embedded Coder ディクショナリのカテゴリを表します。coder.dictionary.Section
オブジェクトには coder.dictionary.Entry
オブジェクトが含まれています。これは、Embedded Coder ディクショナリのそのセクションに格納されている定義を表します。セクションの名前は、セクションに格納されているコード定義の種類を識別します。Embedded Coder ディクショナリのセクションにアクセスするには、coder.Dictionary
オブジェクトを使用します。セクション内のディクショナリ エントリにアクセスするには、coder.dictionary.Section
オブジェクトを使用します。
作成
coder.Dictionary
オブジェクトは関数 coder.dictionary.create
および coder.dictionary.open
で作成されます。
メソッド
パブリック メソッド
getCodeInterfaceType | Determine whether coder.Dictionary object represents a service
interface configuration or data interface configuration |
getSection | Return coder.dictionary.Section object that represents Embedded
Coder Dictionary section |
getSections | Return coder.dictionary.Section objects of an Embedded Coder
Dictionary |
getDictionaryDefault | Return default service for service interface section or default property value for data interface category |
setDictionaryDefault | Set default service for service interface section or default property value for data interface category |
loadPackage | Load package of code definitions into Embedded Coder Dictionary |
unloadPackage | Unload package of code definitions from Embedded Coder Dictionary |
getLoadedPackages | Return code definition packages loaded into Embedded Coder Dictionary |
refreshPackage | Refresh package definitions in Embedded Coder Dictionary |
resetToDefault | Restore Embedded Coder Dictionary to default state |
get | Get property value of Embedded Coder Dictionary with service interface configuration |
set | Set property value for Embedded Coder Dictionary with service interface configuration |
valid | Determine whether coder.Dictionary object represents a valid
Embedded Coder Dictionary |
empty | Embedded Coder ディクショナリが空かどうかを判別 |
例
Simulink データ ディクショナリに Embedded Coder ディクショナリを作成
Embedded Coder ディクショナリを含めるデータ ディクショナリを作成します。
dataDictionary = Simulink.data.dictionary.create("DataDictionary.sldd");
データ ディクショナリに Embedded Coder ディクショナリを作成し、coder.Dictionary
オブジェクトを使用して 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]
Embedded Coder ディクショナリには 3 つの coder.dictionary.Section
オブジェクトが含まれており、それぞれがディクショナリのセクションを表します。
サービス インターフェイス構成の作成
Embedded Coder ディクショナリを含めるデータ ディクショナリを作成します。
dataDictionary = Simulink.data.dictionary.create("DataDictionary.sldd");
データ ディクショナリに Embedded Coder ディクショナリを作成し、coder.Dictionary
オブジェクトを使用して Embedded Coder ディクショナリを表します。インターフェイス構成タイプをサービス インターフェイスとして指定します。
coderDictionary = coder.dictionary.create(dataDictionary,"ServiceInterface")
coderDictionary = Dictionary with properties and Sections: ServicesHeaderFileName: 'services.h' InitTermFunctions: [1×1 coder.dictionary.Section] PeriodicAperiodicFunctions: [1×1 coder.dictionary.Section] DataReceiverInterfaces: [1×1 coder.dictionary.Section] DataSenderInterfaces: [1×1 coder.dictionary.Section] DataTransferInterfaces: [1×1 coder.dictionary.Section] TimerInterfaces: [1×1 coder.dictionary.Section] ParameterTuningInterfaces: [1×1 coder.dictionary.Section] ParameterArgumentTuningInterfaces: [1×1 coder.dictionary.Section] MeasurementInterfaces: [1×1 coder.dictionary.Section] SubcomponentInitTermFunctions: [1×1 coder.dictionary.Section] SubcomponentPeriodicAperiodicFunctions: [1×1 coder.dictionary.Section] SharedUtilityFunctions: [1×1 coder.dictionary.Section] InternalData: [1×1 coder.dictionary.Section] Constants: [1×1 coder.dictionary.Section] StorageClasses: [1×1 coder.dictionary.Section] DataMemorySections: [1×1 coder.dictionary.Section] FunctionMemorySections: [1×1 coder.dictionary.Section]
Embedded Coder ディクショナリには coder.dictionary.Section
オブジェクトが含まれています。このオブジェクトのそれぞれが、ディクショナリのサービス インターフェイス、関数、またはコード定義のカテゴリを表します。
バージョン履歴
R2019b で導入R2024a: ディクショナリの既定値としての Not measured および Not tunable
コーダー ディクショナリの MeasurementInterfaces
セクションの既定値として "Not measured"
を指定できるようになりました。また、ディクショナリの ParameterTuningInterfaces
および ParameterArgumentTuningInterfaces
セクションの既定値として "Not tunable"
を指定できるようになりました。"Not measured"
および "Not tunable"
エントリがディクショナリに含まれており、新しく作成されたディクショナリの既定値として事前選択されます。これらのセクションのディクショナリの既定として他のエントリを選択できますが、これらのエントリをディクショナリから削除することはできません。
R2024a: サービス インターフェイス ディクショナリ セクションの変更
新しいディクショナリ セクションとして
Constants
とInternalData
が追加されています。ディクショナリ セクション
SubcomponentInitTermFunctions
およびSubcomponentPeriodicAperiodicFunctions
により、セクションSubcomponentEntryFunctions
が置き換えられています。
R2023b: サービス インターフェイス構成のサポート
サービス インターフェイス構成を使用する Embedded Coder ディクショナリの coder.Dictionary
オブジェクトにアクセスします。以前は、データ インターフェイス構成を使用する Embedded Coder ディクショナリの coder.Dictionary
オブジェクトにのみアクセスできました。現在は、両方のインターフェイス構成タイプのディクショナリが coder.Dictionary
クラスでサポートされています。
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)