Accelerated Simulation
To run simulations that help characterize the behavior of models of hybrid dynamic systems, build executable programs that are highly optimized for non-real-time simulation on your development computer. To build the executable programs, configure the code generator to use the RSim (rsim.tlc
) system target file. The speed of the generated code is goodfor batch or Monte Carlo simulations.
Functions
rsimgetrtp | Global model parameter structure |
rsimsetrtpparam | Set parameters of rtP model parameter structure |
Topics
- 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.
- Run Rapid Simulations Over a Range of Parameter Values
This example shows how to use the RSim system target file to run simulations over a range of parameter values.
- Run Batch Simulations Without Recompiling Generated Code
This example shows how to run batch simulations without recompiling the generated code.
- Use MAT-Files to Feed Data to Inport Blocks for Rapid Simulations
This example shows how the code generator RSim -i option lets you use a MAT-file as the input data source for Inport blocks for rapid simulations.