How can I avoid CPU overloads with Simulink Real-Time & Speedgoat when using "loadParamSet"?

10 views (last 30 days)

I am experiencing CPU overruns with my Simulink Real-Time (SLRT) target computer when loading a large parameter set file of about 100 MB with "loadParamSet". Do you have any suggestions on how to avoid this?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 11 May 2025
To prevent CPU overloads when using "loadParamSet", you can try the following:
  1. Change the 'Default parameter behavior' configuration to 'Inlined'.
  2. Manually mark only the parameters you intend to change as tunable, following the "Configure Model to Tune Inlined Parameters" guide: https://www.mathworks.com/help/slrealtime/ug/tune-inlined-parameters-with-simulink-real-time-explorer.html#d126e8485
  3. Verify the tunable parameters using the SLRT Explorer.
  4. Recreate the parameter set for the new application, ensuring the file size is minimized. These steps have proven effective in reducing the parameter set size and eliminating overruns, allowing for real-time loading without issues.

More Answers (0)

Categories

Find more on Multicore Processor Targets in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!