このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
高速シミュレーション
ハイブリッド動的システムのモデル動作を特徴付けるのに役立つシミュレーションを実行するには、開発用コンピューターで非リアルタイム シミュレーション用に高度に最適化された実行可能プログラムをビルドします。実行可能プログラムをビルドするには、RSim (rsim.tlc
) システム ターゲット ファイルを使用するようにコード ジェネレーターを設定します。生成コードの速度は、バッチ シミュレーションまたはモンテ カルロ シミュレーションに適しています。
メモ
ラピッド シミュレーション (RSim) システム ターゲット ファイル (rsim.tlc
) は将来のリリースで削除されます。
シミュレーションを高速化するには、Simulink® ラピッド アクセラレータ シミュレーション モードを使用します。ラピッド アクセラレータ シミュレーション モードは RSim システム ターゲット ファイルと同じ機能を提供しますが、より簡単に使用できます。効果的に高速化するためのモデル設計を参照してください。
MATLAB® と Simulink 環境の外部でスタンドアロンのシミュレーションを展開するには、Simulink Compiler™ を使用します。Simulink Compiler は、スタンドアロンの実行可能ファイルとしてシミュレーションをビルドおよび共有するためのターンキー ソリューションを提供します。この実行可能ファイルは、モデルのシミュレーションを設定、実行、および解析する MATLAB コードを使用したコンパイル済み Simulink モデルをパッケージ化します。Comparing Simulink Coder and Simulink Compiler (Simulink Compiler) (Simulink Compiler) を参照してください。
関数
rsimgetrtp | モデルのグローバル パラメーター構造体 |
rsimsetrtpparam | rtP モデル パラメーター構造体のパラメーターを設定 |
トピック
- RSim システム ターゲット ファイルを使用したホスト コンピューターでのハイブリッド動的システムの高速化、調整およびテスト
開発用コンピューターでの非リアルタイムのモデルのシミュレーションを高速化します。
- Configure and Build Model for Rapid Simulation
Configure model for rapid simulation and initiate build process.
- Set Up Rapid Simulation Input Data
Approaches for setting up input data for rapid simulations.
- Use MAT-Files to Feed Data to Inport Blocks for Rapid Simulations
Read input data for rapid simulations from MAT-files.
- Create Scripts for Batch and Monte Carlo Simulations
Use scripts to run multiple simulations without overwriting simulation results.
- Run Rapid Simulations
Build a model once and run multiple simulations to study effects of parameter settings and input signals.
- Run Rapid Simulations over a Range of Parameter Values
How to run rapid simulations over a range of parameter values.
- Tune Parameters Interactively During Rapid Simulation
Options for tuning parameters interactively during rapid simulation.
- Run Batch Simulations Without Recompiling Generated Code
Modify input signal data and model parameters during batch simulations.
- Rapid Simulation Target Limitations
Limitations of the rapid simulation target.