Simulation Pace
Set simulation rate for animation viewing
Libraries:
Aerospace Blockset /
Animation /
Animation Support Utilities
Description
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.
Tip
The Simulation Pace block:
Does not produce deployable code.
Is not supported in referenced models for simulation in accelerator or rapid accelerator mode. To slow down the simulation in these modes, in the Simulation tab of the Simulink® Editor toolstrip, select Run > Simulation Pacing.
Ports
Output
Parameters
Algorithms
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.