Generating executable using MATLAB coder?

I am trying to generate a executable file for GUI. It gives me the following Project Code readiness Score:
I will have to use bdroot, set_param etc to pass the parameters to Simulink model. I am not sure how to resolve these invokations?
Thanks for your help in advance.

 Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 2 Oct 2013

1 vote

What about your simulink model? you can't generate an executable from a simulink model with matlab coder

9 commentaires

Rinachi Garg
Rinachi Garg le 2 Oct 2013
I didn't try that. Simulink model is running in the background of the GUI. All the values to Simulink are passed from GUI. So, my main input file for code generator is GUI.
Ok, but what about commands like
set_param
Rinachi Garg
Rinachi Garg le 3 Oct 2013
All these commands are used to either get the parameter or set the parameter in SIMULINK.
Azzi Abdelmalek
Azzi Abdelmalek le 3 Oct 2013
I know, but Matlab compiler do not work with simulink
Rinachi Garg
Rinachi Garg le 3 Oct 2013
I created SIMULINK executable. Also, I read couple of related posts but could not really figure out how to create a MATLAB GUI executable when I am using commands like set_param, bdroot etc.
Kaustubha Govind
Kaustubha Govind le 4 Oct 2013
You need to remove the calls to set_param, etc. You should directly call into the DLL generated using Embedded Coder instead. Please see the link I posted above for more details.
Rinachi Garg
Rinachi Garg le 11 Oct 2013
Is there any sample code which can help me out with this. Moreover, I am not able to access any of the links within above link.
Rinachi
Rinachi le 7 Nov 2013
The document asks to select system target file to ert_shrlib.tic which will create a host shared library. But, I do not see that option. Only option available nearest to that is ert.tlc.
I wanted to know how I can generate shared library if I do not have that option.
Thanks.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Coder dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by