MATLAB Answers

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

조회 수: 113(최근 30일)
Anuj Patil
Anuj Patil 2018년 6월 28일
답변: Guy Rouleau 2020년 10월 8일
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
Michal Semonský
Michal Semonský 2020년 7월 4일
would this command help?
set_param(gcs, 'SimulationCommand', 'stop')

댓글을 달려면 로그인하십시오.

답변(1개)

Guy Rouleau
Guy Rouleau 2020년 10월 8일
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

Community Treasure Hunt

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

Start Hunting!

Translated by