Is there a way to stop compiling process when the model has started to compile in Simulink?
Mostra commenti meno recenti
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 Commenti
Sameer Gadekar
il 10 Feb 2020
Did you find solution for this?
Charles Collins
il 6 Giu 2020
The million dollar question, and all quiet here.
Michal Semonský
il 4 Lug 2020
would this command help?
set_param(gcs, 'SimulationCommand', 'stop')
Risposte (2)
Lev Vitkin
il 26 Gen 2022
2 voti
try
eval([bdroot '([],[],[],''term'')'])
1 Commento
Li Dang
il 22 Ago 2022
This works for me, thanks!
Guy Rouleau
il 8 Ott 2020
1 voto
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
6 Commenti
Guy Rouleau
il 26 Gen 2022
Modificato: Guy Rouleau
il 26 Gen 2022
In the latest version we added a "Cancel" button on the status bar that can interrupt model compilation.
Sohil Shrestha
il 18 Mag 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
il 18 Mag 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
Matthew
il 8 Lug 2024
Did the issue of being able to interrupt the compilation ever get resolved?
Guy Rouleau
il 8 Lug 2024
Since a few releases, a "Cancel" button shows up at the bottom of the model to interrupt model compilation:

Ghizlane
il 18 Lug 2024
i can't see the cancel boutton should i do an update ? and how ? thank you
Categorie
Scopri di più su MATLAB Support Package for Raspberry Pi Hardware in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!