Why doesn't Simulink run in rapid accelerator mode when I make minor changes in my model?

6 次查看(过去 30 天)
I have a Simulink model consisting of some built-in blocks for 3 electric drives (battery, inverter, ac motor). The simulation takes a lot of time to run, so I'd like to use the rapid accelerator. The problem is that rapid accelerator works fine for one run, and then when I make minor changes such as commenting out a scope or changing some frequency in a block or changing the sample time step in my discrete powergui, it just won't work. I've tried this on two different computers and couldn't find out why this keeps happening. It doesn't happen all the time, but most of the time. It seems to be very random. A change that wouldn't work with the rapid accelerator mode yesterday works today. How can I solve this problem?
I'm on Matlab 2018a. Here is the error message:
### Build procedure for model: 'modelA' aborted due to an error. Failed to build model 'modelA' 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: Error(s) encountered while building "modelA"

采纳的回答

Swati Lodha
Swati Lodha 2018-6-5
It seems like a compiler issue. Do the following:
1. MEX setup using the following command in MATLAB command window:
>> mex -setup
2. Install MinGW64 for Windows(for MATLAB18a) and set the correct path.
3. In Model Configuration Parameters dialog box, ensure that default option " Automatically locate an installed toolchain" is selected for Code Generation ->Toolchain under Toolchain settings.
  4 个评论
Daniel Sadono
Daniel Sadono 2021-9-23
@swenia have you solved the problem? I encountered the same problem, though I already installed MINGW64, it didn't work as well @Swati Lodha

请先登录,再进行评论。

更多回答(0 个)

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by