Multi-rate simulation

A general implementation of a multi-rate simulation can be set up by creating compound blocks that have their own local time step. The Local Time Step option provides a general implementation of multi-rate simulation. When the Local Time Step option is activated, you can specify the time step for the compound block. Each compound block can run at an arbitrary time step.

The following example demonstrates a multi-rate simulation. Here, separate simulation step sizes are specified and plotted for each subsystem: Slow System has a step size of 0.1, whereas Fast System has one of 0.01.

The Local Bounds option provides additional control of your subsystem simulations. When you activate both the Local Time Step option and the Use Local Bounds option, the iteration count of the subsystem is keyed to your local bounds. If, however, you activate the Local Time Step option but not the Local Bounds option, the iteration count of the subsystem is keyed to your global time step.