Is there a way to stop compiling process when the model has started to compile in Simulink?

97 visualizaciones (últimos 30 días)
I am running Simulink with Raspberry Pi and when I had hit RUN button, I realized that the model had some errors, but couldn't find any option to TERMINATE THE COMPILATION PROCESS
Either I'd have to wait 20 minutes for the compilation process to complete or restart MATLAB.
I had to chose the 2nd one.
  3 comentarios

Iniciar sesión para comentar.

Respuestas (2)

Lev Vitkin
Lev Vitkin el 26 de En. de 2022
try
eval([bdroot '([],[],[],''term'')'])

Guy Rouleau
Guy Rouleau el 8 de Oct. de 2020
In MATLAB R2020b and before, there is no way to interrupt the model compilation.
We are aware that this is a common pain point and are working on a solution to address it. It should soon be possible ot interrupt the model compilation.
Thanks,
Guy
  3 comentarios
Sohil Shrestha
Sohil Shrestha el 18 de Mayo de 2023
Is there a way to programmatically achieve this?
Basically probe a thread that is compiling to check if it has finished compiling, (if it is not, say taking too long to compile), interupt it and move on.
Sohil Shrestha
Sohil Shrestha el 18 de Mayo de 2023
Compiling it as follows:
Is there a programmatic way to detect and interrupt the compilation?
slreportgen.utils.compileModel(model)
compiles = slreportgen.utils.isModelCompiled(model);
if compiles
slreportgen.utils.uncompileModel(model);
end

Iniciar sesión para comentar.

Categorías

Más información sobre Raspberry Pi Hardware en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by