"Error occurred during model compile" appears every second time I try to run Simulink model

7 Ansichten (letzte 30 Tage)
Hello,
I am working with MATLAB/Simulink 2018b.
I get the error: "Error occurred during model compile." everytime I make a change to the code and try to run the model.
BUT, if I ignore it and try running it again, without making even one single change, there is no error and the model runs.
It is very annoying. What could be the reason? How do I stop it from happening again?
  2 Kommentare
Xiaowu Xhang
Xiaowu Xhang am 6 Mär. 2020
I have exactly the same problem. It happens when I saved my Simulink model from 2018b to a model that is compatible with older Matlab versions. I was running ModeFrontier which runs Matlab in background in a server, for the first few hundred runs, most simulation were fine. But such error became more and more frequent for latest runs. To me it looks like a memory problem since I have a lot of Matlab (with two different versions) running in background.
Srimouli Rukmabhatla
Srimouli Rukmabhatla am 27 Mär. 2020
Hi Lakshmi,
Can You Please attach the module and screenshot of an error.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by