Set simulation rate for animation viewing
Aerospace Blockset / Animation / Animation Support Utilities
The Simulation Pace block lets you run model simulation at a slower pace so that you can comfortably view connected animations and understand and observe the system behavior. Visualizing simulations at a slower rate makes it easier to understand underlying system design, identify design issues and demonstrate near real-time behavior. You can view the results and inspect your system while the simulation is in progress.
Use this block in scenarios where one simulation-second is completed in a few wall clock time milliseconds.
When configuring this block, also consider the block sample time, which affects the simulation pace. The default is 1/30th of a second, which corresponds to a 30 frames-per-second visualization rate (typical for desktop computers). For more information, see Sample time.
To use this block:
Set the model solver to Fixed-step
.
Use a discrete sample time.
This block does not produce deployable code.
The simulation pace is implemented by putting the entire MATLAB thread to sleep until it must run again to keep up the pace. The Simulink software is single threaded and runs on the one MATLAB thread, so only one Simulation Pace block can be active at a time.