Using the Simout data from a simulink model is causing my computer to freeze

3 vues (au cours des 30 derniers jours)
Hoban Carney
Hoban Carney le 30 Avr 2022
Follow up from my last question. I'm trying to model how a solar sail could make a small spacecraft reach escape velocity from LEO, and so far I have a model of the earth, sun, and the spacecraft. I want to be able to plot the paths of all of these though, and was following a matlab tutorial similar to mine. I did get this to run for a bit, but now when I run it MATLAB freezes up.

Réponses (1)

Ashutosh Thakur
Ashutosh Thakur le 22 Jan 2024
Hi Hoban,
The MATLAB application can get freezed during a Simulation due to variety of issues. Please try to follow the steps mentioned below in order to troubleshoot this issue:
  • Check the Model for any presence of the Algebraic Loop in the model, you can use Diagnostics pane of the Model Configuration Parameters and set the Algebraic Loop parameter as "error", to show error if any Algebraic Loop is detected in the model.
  • If your model generates the data which is of variable size, it is better to preallocate their size with the maximum limit such that computation would not be spent on resizing these variables.
  • Try to use MATLAB Profiler or Simulink Profiler to find the bottlenecks present in the system and try to resolve them.
  • Also try to plot the Simulation data in steps or in certain intervals such that MATLAB does not get overloaded with huge data.
  • You can also try to increase the memory limit as MATLAB can get freezed due to lack of memory present for its operations.
Kindly take reference of the following documentation links and example which would help you in implementing the above mentioned troubleshooting steps:
I hope this would help you in resolving the issues related to MATLAB application getting freezed during Simulation.

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by