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!