Compiler error / Model building fails in Rapid Accelerator Mode
28 ビュー (過去 30 日間)
古いコメントを表示
When trying to run my Simulink model (Name: "simulation") in Rapid Accelerator Mode, the building procedure is aborted and the following error is issued:
"Failed to build model 'simulation' using LCC in rapid accelerator mode, please consider using a different compiler instead. For details on supported compiler versions, see http://www.mathworks.com/support/compilers/current_release
Caused by: Building host-based CAPI for 'simulation' failed. Line 1: Keyword expectedcannot open output file "W:\Projekte\alternative.dll:"
Does this mean there is no working Compiler installed on my PC? I am asking because I cannot make sense of the second part of the error message.
Using R2015b.
0 件のコメント
回答 (2 件)
Vishal Neelagiri
2017 年 1 月 16 日
The error message means that MATLAB is currently using the 'LCC' compiler to build the model and there seems to be some issue opening the DLL file mentioned.
If you refer to the supported compilers page, https://www.mathworks.com/support/compilers.html, you can see that LCC compiler is supported for Rapid Accelerator mode but not for S-function compilation. You can check your model if there are any S-function blocks.
You can also install any of the supported compilers like Microsoft Visual Studio and then use the following command to use change the compiler that MATLAB uses:
mex -setup
You might find these 2 links useful:
https://www.mathworks.com/matlabcentral/answers/228637-problem-of-using-rapid-accelerator-in-simulink
0 件のコメント
Laís de Oliveira Assis
2020 年 4 月 2 日
I've changed the folder where the temporary file is saved (in C:) and it worked.
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!