Why does MATLAB seem to quit once my Simulink model code is compiled?
9 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2023-8-4
回答: MathWorks Support Team
2023-8-28
I'm running MATLAB R2023a with Windows 10, and I seem to be running into an issue where MATLAB just closes without warning once my Simulink model is done compiling. I thought it was a crash, and so I have looked for the crash dump files and even used the MATLAB command
dir(fullfile(tempdir,'prefix.*.*'))
but I couldn't find any files / the command gave me an error. Why would this be happening? Is this a crash or a different problem?
采纳的回答
MathWorks Support Team
2023-8-4
This issue is not a crash. Rather, this is an issue that lies within the compiler being used. Please run the following command in the MATLAB Command Window:
mex -setup
The output should tell you which C compiler is being used.
If no compiler has been installed, then Local C Compiler (LCC) is used. If this is the case, it may cause the MATLAB window to close. LCC is a free compiler that ships with MATLAB in cases where users might not have a compiler already installed, i.e. Microsoft Visual C++.
LCC is currently undergoing a deprecation process. A deprecation statement has been included in the 23a release notes and it will not shipped in a future release.
For a list of supported compilers in version 23a, please refer to the following link:
Note, the following products include lcc-win64 (the LCC mentioned above) when installed:
Simulink, MATLAB Coder, SimBiology, Fixed-Point Designer, HDL Coder, HDL Verifier, Stateflow, Simulink Coder, and Embedded Coder. This compiler is no longer supported and will be removed in a future release of MATLAB and Simulink. MathWorks recommends you install one of the other compilers listed on this page when using these products.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!