'Make Error' when starting Simulink simulation

I am getting a Make Error with the following message: Making simulation target "DP_ForceRAOnew_sfun", ...
C:\Users\Michael\Dropbox\Codes\MSS\hydro\simulink\slprj\_sfprj\DP_ForceRAOnew\_self\sfun\src>call "\vsvars32.bat" '"\vsvars32.bat"' is not recognized as an internal or external command, operable program or batch file.
C:\Users\Michael\Dropbox\Codes\MSS\hydro\simulink\slprj\_sfprj\DP_ForceRAOnew\_self\sfun\src>nmake -f DP_ForceRAOnew_sfun.mak 'nmake' is not recognized as an internal or external command, operable program or batch file.
Within the simulink model I have a M function that performs a dos command to run a executable. Could this be the source of the error?
Regards

 Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 22 de Jun. de 2012

1 voto

Have you already installed a supported compiler (see last column on this page for the list against each version), and run "mex -setup"? It just seems like Simulink cannot locate a supported MEX compiler, which is needed to compile code generated from Stateflow charts or (Embedded) MATLAB Function blocks.

6 comentarios

michaelborg
michaelborg el 22 de Jun. de 2012
Thanks, the mex -setup solved the problem
Shameer Parmar
Shameer Parmar el 9 de Nov. de 2012
Hi friends, I was getting the same kind of error while matlab model simulation and I tried as suggested by Kaustubha and it worked. but every time I had to run 'mex -setup' before simulating the model or after re-open the matlab. I am working on R2010b.
Do you have any idea or any resolution for my problem?
Thanks for your help.
Kaustubha Govind
Kaustubha Govind el 12 de Nov. de 2012
Do you have multiple installations of R2010b by any chances, that could be overwriting your Preferences directory (where the "mex -setup" utility generates the MEX-options file?). Does the generated MEX-options file not exist when you restart MATLAB?
Shameer Parmar
Shameer Parmar el 14 de Nov. de 2012
Thanks Kaustubha for your reply.
Actually I dont have multiple installation of R2012b but I have multiple installation of Matlabs like R2007b, R2010b and R2011b on my laptop, is this because of it?? I dont think so because I didn't face this issue on desktop machine even though machine has multiple matlab installationas said above.
If my model goes through successful simulation, it generate the MEX-option file into same directory, otherwise it dont and throw an error.
Also once the MEX-option file get created, it exist forever even after restart of matlab /Laptop.
But if you manually delete that MEX-option file and go for simulation, sometime it works but most of the time throw same MAKE error.
Please help.
Kaustubha Govind
Kaustubha Govind el 15 de Nov. de 2012
Shameer: I'm not sure what might be going on. Could you perhaps report this to MathWorks Tech Support and find out if this is a known issue? Thanks!
Shameer Parmar
Shameer Parmar el 27 de Nov. de 2012
Ok.. Thanks Kaustubha for your reply.. I will check with Mathwork Support team..

Iniciar sesión para comentar.

Más respuestas (1)

YAN WEI
YAN WEI el 5 de Dic. de 2016

0 votos

Hello, have you solved your problem? I have met the same problem with you, do you have some solutions? Thanks

Categorías

Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 22 de Jun. de 2012

Respondida:

el 5 de Dic. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by