Encountered a error when using RTW to creat .dll from simulink model
조회 수: 8 (최근 30일)
이전 댓글 표시
Hello,
I want to creat a .dll file from simulink model for CANoe using RTW.But encountered a error when build.
The build procedure was below:
------------------------------------------------------------------------------------
Checking block usage.
### Generate CANoe Model Viewer information for model: sine
### Starting Real-Time Workshop build procedure for model: sine
### Generating code into build directory: D:\Projects\CANoe\Demo_AddOn\Matlab\HIL\Parameterization\sine_cn_rtw
### Invoking Target Language Compiler on sine.rtw
### Using System Target File: d:\Program Files\MATLAB\R2010b\rtw\c\canoe\cn.tlc
### Loading TLC function libraries
.....
### Initial pass through model to cache user defined code
.
### Caching model source code
.........
### Generating TLC interface API.
...
### Writing source file sine_capi.c
.
### Writing header file sine_capi.h
.........................
### Writing header file sine.h
### Writing header file sine_types.h
### Writing header file rtwtypes.h
.
### Writing source file sine.c
### Writing header file sine_private.h
### Writing header file rtmodel.h
.
### Writing source file sine_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.
### Creating project marker file: rtw_proj.tmw
.
### Processing Template Makefile: d:\Program Files\MATLAB\R2010b\rtw\c\canoe\cn_msdll.tmf
### Creating sine.mk from d:\Program Files\MATLAB\R2010b\rtw\c\canoe\cn_msdll.tmf
### Building sine: .\sine.bat
D:\Projects\CANoe\Demo_AddOn\Matlab\HIL\Parameterization\sine_cn_rtw>set MATLAB=d:\Program Files\MATLAB\R2010b
D:\Projects\CANoe\Demo_AddOn\Matlab\HIL\Parameterization\sine_cn_rtw>set MSVCDir=d:\program files\microsoft visual studio\vc98
D:\Projects\CANoe\Demo_AddOn\Matlab\HIL\Parameterization\sine_cn_rtw>set MSDevDir=d:\program files\microsoft visual studio\common\msdev98
D:\Projects\CANoe\Demo_AddOn\Matlab\HIL\Parameterization\sine_cn_rtw>"d:\Program Files\MATLAB\R2010b\rtw\bin\win32\envcheck" INCLUDE "d:\program files\microsoft visual studio\vc98\include"
D:\Projects\CANoe\Demo_AddOn\Matlab\HIL\Parameterization\sine_cn_rtw>if errorlevel 1 goto vcvars32
D:\Projects\CANoe\Demo_AddOn\Matlab\HIL\Parameterization\sine_cn_rtw>"d:\Program Files\MATLAB\R2010b\rtw\bin\win32\envcheck" PATH "d:\program files\microsoft visual studio\vc98\bin"
D:\Projects\CANoe\Demo_AddOn\Matlab\HIL\Parameterization\sine_cn_rtw>if errorlevel 1 goto vcvars32
D:\Projects\CANoe\Demo_AddOn\Matlab\HIL\Parameterization\sine_cn_rtw>goto make
D:\Projects\CANoe\Demo_AddOn\Matlab\HIL\Parameterization\sine_cn_rtw>cd .
D:\Projects\CANoe\Demo_AddOn\Matlab\HIL\Parameterization\sine_cn_rtw>nmake -f sine.mk GENERATE_REPORT=0 EXT_MODE=0 EXTMODE_STATIC_ALLOC=0 TMW_EXTMODE_TESTING=0 EXTMODE_STATIC_ALLOC_SIZE=1000000 EXTMODE_TRANSPORT=0 GENERATE_MODEL_DESCRIPTION=1
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
D:\Projects\CANoe\Demo_AddOn\Matlab\HIL\Parameterization\sine_cn_rtw>exit /B 0
--------------------------------------------------------------------------------------
And the error dialog box:
댓글 수: 0
답변 (1개)
Kaustubha Govind
2012년 8월 6일
This seems to be a third-party product, and your command window output doesn't show any indication of the error (you might want to provide a translation of the error in the dialog box), so you might have better luck contacting the vendor of CANoe directly. The generic shared library target that ships with Embedded Coder is ert_shrlib.tlc - if you have a (Real-Time Workshop) Embedded Coder license, I would recommend trying to generate code with this target to make sure that there is nothing wrong with your model.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!