Simulink accelerator mode error

조회 수: 11 (최근 30일)
ck12345
ck12345 2017년 7월 24일
댓글: ck12345 2017년 7월 28일
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.

답변 (1개)

Abhi Sundararaman
Abhi Sundararaman 2017년 7월 26일
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
ck12345
ck12345 2017년 7월 28일
Hi
I tried what you suggested. but it still doesnt work. Please see attached error message text file.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 String에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by