Turn off compile mode
43 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I use Model([], [], [], 'compile') to set the model in compile mode before computing some checksums. After receiving the checksums I want to close the model but I get an error that the model can't be closed since it is being compiled.
How do I turn off the compile mode?
0 件のコメント
採用された回答
Kaustubha Govind
2012 年 2 月 21 日
Run the following command to terminate simulation:
>> model([], [], [], 'term')
1 件のコメント
Joe
2017 年 10 月 4 日
One additional suggestion... if you ever find yourself in a situation where
model([], [], [], 'term')
does not work because Simulink "defers" the termination and you're stuck... Try the following,
set_param(gcs, 'SimulationCommand', 'stop')
その他の回答 (1 件)
Lukas
2018 年 9 月 21 日
If the above commands doesn't help and you still see:
model([],[],[],'term')
Warning: Termination of 'model' deferred
then just try to execute model([],[],[],'term') multiple times.
I think this helps in case model had been compiled multiple times without terminating it. For example during debugging of a function that does this.
2 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!