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.

 Accepted Answer

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

9 Comments

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
All these commands are used to either get the parameter or set the parameter in SIMULINK.
I know, but Matlab compiler do not work with simulink
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.
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.
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.
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.

Sign in to comment.

More Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!