このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
生成されたコードのインターフェイス
C API インターフェイスとコード記述子インターフェイスを使用して、生成されたコードと外部アプリケーション コードの間でデータを交換する
一部のアプリケーションでは、生成されたコードと外部アプリケーション コード間でデータを交換する必要があります。MATLAB コード記述子 API を使用して、生成されたコードに関するメタデータを取得します。C API を使用して、実行時に生成されたコードとのインターフェイスとし、ターゲット プラットフォームでのモデル コードの実行中にモデル要素を監視および調整します。
クラス
関数
トピック
C API インターフェイス
- Get Started with C API
Learn the principles of using C API to interact with the generated model code.
- Configure Model to Generate C API Code
Learn how to configure your model to include different types of C API elements in the generated code.
- Write External Code to Access Generated C API Code
Learn how to write external code that can access generated C API code elements.
- Use C API to Monitor and Tune Generated Model Code
Learn the details about how to use the C API to monitor and tune model elements.
- ステップ 1: Explore Measurable and Tunable Model Elements
- ステップ 2: Configure Model to Add C API Signals in Code Generation
- ステップ 3: Write Code to Interact with Generated C API Signal Code
- ステップ 4: Interact with C API Signal Code Throughout Execution
- ステップ 5: Write Code to Interact with Generated C API Signal and Parameter Code
- ステップ 6: Use Custom Monitor to Measure and Tune Model Elements in Real Time
コード記述子インターフェイス
- 生成コードに関するコード説明の取得
生成コードに関するメタデータを取得する。 - 入力端子構造体の生成された型と名前の取得
生成コード内の入力端子構造体に関するメタデータを取得する。 - Get Metadata About Test Points and Logged Signals in Generated Code
Retrieve metadata for test points and logged signals in generated code.