Clear Filters
Clear Filters

Simulink accelerator mode error

6 views (last 30 days)
ck12345
ck12345 on 24 Jul 2017
Commented: ck12345 on 28 Jul 2017
I get the following error when I try to use the accelerator mode. The model works fine in the normal mode.
if true
### Generating code into build folder: C:\Users\chanditha\Dropbox\Research\Matlab\Simulink\DFIG\slprj\accel\DFIG
### Invoking Target Language Compiler on DFIG.rtw
### Using System Target File: C:\Program Files\MATLAB\R2017a\rtw\c\accel\accel.tlc
### Loading TLC function libraries
....
### Initial pass through model to cache user defined code
......
### Caching model source code
...............................................................................
.........
### Writing header file DFIG_acc.h
### Writing header file DFIG_acc_types.h
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing header file rt_zcfcn.h
.
### Writing source file rt_zcfcn.c
### Writing source file DFIG_acc.c
### Writing header file DFIG_acc_private.h
### Writing source file DFIG_acc_data.c
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
### Writing header file rt_defines.h
.
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
### TLC code generation complete.
### Using toolchain: MinGW64 v4.x | gmake (64-bit Windows)
### 'C:\Users\chanditha\Dropbox\Research\Matlab\Simulink\DFIG\slprj\accel\DFIG\DFIG.mk' is up to date
### Building 'DFIG': "C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f DFIG.mk all
"C:/PROGRA~1/MATLAB/R2017a/bin/mex" -f "C:/PROGRA~1/MATLAB/R2017a/bin/win64/mexopts/mingw64.xml" -c -MATLAB_ARCH=win64 -IC:/Users/chanditha/Dropbox/Research/Matlab/Simulink/DFIG -IC:/Users/chanditha/Dropbox/Research/Matlab/Simulink/DFIG/slprj/accel/DFIG -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src COPTIMFLAGS="-pedantic -Wno-long-long -fwrapv -O0 -DINTEGER_CODE=0 -DCLASSIC_INTERFACE=1 -DALLOCATIONFCN=0 -DONESTEPFCN=0 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DNDEBUG -DMODEL=DFIG -DNUMST=2 -DNCSTATES=26 -DHAVESTDIO" -silent -outdir "./" "DFIG_acc_data.c"
gcc: error: CreateProcess: No such file or directory
gmake: * [DFIG_acc_data.obj] Error -1 The make command returned an error of 2 'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command, operable program or batch file. gmake: * [DFIG_acc_data.obj] Error -1 The make command returned an error of 2 'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command, operable program or batch file. end
Whats going on?
Sorry part of the error message is appearing outside the code tags.

Answers (1)

Abhi Sundararaman
Abhi Sundararaman on 26 Jul 2017
In accelerator mode, Simulink generates code, and sometimes a MEX file to go with it (depending on your MATLAB version). The error you're getting is likely due to a compiler installation issue.
From the error message, it seems like you Simulink is trying to use the MinGW Compiler, but failing.
Reinstalling the MinGW Compiler should resolve the issue, which you can get at the following link: https://www.mathworks.com/matlabcentral/fileexchange/52848-matlab-support-for-mingw-w64-c-c++-compiler
  1 Comment
ck12345
ck12345 on 28 Jul 2017
Hi
I tried what you suggested. but it still doesnt work. Please see attached error message text file.

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!