Mex File Creation Error

I am working on system simulation which has MatLab Code and a Simulink model. Whenever i am working with accelerator mode in simulink,i am getting "Problem while creating Mex file for simulink" and simulation stop. This error is so random even some time it comes when the simulation is about to complete and all time wasted. In that case i need to run the model again.
Please provide your feedback.
[Relocated from answer section, Jan]
Below is the error message i am getting.
Problem Creating accelerator mex file for the model 'SimulinkModel' To see the build output use set_param('SimulinkModel', 'AccelVerboseBuild','on')

6 Commenti

Kaustubha Govind
Kaustubha Govind il 6 Ago 2013
Could you please paste the exact error messages, as reported by Simulink? Does it mention the name of the MEX-file that it is trying to generate? Also, do you have model reference, MATLAB Function or Stateflow blocks in your model?
Kailash Golecha
Kailash Golecha il 6 Ago 2013
Thanks for your response. I will put the error message.
Kailash Golecha
Kailash Golecha il 8 Ago 2013
Hi Please find the below error message. Please help....
Problem Creating accelerator mex file for the model 'SimulinkModel'
To see the build output use set_param('SimulinkModel', 'AccelVerboseBuild','on')
Kaustubha Govind
Kaustubha Govind il 8 Ago 2013
And what happens if you rerun the model after running set_param('SimulinkModel', 'AccelVerboseBuild','on')?
Kailash Golecha
Kailash Golecha il 19 Ago 2013
I have tried that also. But error remain same.
Kaustubha Govind
Kaustubha Govind il 19 Ago 2013
Could you confirm whether you have run mex -setup and selected a supported installed compiler already?

Accedi per commentare.

Risposte (1)

Jan
Jan il 6 Ago 2013

0 voti

Without seeing any details, it is rather unlikely that the reason of your problems can be guessed. Could you provide anything more than that you are running Matlab and Simulink and that the problem seems to occur randomly?

1 Commento

Sadaf
Sadaf il 24 Ott 2013
Modificato: Sadaf il 24 Ott 2013
I am getting the same error when running any simulink model with accelerator: "Problem creating Accelerator MEX file for model 'SIM_MODEL'."
I am running OSX 10.8, Matlab2013a with Xcode 5.0. I have also seen the same problem on a windows platform. I have used the following to link my Xcode to Matlab: http://www.mathworks.com/support/solutions/en/data/1-OAMYBZ/index.html?solution=1-OAMYBZ
Any suggestions on how to troubleshoot?

Accedi per commentare.

Categorie

Scopri di più su Simulink in Centro assistenza e File Exchange

Prodotti

Tag

Richiesto:

il 6 Ago 2013

Commentato:

il 24 Ott 2013

Community Treasure Hunt

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

Start Hunting!

Translated by