RealTime Workshop Complie error
12 ビュー (過去 30 日間)
古いコメントを表示
At first, we compile is successful, but when we use the S-function builder block to replace a gain block, and then to compile errors.
1.This is a successful test
command window:
K=0.01 b=0.1 N=0.1 Ti=0.01 Td=0.01
### Starting Real-Time Workshop build procedure for model: RTW_pid ### Generating code into build directory: C:\Documents and Settings\user\桌面\模糊控制\PID馬達模組\位置\RTW_pid_rtwin ### Invoking Target Language Compiler on RTW_pid.rtw tlc -r C:\Documents and Settings\user\桌面\模糊控制\PID馬達模組\位置\RTW_pid_rtwin\RTW_pid.rtw C:\Program Files\MATLAB\R2009a\toolbox\rtw\targets\rtwin\rtwin\rtwin.tlc -OC:\Documents and Settings\user\桌面\模糊控制\PID馬達模組\位置\RTW_pid_rtwin -IC:\Program Files\MATLAB\R2009a\toolbox\rtw\targets\rtwin\rtwin -IC:\Program Files\MATLAB\R2009a\toolbox\rtw\targets\rtwin\rtwin -IC:\Documents and Settings\user\桌面\模糊控制\PID馬達模組\位置\RTW_pid_rtwin\tlc -IC:\Program Files\MATLAB\R2009a\rtw\c\tlc\mw -IC:\Program Files\MATLAB\R2009a\rtw\c\tlc\lib -IC:\Program Files\MATLAB\R2009a\rtw\c\tlc\blocks -IC:\Program Files\MATLAB\R2009a\rtw\c\tlc\fixpt -IC:\Program Files\MATLAB\R2009a\stateflow\c\tlc -aEnforceIntegerDowncast=1 -aFoldNonRolledExpr=1 -aInlineInvariantSignals=0 -aInlineParameters=0 -aLocalBlockOutputs=1 -aRollThreshold=5 -aZeroInternalMemoryAtStartup=1 -aZeroExternalMemoryAtStartup=1 -aInitFltsAndDblsToZero=1 -aForceBlockIOInitOptimize=0 -aGenerateReport=0 -aGenCodeOnly=0 -aRTWVerbose=1 -aIncludeHyperlinkInReport=0 -aLaunchReport=0 -aGenerateTraceInfo=0 -aForceParamTrailComments=0 -aGenerateComments=1 -aIgnoreCustomStorageClasses=1 -aIncHierarchyInIds=0 -aMaxRTWIdLen=31 -aShowEliminatedStatements=0 -aIncDataTypeInIds=0 -aInsertBlockDesc=0 -aIgnoreTestpoints=0 -aSimulinkBlockComments=1 -aInlinedPrmAccess="Literals" -aTargetFcnLib="ansi_tfl_tmw.mat" -aIsPILTarget=0 -aLogVarNameModifier="rt_" -aGenerateFullHeader=1 -aExtMode=1 -aExtModeStaticAlloc=0 -aExtModeStaticAllocSize=1000000 -aExtModeTransport=0 -aExtModeTesting=0 -aGenerateTraceInfo=0 -aIgnoreTestpoints=0 -p10000
### Loading TLC function libraries
..... ### Initial pass through model to cache user defined code . ### Caching model source code ................................... ### Writing header file RTW_pid_types.h ### Writing header file RTW_pid.h ### Writing source file RTW_pid.c ### Writing header file rt_SATURATE.h . ### Writing header file RTW_pid_private.h ### Writing header file rtmodel.h ### Writing source file RTW_pid_data.c ### Writing header file rt_nonfinite.h . ### Writing source file rt_nonfinite.c ### Writing header file rtGetInf.h ### Writing source file rtGetInf.c ### Writing header file rtGetNaN.h . ### Writing source file rtGetNaN.c ### TLC code generation complete. ### Generating TLC interface API. ........ ### Creating data type transition file RTW_pid_dt.h . ### Processing Template Makefile: C:\Program Files\MATLAB\R2009a\toolbox\rtw\targets\rtwin\rtwin\rtwin.tmf ### RTW_pid.mk which is generated from C:\Program Files\MATLAB\R2009a\toolbox\rtw\targets\rtwin\rtwin\rtwin.tmf is up to date ### Building RTW_pid: .\RTW_pid.bat
C:\Documents and Settings\user\桌面\模糊控制\PID馬達模組\位置\RTW_pid_rtwin>set MATLAB=C:\Program Files\MATLAB\R2009a
C:\Documents and Settings\user\桌面\模糊控制\PID馬達模組\位置\RTW_pid_rtwin>"C:\PROGRA~1\MATLAB\R2009a\bin\win32\gmake" -f RTW_pid.mk GENERATE_REPORT=0 EXTMODE_STATIC_ALLOC=0 EXTMODE_STATIC_ALLOC_SIZE=1000000 TMW_EXTMODE_TESTING=0 ### Compiling RTW_pid.c C:/PROGRA~1/MATLAB/R2009a/toolbox/rtw/targets/rtwin/openwat/binnt/wcc386 -fo=RTW_pid.obj -wcd=202 -wcd=302 -wcd=400 -wcd=1180 -zq -ei -zp8 -6r -fpi87 -zl -wx -oneatxh -DEXT_MODE -DUSE_RTMODEL -DMODEL=RTW_pid -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -D__OBSCURE_STREAM_INTERNALS -I.;..;C:\PROGRA~1\MATLAB\R2009a\simulink\include;C:\PROGRA~1\MATLAB\R2009a\extern\include;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src\ext_mode\common;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\src;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\openwat\include;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置\RTW_pid_rtwin;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置 RTW_pid.c ### Compiling RTW_pid_data.c C:/PROGRA~1/MATLAB/R2009a/toolbox/rtw/targets/rtwin/openwat/binnt/wcc386 -fo=RTW_pid_data.obj -wcd=202 -wcd=302 -wcd=400 -wcd=1180 -zq -ei -zp8 -6r -fpi87 -zl -wx -oneatxh -DEXT_MODE -DUSE_RTMODEL -DMODEL=RTW_pid -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -D__OBSCURE_STREAM_INTERNALS -I.;..;C:\PROGRA~1\MATLAB\R2009a\simulink\include;C:\PROGRA~1\MATLAB\R2009a\extern\include;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src\ext_mode\common;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\src;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\openwat\include;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置\RTW_pid_rtwin;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置 RTW_pid_data.c ### Compiling rtGetInf.c C:/PROGRA~1/MATLAB/R2009a/toolbox/rtw/targets/rtwin/openwat/binnt/wcc386 -fo=rtGetInf.obj -wcd=202 -wcd=302 -wcd=400 -wcd=1180 -zq -ei -zp8 -6r -fpi87 -zl -wx -oneatxh -DEXT_MODE -DUSE_RTMODEL -DMODEL=RTW_pid -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -D__OBSCURE_STREAM_INTERNALS -I.;..;C:\PROGRA~1\MATLAB\R2009a\simulink\include;C:\PROGRA~1\MATLAB\R2009a\extern\include;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src\ext_mode\common;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\src;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\openwat\include;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置\RTW_pid_rtwin;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置 rtGetInf.c ### Compiling rtGetNaN.c C:/PROGRA~1/MATLAB/R2009a/toolbox/rtw/targets/rtwin/openwat/binnt/wcc386 -fo=rtGetNaN.obj -wcd=202 -wcd=302 -wcd=400 -wcd=1180 -zq -ei -zp8 -6r -fpi87 -zl -wx -oneatxh -DEXT_MODE -DUSE_RTMODEL -DMODEL=RTW_pid -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -D__OBSCURE_STREAM_INTERNALS -I.;..;C:\PROGRA~1\MATLAB\R2009a\simulink\include;C:\PROGRA~1\MATLAB\R2009a\extern\include;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src\ext_mode\common;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\src;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\openwat\include;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置\RTW_pid_rtwin;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置 rtGetNaN.c ### Compiling rt_nonfinite.c C:/PROGRA~1/MATLAB/R2009a/toolbox/rtw/targets/rtwin/openwat/binnt/wcc386 -fo=rt_nonfinite.obj -wcd=202 -wcd=302 -wcd=400 -wcd=1180 -zq -ei -zp8 -6r -fpi87 -zl -wx -oneatxh -DEXT_MODE -DUSE_RTMODEL -DMODEL=RTW_pid -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -D__OBSCURE_STREAM_INTERNALS -I.;..;C:\PROGRA~1\MATLAB\R2009a\simulink\include;C:\PROGRA~1\MATLAB\R2009a\extern\include;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src\ext_mode\common;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\src;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\openwat\include;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置\RTW_pid_rtwin;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置 rt_nonfinite.c ### Created Real-Time Windows Target module RTW_pid.rwd C:/PROGRA~1/MATLAB/R2009a/toolbox/rtw/targets/rtwin/openwat/binnt/wlink \ @C:/PROGRA~1/MATLAB/R2009a/toolbox/rtw/targets/rtwin\rtwin\rtwin.rsp \ LIBPATH C:/PROGRA~1/MATLAB/R2009a/toolbox/rtw/targets/rtwin\lib;C:/PROGRA~1/MATLAB/R2009a/toolbox/rtw/targets/rtwin\openwat\lib386 \ NAME ../RTW_pid.rwd \ FILE RTW_pid.obj,RTW_pid_data.obj,rtGetInf.obj,rtGetNaN.obj,rt_nonfinite.obj,rtwin_main.obj,rt_sim.obj,ext_svr.obj,updown_rtwin.obj,ode3.obj ### Successful completion of Real-Time Workshop build procedure for model: RTW_pid Model RTW_pid loaded Model RTW_pid unloaded
-------------------------------------------------------------------------------
2.This is a error test
command window:
### Starting Real-Time Workshop build procedure for model: RTW_pid ### Generating code into build directory: C:\Documents and Settings\user\桌面\模糊控制\PID馬達模組\位置\RTW_pid_rtwin ### Invoking Target Language Compiler on RTW_pid.rtw tlc -r C:\Documents and Settings\user\桌面\模糊控制\PID馬達模組\位置\RTW_pid_rtwin\RTW_pid.rtw C:\Program Files\MATLAB\R2009a\toolbox\rtw\targets\rtwin\rtwin\rtwin.tlc -OC:\Documents and Settings\user\桌面\模糊控制\PID馬達模組\位置\RTW_pid_rtwin -IC:\Program Files\MATLAB\R2009a\toolbox\rtw\targets\rtwin\rtwin -IC:\Program Files\MATLAB\R2009a\toolbox\rtw\targets\rtwin\rtwin -IC:\Documents and Settings\user\桌面\模糊控制\PID馬達模組\位置\RTW_pid_rtwin\tlc -IC:\Program Files\MATLAB\R2009a\rtw\c\tlc\mw -IC:\Program Files\MATLAB\R2009a\rtw\c\tlc\lib -IC:\Program Files\MATLAB\R2009a\rtw\c\tlc\blocks -IC:\Program Files\MATLAB\R2009a\rtw\c\tlc\fixpt -IC:\Program Files\MATLAB\R2009a\stateflow\c\tlc -aEnforceIntegerDowncast=1 -aFoldNonRolledExpr=1 -aInlineInvariantSignals=0 -aInlineParameters=0 -aLocalBlockOutputs=1 -aRollThreshold=5 -aZeroInternalMemoryAtStartup=1 -aZeroExternalMemoryAtStartup=1 -aInitFltsAndDblsToZero=1 -aForceBlockIOInitOptimize=0 -aGenerateReport=0 -aGenCodeOnly=0 -aRTWVerbose=1 -aIncludeHyperlinkInReport=0 -aLaunchReport=0 -aGenerateTraceInfo=0 -aForceParamTrailComments=0 -aGenerateComments=1 -aIgnoreCustomStorageClasses=1 -aIncHierarchyInIds=0 -aMaxRTWIdLen=31 -aShowEliminatedStatements=0 -aIncDataTypeInIds=0 -aInsertBlockDesc=0 -aIgnoreTestpoints=0 -aSimulinkBlockComments=1 -aInlinedPrmAccess="Literals" -aTargetFcnLib="ansi_tfl_tmw.mat" -aIsPILTarget=0 -aLogVarNameModifier="rt_" -aGenerateFullHeader=1 -aExtMode=1 -aExtModeStaticAlloc=0 -aExtModeStaticAllocSize=1000000 -aExtModeTransport=0 -aExtModeTesting=0 -aGenerateTraceInfo=0 -aIgnoreTestpoints=0 -p10000
### Loading TLC function libraries
..... ### Initial pass through model to cache user defined code . ### Caching model source code .................................... ### Writing header file RTW_pid_types.h ### Writing header file RTW_pid.h ### Writing source file RTW_pid.c ### Writing header file rt_SATURATE.h . ### Writing header file RTW_pid_private.h ### Writing header file rtmodel.h ### Writing source file RTW_pid_data.c ### Writing header file rt_nonfinite.h . ### Writing source file rt_nonfinite.c ### Writing header file rtGetInf.h ### Writing source file rtGetInf.c . ### Writing header file rtGetNaN.h ### Writing source file rtGetNaN.c ### TLC code generation complete. ### Generating TLC interface API. ........ ### Creating data type transition file RTW_pid_dt.h . ### Processing Template Makefile: C:\Program Files\MATLAB\R2009a\toolbox\rtw\targets\rtwin\rtwin\rtwin.tmf ### RTW_pid.mk which is generated from C:\Program Files\MATLAB\R2009a\toolbox\rtw\targets\rtwin\rtwin\rtwin.tmf is up to date ### Building RTW_pid: .\RTW_pid.bat
C:\Documents and Settings\user\桌面\模糊控制\PID馬達模組\位置\RTW_pid_rtwin>set MATLAB=C:\Program Files\MATLAB\R2009a
C:\Documents and Settings\user\桌面\模糊控制\PID馬達模組\位置\RTW_pid_rtwin>"C:\PROGRA~1\MATLAB\R2009a\bin\win32\gmake" -f RTW_pid.mk GENERATE_REPORT=0 EXTMODE_STATIC_ALLOC=0 EXTMODE_STATIC_ALLOC_SIZE=1000000 TMW_EXTMODE_TESTING=0 ### Compiling RTW_pid.c C:/PROGRA~1/MATLAB/R2009a/toolbox/rtw/targets/rtwin/openwat/binnt/wcc386 -fo=RTW_pid.obj -wcd=202 -wcd=302 -wcd=400 -wcd=1180 -zq -ei -zp8 -6r -fpi87 -zl -wx -oneatxh -DEXT_MODE -DUSE_RTMODEL -DMODEL=RTW_pid -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -D__OBSCURE_STREAM_INTERNALS -I.;..;C:\PROGRA~1\MATLAB\R2009a\simulink\include;C:\PROGRA~1\MATLAB\R2009a\extern\include;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src\ext_mode\common;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\src;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\openwat\include;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置\RTW_pid_rtwin;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置 RTW_pid.c ### Compiling RTW_pid_data.c C:/PROGRA~1/MATLAB/R2009a/toolbox/rtw/targets/rtwin/openwat/binnt/wcc386 -fo=RTW_pid_data.obj -wcd=202 -wcd=302 -wcd=400 -wcd=1180 -zq -ei -zp8 -6r -fpi87 -zl -wx -oneatxh -DEXT_MODE -DUSE_RTMODEL -DMODEL=RTW_pid -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -D__OBSCURE_STREAM_INTERNALS -I.;..;C:\PROGRA~1\MATLAB\R2009a\simulink\include;C:\PROGRA~1\MATLAB\R2009a\extern\include;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src\ext_mode\common;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\src;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\openwat\include;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置\RTW_pid_rtwin;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置 RTW_pid_data.c ### Compiling rtGetInf.c C:/PROGRA~1/MATLAB/R2009a/toolbox/rtw/targets/rtwin/openwat/binnt/wcc386 -fo=rtGetInf.obj -wcd=202 -wcd=302 -wcd=400 -wcd=1180 -zq -ei -zp8 -6r -fpi87 -zl -wx -oneatxh -DEXT_MODE -DUSE_RTMODEL -DMODEL=RTW_pid -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -D__OBSCURE_STREAM_INTERNALS -I.;..;C:\PROGRA~1\MATLAB\R2009a\simulink\include;C:\PROGRA~1\MATLAB\R2009a\extern\include;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src\ext_mode\common;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\src;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\openwat\include;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置\RTW_pid_rtwin;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置 rtGetInf.c ### Compiling rtGetNaN.c C:/PROGRA~1/MATLAB/R2009a/toolbox/rtw/targets/rtwin/openwat/binnt/wcc386 -fo=rtGetNaN.obj -wcd=202 -wcd=302 -wcd=400 -wcd=1180 -zq -ei -zp8 -6r -fpi87 -zl -wx -oneatxh -DEXT_MODE -DUSE_RTMODEL -DMODEL=RTW_pid -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -D__OBSCURE_STREAM_INTERNALS -I.;..;C:\PROGRA~1\MATLAB\R2009a\simulink\include;C:\PROGRA~1\MATLAB\R2009a\extern\include;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src\ext_mode\common;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\src;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\openwat\include;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置\RTW_pid_rtwin;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置 rtGetNaN.c ### Compiling rt_nonfinite.c C:/PROGRA~1/MATLAB/R2009a/toolbox/rtw/targets/rtwin/openwat/binnt/wcc386 -fo=rt_nonfinite.obj -wcd=202 -wcd=302 -wcd=400 -wcd=1180 -zq -ei -zp8 -6r -fpi87 -zl -wx -oneatxh -DEXT_MODE -DUSE_RTMODEL -DMODEL=RTW_pid -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -D__OBSCURE_STREAM_INTERNALS -I.;..;C:\PROGRA~1\MATLAB\R2009a\simulink\include;C:\PROGRA~1\MATLAB\R2009a\extern\include;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src;C:\PROGRA~1\MATLAB\R2009a\rtw\c\src\ext_mode\common;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\src;C:\PROGRA~1\MATLAB\R2009a\toolbox\rtw\targets\rtwin\openwat\include;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置\RTW_pid_rtwin;C:\DOCUME~1\user\桌面\模糊控制\PID馬~1\位置 rt_nonfinite.c gmake: * No rule to make target `bbbb_wrapper.obj', needed by `../RTW_pid.rwd'. Stop. ### Real-Time Workshop build procedure for model: 'RTW_pid' aborted due to an error.
after ctrl+B we got error message
{ Error building Real-Time Workshop target for block diagram 'RTW_pid'. MATLAB error message: Error(s) encountered while building model "RTW_pid". } >>
1 件のコメント
Kaustubha Govind
2013 年 4 月 19 日
Have you included bbbb_wrapper.c, and any other external code that your S-function uses to the Libraries pane of the S-function Builder block?
回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!