Main Content

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

検証

MATLAB® コードと生成されたコード間の数値的等価性の表示

ソフトウェアインザループ (SIL) とプロセッサインザループ (PIL) 実行を使用して、MATLAB 関数から生成したコードの数値的動作をチェックします。ソフトウェアインザループ (SIL) 実行は生成されたソース コードをコンパイルし、そのコードを個別のプロセスとして開発用コンピューターで実行します。ターゲット接続構成を必要とする PIL 実行は生成されたソース コードをクロスコンパイルし、ターゲット ハードウェア上でオブジェクト コードをダウンロードして実行します。数値的動作は SIL または PIL 実行の結果を元の MATLAB 関数の結果と比較することで検証できます。

トレース可能なコードを生成すると、意図しない機能が存在しないことを確認し、生成済みコードがアルゴリズムを実装する方法を理解し、生成済みコードの品質を評価するのに役立ちます。

オブジェクト

すべて展開する

rtw.connectivity.ComponentArgs各ターゲット接続性コンポーネントのパラメーターを提供
rtw.connectivity.ConfigDefine connectivity implementation that comprises builder, launcher, and communicator components
rtw.connectivity.ConfigRegistryRegister connectivity configuration
rtw.connectivity.LauncherControl downloading, starting, and resetting of a target application
rtw.connectivity.MakefileBuilderConfigure toolchain-based build process
rtw.connectivity.RtIOStreamHostCommunicatorConfigure development computer communications with target processor
rtw.pil.RtIOStreamApplicationFrameworkConfigure target-side communications
coder.EmbeddedCodeConfigEmbedded CoderMATLAB コードから C/C++ コードを生成するための構成パラメーター

関数

すべて展開する

instrumentCodeAdd instrumentation to generated code to perform execution time / memory usage profiling and analyze code coverage (R2023a 以降)
getCodeCoverageDataExtract coverage data for generated C/C++ code and custom C/C++ code (MATLAB code generation) (R2023a 以降)
coder.hardwareMATLAB コードから C/C++ コードを生成するためのハードウェア ボード構成オブジェクトの作成
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 MATLAB PIL execution

トピック

SIL と PIL テスト

コードのトレース

Polyspace 検証

レポート生成