Compiler error / Model building fails in Rapid Accelerator Mode
43 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (2)
Vishal Neelagiri
il 16 Gen 2017
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 Commenti
Laís de Oliveira Assis
il 2 Apr 2020
I've changed the folder where the temporary file is saved (in C:) and it worked.
0 Commenti
Vedere anche
Categorie
Scopri di più su Manage Products in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!