メインコンテンツ

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

プロセッサインザループ シミュレーション

ターゲット プロセッサまたはシミュレーター上で生成コードをテスト

プロセッサインザループ (PIL) シミュレーションは、生成されたソース コードをクロスコンパイルしてから、ターゲット ハードウェア上にオブジェクト コードをダウンロードして実行します。ノーマル モードのシミュレーション結果と PIL シミュレーション結果を比較することで、モデルと生成されたコードの数値的等価性をテストできます。PIL シミュレーション中に、生成されたコードのコード カバレッジ メトリクスと実行時間メトリクスを収集できます。

PIL シミュレーションには接続構成が必要です。

アプリ

SIL/PIL マネージャー生成されたコードの検証

名前空間

targetターゲット ハードウェア情報とビルド ツール情報の管理

クラス

すべて展開する

target.AddOnターゲット タイプのアドオン プロパティを記述
target.APIAPI の詳細を記述
target.APIImplementationAPI 実装の詳細を記述
target.Boardハードウェア ボードの詳細を提供
target.BuildDependenciesC および C++ ビルドの依存関係を記述し、ターゲット ハードウェアと関連付け
target.CommunicationChannel通信チャネルのプロパティを記述
target.CommunicationInterfaceターゲット ハードウェアのデータ I/O の詳細を記述
target.CommunicationProtocolStack通信プロトコル パラメーターを記述
target.Connectionターゲット接続プロパティの基底クラス
target.ConnectionPropertiesターゲット固有の接続プロパティを記述
target.MainFunctionターゲット ハードウェア アプリケーションの main 関数の C および C++ 依存関係を提供
target.PILProtocolターゲット ハードウェアの PIL プロトコル実装を記述
target.Portターゲット ハードウェアのポートを経由する接続の記述 (R2021a 以降)
target.PortConnectionターゲットの接続端子について記述
target.Processorターゲット プロセッサ情報の提供
target.RS232Channelシリアル通信チャネルを記述
target.TargetConnectionターゲット ハードウェアへの MATLAB コンピューターの接続に関する詳細を提供
target.TCPChannelTCP 通信のプロパティを記述
target.Toolsターゲット ハードウェア用のツールのプロパティの記述
target.UDPChannelUDP 通信について記述
target.ApplicationStatusターゲット ハードウェアでのアプリケーションのステータスを記述する (R2021a 以降)
target.Breakpoint デバッガーに関するブレークポイントの詳細を提供する (R2021a 以降)
target.DebugExecutionToolProvide MATLAB service interface for debugger to manage processes on target hardware (R2023a 以降)
target.DebugIOToolバイト ストリームの I/O ツールのサービス インターフェイスをデバッグする (R2021a 以降)
target.ExecutionServiceターゲット アプリケーションに関する実行サービスの実装を記述する (R2021a 以降)
target.ExecutionToolターゲット ハードウェア上でのアプリケーション実行を管理するツール用の MATLAB サービス インターフェイス (R2021a 以降)
target.MATLABDependenciesMATLAB クラスと関数の依存関係の記述 (R2021a 以降)
target.ApplicationExecutionToolMATLAB コンピューターからアプリケーションを実行するためのシステム コマンド情報を取得
target.CommandMATLAB コンピューター上で実行するためのシステム コマンドを取得
target.HostProcessExecutionToolMATLAB コンピューターからターゲット アプリケーションを実行するためのシステム コマンド情報を取得
target.SystemCommandExecutionToolMATLAB コンピューターからターゲット アプリケーションを実行するためのシステム コマンド情報を取得
target.Function関数シグネチャの情報を提供
target.Timerプロセッサのタイマーの詳細を提供する

オブジェクト

すべて展開する

rtw.connectivity.ComponentArgs各ターゲット接続性コンポーネントのパラメーターを提供
rtw.connectivity.ConfigDefine connectivity implementation that comprises builder, launcher, and communicator components
rtw.connectivity.ConfigRegistryRegister connectivity configuration
rtw.connectivity.MakefileBuilderConfigure toolchain-based build process
rtw.connectivity.LauncherControl downloading, starting, and resetting of a target application
rtw.connectivity.RtIOStreamHostCommunicatorConfigure development computer communications with target processor
rtw.pil.RtIOStreamApplicationFrameworkConfigure target-side communications

関数

すべて展開する

rtIOStreamCloseShut down communications channel
rtIOStreamOpen通信チャネルを初期化
rtIOStreamRecvReceive data through communication channel
rtIOStreamSendSend data through communication channel
rtiostreamtestカスタム rtiostream インターフェイスの実装をテストする
rtiostream_wrapperTest rtiostream shared library functions in MATLAB
piltestVerify custom target connectivity configuration for Simulink PIL simulation

トピック

トラブルシューティング

SIL または PIL のシミュレーション中における生成コードのデバッグ

デバッガーを使用して生成コードの動作を把握。

View SIL and PIL Files in Code Generation Report

Produce a code generation report and static code metrics that cover SIL and PIL files.

Verification of Code Generation Assumptions

The SIL or PIL simulation checks code generation assumptions.

注目の例