加速仿真
要运行有助于表征混合动态系统模型行为的仿真,请在您的开发计算机上编译针对非实时仿真进行高度优化的可执行程序。要编译可执行程序,请将代码生成器配置为使用 RSim (rsim.tlc
) 系统目标文件。生成代码的速度非常适合批量模拟或蒙特卡罗模拟。
注意
快速仿真 (RSim) 系统目标文件 (rsim.tlc
) 将在以后的版本中删除。
要加速仿真,请使用 Simulink® 快速加速仿真模式。快速加速仿真模式提供与 RSim 系统目标文件相同的功能,但更易于使用。请参阅设计模型以实现有效加速。
要在 MATLAB® 和 Simulink 环境之外部署独立仿真,请使用 Simulink Compiler™。Simulink Compiler 为编译和共享作为独立可执行文件的仿真提供即交即用式解决方案,这些独立的可执行文件将编译的 Simulink 模型与用于设置、运行和分析模型仿真的 MATLAB 代码打包在一起。请参阅Comparing Simulink Coder and Simulink Compiler (Simulink Compiler) (Simulink Compiler)。
函数
rsimgetrtp | Global model parameter structure |
rsimsetrtpparam | Set parameters of rtP model parameter structure |
主题
- Accelerate, Refine, and Test Hybrid Dynamic System on Host Computer by Using RSim System Target File
Accelerate simulation of a model in nonreal-time on your development computer.
- 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.