Why does MATLAB seem to quit once my Simulink model code is compiled?
28 views (last 30 days)
Show older comments
MathWorks Support Team
on 4 Aug 2023
Answered: MathWorks Support Team
on 28 Aug 2023
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?
Accepted Answer
MathWorks Support Team
on 4 Aug 2023
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 Comments
More Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!