필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
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.

답변 (1개)

Ashutosh Thakur
Ashutosh Thakur 2024년 1월 22일
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.

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by