Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
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.

Risposte (1)

Ashutosh Thakur
Ashutosh Thakur il 22 Gen 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.

Categorie

Scopri di più su Programmatic Model Editing in Help Center e File Exchange

Prodotti


Release

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by