While trying to generate GENERIC REAL TIME code for my simulink model, the simulation stopped, due to multiple errors. Following where the errors displayed over in the command window, while execution of the model.
i). "nmake" is not recognized as an internal or external command,
ii). The make command returned an error of 9009,
iii). call "c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\....\VC\bin\vcvars64" is not recognised as an internal or external command.
what could possibly be the problem, am using a MATLAB 7.9.0, windows vista 64-bit os, Microsoft Visual Studio 2009.
Due to this error Real - Time Workshop build procedure for the model has been aborted.

 채택된 답변

Muruganandham Subramanian
Muruganandham Subramanian 2014년 1월 20일

0 개 추천

Hi, You may missed an anyone or both of the important activity for code generation,
1) select the mex compiler proper>> mex -setup Please choose your compiler for building external interface (MEX) files: Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Microsoft Visual C++ 2008 Express Edition in C:\Program Files (x86)\Microsoft Visual Studio 9.0\
[0] None
2) SDK selection

댓글 수: 3

saqib anwaar
saqib anwaar 2021년 9월 2일
How to do SDK selection?
I am facing the same problem. Im using matlab 2014 and windows 10, i use mex -setup command which shows that winlcc32 compiler has been selected, but i dont know how to select SDK. I did install visual studio 2019 and SDK for windows 10 but still im facing same problem
Xiaoning.Wang
Xiaoning.Wang 2021년 12월 1일
why don't use the GCC Compiling environment
Walter Roberson
Walter Roberson 2021년 12월 1일
They were using one of the R2014 releases, but mingw was not supported until R2015b.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

maths
maths 2023년 9월 15일

0 개 추천

Model parameter 'EnforceDataConsistency' must be set to 'on' to generate code or execute in SIL/PIL mode for model

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

질문:

2014년 1월 20일

댓글:

2024년 1월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by