Simulink - Low Preformance after Simulation

2 visualizzazioni (ultimi 30 giorni)
Maik Friese
Maik Friese il 1 Nov 2021
Modificato: Simar il 16 Mag 2024
Hello Community,
I have a big Simulink - Model with estimated 1000 Inputs and 2000 Outputs. The work with Simulink is delayed but acceptable. After Simulation, the Preformance of Simulink is very delayed. Working is not acceptable anymore. The CPU and GPU capacity are far away from 100%.
Please, it's possible the gain the Simulink Preformance before Simulation?
Best Regards
Maik

Risposte (1)

Simar
Simar il 16 Mag 2024
Modificato: Simar il 16 Mag 2024
Hi Maik,
I understand that you are facing issues with a large Simulink model, especially after simulations, despite low CPU and GPU usage and are seeking advice on improving Simulink's performance before simulation. To enhance performance for large models, consider these streamlined strategies:
  • Model Structure: Break down the large model into smaller subsystems using Model Referencing for more efficient processing.
  • Solver Settings: Opt for Fixed-Step Solvers as they offer better performance compared to variable-step solvers. Also try adjusting Step Size as a larger step size can speed up simulations.
  • Execution Efficiency: Employ Accelerator and Rapid Accelerator modes to compile parts of the model to machine code, speeding up execution.
  • Data Handling: Log only essential signals and use efficient formats like the dataset logging format. For frequently adjusted parameters, use real-time tuning methods to avoid recompiling the entire model.
  • Computational Resources: Can use "Parallel Computing Toolbox" for running simulations in parallel.
  • Optimization Tools: Use "Simulink Profiler" to Identify and address bottlenecks in model execution
Applying these focused strategies can significantly improve the handling and performance of large Simulink models, making simulation tasks more efficient.
Please refer to the following documentation links
Hope it helps!
Best Regards,
Simar

Categorie

Scopri di più su Multicore Processor Targets in Help Center e File Exchange

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by