MATLAB: Are there spikes in the Simulink Real-Time TET log

Simulink Real-Timetargettetxpc

Why are there spikes in the Simulink Real-Time Task Execution Time (TET) log?

Best Answer

Here is a list of factors known to cause spikes in the task execution time:
  1. BIOS Power save options are enabled
  2. BIOS Legacy USB controllers are enabled
  3. Using the Simulink Real-Time Graphical interface
  4. System Management Interrupts (SMI)
  5. Cache misses when loading states into memory at the beginning of model execution
  6. Cache misses when background tasks move lots of data
To eliminate the spikes in the Simulink Real-Time TET log, please do the following:
  1. Turn the Power save option in the BIOS off
  2. Turn USB Controllers off
  3. Use text mode rather than Simulink Real-Time Graphical interface
  4. To ensure best performance, confirm that the custom target computer BIOS settings match those specified in the Simulink Real-Time documentation. Note that real-time target machines provided by Speedgoat (exclusively supported with Simulink Real-Time since R2018a) are already configured and optimized to minimize and eliminate these BIOS effects.