Simulink crashes very often during normal work

23 Ansichten (letzte 30 Tage)
Eirik Nordeng
Eirik Nordeng am 21 Nov. 2023
Bearbeitet: Fangjun Jiang am 22 Nov. 2023
I am using Simulink to design a digital system for an FPGA. After fixed-point conversion, I intend to use HDL Coder for generating VHDL code. However, at this point, I am unable to continue with the development as Simulink crashes at least evert five minutes. The model I am currently working on has a lot of interconnects and a relatively complex structure with several nested submodules. We also use variant submodules and library modules.
The following occurs:
  1. Simulink functions as expected. I am writing annotations in the model.
  2. Simulink freezes. After a few seconds, the window is greyed out and the window is marked as "Not Responding"
  3. The MATLAB GUI is still responsive, so I type in the 'ver' command. The Command window provides no feedback.
  4. I try to close MATLAB and Simulink, but nothing happens.
  5. I end the task using Windows Task Manager. (Matlab is using 2261 MB of memory)
  6. I open MATLAB again with no issues.
At this point, I do not know how to proceed. Is there for example a crash report that can help me out?
Output from 'ver' command:
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.11.0.1769968 (R2021b)
Operating System: Microsoft Windows 10 Enterprise Version 10.0 (Build 19041)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.11 (R2021b)
Simulink Version 10.4 (R2021b)
Communications Toolbox Version 7.6 (R2021b)
DSP System Toolbox Version 9.13 (R2021b)
Fixed-Point Designer Version 7.3 (R2021b)
HDL Coder Version 3.19 (R2021b)
MATLAB Coder Version 5.3 (R2021b)
Signal Processing Toolbox Version 8.7 (R2021b)
  5 Kommentare
Eirik Nordeng
Eirik Nordeng am 22 Nov. 2023
Freezing appears to never occur by simply keeping the model open.
Updating the model does not directly cause Simulink to freeze.
The CPU load is low both before, after and during the crash.I do not think this is a temperature issue.
Yesterday, after making a copy of the model, I was able to work for a long period without crashes. However, Simulink crashed after about five minutes of work today. As before, it happened when I double-clicked the model to create an annotation. Note that crashes also occur when performing other simple actions.
Eirik Nordeng
Eirik Nordeng am 22 Nov. 2023
I just had my colleague check if the same occurs with his computer. He sees the same issue. While clicking around in the model, Simulink sudenly freezes.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Fangjun Jiang
Fangjun Jiang am 22 Nov. 2023
Bearbeitet: Fangjun Jiang am 22 Nov. 2023
It seems like a Simulink issue due to software bug or system/installation. You can further check to see if the same problem happens on any other simple/example model.
One thing to try is to update to the latest update patch. For R2021b, the latest patch is "Update 7". You can do that by clicking the bell icon at the top right corner of the MATLAB window. After that, you will see output of "ver" similar as below.
MATLAB Version: 9.11.0.2207237 (R2021b) Update 6

Kategorien

Mehr zu Code Generation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by