Main Content

Simulink Performance Improvements

Performance improvements can help you achieve real-time execution. These adjustments suggest ways you can improve the performance of your SDR radio model.

Acceleration

When using Simulink®, run your application in accelerator or rapid accelerator mode instead of normal mode. Some scope blocks do not plot data when run in rapid accelerator mode.

When you use accelerator or rapid accelerator mode, on the Model Configuration Parameters dialog box, search for Compiler optimization level, then set the parameter value to Optimizations on (faster runs).

Model Tuning

  • Use frame-based processing. With frame-based processing, the model processes multiple samples during a single execution call to a block. Consider using frame sizes from roughly 100 to several thousand.

  • In Model Configuration Parameters > Data Import/Export, turn off all logging.

  • Make your model single rate. If the model requires resampling, then choose rational coefficients that keep the model single rate.

  • Do not add any Buffer blocks to the model. Create convenient frame sizes in your data sources. Buffer blocks typically degrade performance.

  • Avoid feedback loops. Typically, such loops imply scalar processing, which slows down the model considerably.

  • Avoid using scopes. To visualize your data, send it to a workspace variable and postprocess it.

  • If your model has Constant blocks with values that do not change during simulation, make sure that the sample time is set to inf (default).