Clear Filters
Clear Filters

Encountered a error when using RTW to creat .dll from simulink model

5 views (last 30 days)
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:

Answers (1)

Kaustubha Govind
Kaustubha Govind on 6 Aug 2012
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.

Categories

Find more on Test Model Components in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!