Error during Code Generation

28 Ansichten (letzte 30 Tage)
Arvind
Arvind am 20 Jan. 2014
Kommentiert: mengni am 11 Jan. 2024
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.

Akzeptierte Antwort

Muruganandham Subramanian
Muruganandham Subramanian am 20 Jan. 2014
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 Kommentare
Xiaoning.Wang
Xiaoning.Wang am 1 Dez. 2021
why don't use the GCC Compiling environment
Walter Roberson
Walter Roberson am 1 Dez. 2021
They were using one of the R2014 releases, but mingw was not supported until R2015b.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

maths
maths am 15 Sep. 2023
Model parameter 'EnforceDataConsistency' must be set to 'on' to generate code or execute in SIL/PIL mode for model
  1 Kommentar
mengni
mengni am 11 Jan. 2024
I have encountered the same problem.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by