MATLAB Answers

Converting Simulink file (.slx) to .dll for integrating with CANoe

40 ビュー (過去 30 日間)
Pradeep Sharma Oruganti
Pradeep Sharma Oruganti 2018 年 11 月 19 日
編集済み: Stefanie Schwarz 2020 年 5 月 27 日
I am trying to generate a .dll file from a simulink model to integrate with Vector CANoe.
I have chosen 'cn.tlc' in the code generation panel. I have set my environment variables to point to the mingw64 binaries.
I have used 'getenv' to check if matlab points to the same folder. But when I try to build the model, I get the following error:
C:\Users\prade\Desktop\Work\Attempts\CON_veh\Simulator\MCU_cn_rtw>call "set MINGW_ROOT_PATH=C:\MinGW\mingw64" x86 The filename, directory name, or volume label syntax is incorrect.
C:\Users\prade\Desktop\Work\Attempts\CON_veh\Simulator\MCU_cn_rtw>nmake -f MCU.mk MAT_FILE=1 GENERATE_MODEL_DESCRIPTION=1 DEBUG_BUILD=0 COMBINE_OUTPUT_UPDATE_FCNS=0 INCLUDE_MDL_TERMINATE_FCN=1 MULTI_INSTANCE_CODE=0 ISPROTECTINGMODEL=NOTPROTECTING TARGET_ARCH="x86" XCP_MAX_MSG_LENGTH=-1 ANALYSIS_MODEL=0 HAS_CAPL_CALL=0 'nmake' is not recognized as an internal or external command, operable program or batch file.
I am on a Windows 10 64 bit OS.

  3 件のコメント

Ali Zeitoun
Ali Zeitoun 2019 年 3 月 19 日
hey,
At the moment I'm writing my bachelor thesis on this topic and I have exactly the same problem. If you have solved it, I would be very happy if you tell me what you did.
many Greetings
Ali
gelareh kakvand
gelareh kakvand 2019 年 9 月 3 日
Hi,
I have the same problem . Have you found the solution ?

サインインしてコメントする。

回答 (1 件)

Stefanie Schwarz
Stefanie Schwarz 2020 年 5 月 27 日
編集済み: Stefanie Schwarz 2020 年 5 月 27 日
In general, please contact Vector for questions regarding their cn.tlc target:
From our experience, the issue can be resolved as follows:
1) Consult the Vector CANoe User Manual to determine which compiler is supported with cn.tlc. As far as we know, MinGW is not supported and you need to install a specific Visual Studio C++ version.
2) Run the command
>> mex -setup c++
in MATLAB to select the supported Visual Studio compiler after installing it.
3) Make sure that you have selected C++ as Language in the model settings under Configuration Parameters > Code Generation.

  0 件のコメント

サインインしてコメントする。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by