Compiler error / Model building fails in Rapid Accelerator Mode
42 次查看(过去 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 中查找有关 Manage Products 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!