Encountered a error when using RTW to creat .dll from simulink model
4 次查看(过去 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:
![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
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 中查找有关 Test Model Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!