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.
采纳的回答
What about your simulink model? you can't generate an executable from a simulink model with matlab coder
9 个评论
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.
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink Coder 的更多信息
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
