How to fix rtwtypes.h error?
조회 수: 23 (최근 30일)
이전 댓글 표시
When running the model Electrci vehcicle reference application model from powertrain blockset, cant able to get result expect these errors. Can anyo one please help me put of this.
### Build procedure for model: 'BattEv' aborted due to an error.
C:/PROGRA~1/Polyspace/R2019b\sys\lcc64\lcc64\bin\lcc64 -c -FoBattEv.obj -nodeclspec -c -DMATLAB_MEX_FILE -DMODEL=BattEv -DNUMST=1 -DNCSTATES=1 -DMAT_FILE=0 -DINTEGER_CODE=0 -DONESTEPFCN=0 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DMDL_REF_SIM_TGT=1 -DENABLE_SLEXEC_SSBRIDGE=1 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I. -I../../.. -IC:/Users/MATLAB/Projects/examples/EV4/main/Work -IC:/Users/MATLAB/Projects/examples/EV4/main/Work/slprj/sim/BattEv -IC:/PROGRA~1/Polyspace/R2019b/extern/include -IC:/PROGRA~1/Polyspace/R2019b/simulink/include -IC:/PROGRA~1/Polyspace/R2019b/rtw/c/src -IC:/PROGRA~1/Polyspace/R2019b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/Polyspace/R2019b/rtw/c/ert -IC:/Users/MATLAB/Projects/examples/EV4/main/Work/slprj/sim/_sharedutils -IC:/PROGRA~1/Polyspace/R2019b\sys\lcc64\lcc64\include64 -w -noregistrylookup -dll -Zp8 -noregistrylookup -DLCC_WIN64 BattEv.c cpp: c:/progra~1/polyspace/r2019b/rtw/c/src\rtw_modelmap.h:30 "c:\users\matlab\projects\examples\ev4\main\work\slprj\sim\battev\battev.h":6 "c:\users\matlab\projects\examples\ev4\main\work\slprj\sim\battev\battev_capi.h":4 battev.c:2 Could not find include file "rtwtypes.h" cpp: c:/progra~1/polyspace/r2019b/rtw/c/src\rtw_capi.h:22 c:/progra~1/polyspace/r2019b/rtw/c/src\rtw_modelmap.h:42 "c:\users\matlab\projects\examples\ev4\main\work\slprj\sim\battev\battev.h":6 "c:\users\matlab\projects\examples\ev4\main\work\slprj\sim\battev\battev_capi.h":4 battev.c:2 Could not find include file "rtwtypes.h"
Error(s) encountered while building "BattEvlib"
Component:Simulink | Category:Model error
Error while bringing model references of model EvReferenceApplication up to date: see errors reported above for details.
Component:Simulink | Category:Model error
댓글 수: 2
Chirag
2020년 5월 26일
Are you Simulating model or generating code? Error message suggests that you are generating code. Can you please confirm?
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Powertrain Reference Applications에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!