Matlab & Simulink crash at 2nd model run

6 ビュー (過去 30 日間)
Robin
Robin 2024 年 12 月 12 日
回答済み: Fangjun Jiang 2024 年 12 月 13 日
Hello everyone,
I am blocked on a weird issue I don't manage to solve
We are running a big model which embeds a lot of C code transformed in mex functions, with big buffers allocated on memory in the C code part (up to 20kB).
The first run of this model is perfect. But if I try to run it a second time, Simulink and Matlab crash, without explaining why. It crashes at the 3rd time if using a computer with more RAM (not sure it is relevant, just a note).
If someone could have a idea or an action to avoid this very painful behavior, I'd be very happy...
Thanks in advance

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2024 年 12 月 13 日
After first run, execute "clear mex" or "clear functions" in MATLAB Command Window to see if it makes a difference.

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by