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

7 ビュー (過去 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 件のコメント
Wasiela Harris
Wasiela Harris 2019 年 5 月 11 日
what if you are using a macbook?
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