MATLAB Answers

Compiler error / Model building fails in Rapid Accelerator Mode

96 views (last 30 days)
Frederik Seeger
Frederik Seeger on 11 Jan 2017
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 Comments

Sign in to comment.

Answers (2)

Vishal Neelagiri
Vishal Neelagiri on 16 Jan 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 Comments

Sign in to comment.


Laís de Oliveira Assis
Laís de Oliveira Assis on 2 Apr 2020
I've changed the folder where the temporary file is saved (in C:) and it worked.

  0 Comments

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!