User`s guide
From Wave Device
5-220
length, the frame size, and the speed of the simulation. Note that increasing
the buffer size may increase model latency.
•Increase the simulation throughput rate
Two useful methods for improving simulation throughput rates are
increasing the signal frame size and compiling the simulation into native
code:
- Increase frame sizes (and convert sample-based signals to frame-based
signals) throughout the model to reduce the amount of block-to-block
communication overhead. This can drastically increase throughput rates
in many cases. However, larger frame sizes generally result in greater
model latency due to initial buffering operations.
- Generate executable code with Real Time Workshop. Native code runs
much faster than Simulink, and should provide rates adequate for
real-time audio processing.
More general ways to improve throughput rates include simplifying the model,
and running the simulation on a faster PC processor. See “Delay and Latency”
on page 3-85 of this book, and “Improving Simulation Performance and
Accuracy” in the Simulink documentation, for other ideas on improving
simulation performance.
Dialog Box