question regarding code generation.
古いコメントを表示
Hi,
I have a question regarding code generation.
I have a simulink model which consist of a single stateflow block( my entire logic was done in stateflow) and 5 input ports (passes some input values to the stateflow) and a outport.
currently am interacting with the model using a gui( done using qt). Now I want to send my project to my higher officials,who doesn't have a matlab installed by converting entire model into a standalone exe.
I tried generating a exe from mdl using rsim.tlc. But I’ve no idea how to make my application to receive inputs and give the corresponding output.
This is my first attempt of auto code-generation. Please advice me in this issue.
Thanks n advance...
採用された回答
その他の回答 (2 件)
Muhammad shahbaz
2011 年 8 月 16 日
0 投票
use matlab code generator 2.0 or higher where u can generate .exe files of ur matlab code which can be executed anywhere without matlab just like c language files.
2 件のコメント
KYAW KYAW
2011 年 11 月 24 日
Hi Muhammad,
Where can i get matlab code generator and I really appreciate your help.
Thanks
Kaustubha Govind
2011 年 11 月 25 日
I think Muhammad meant to say MATLAB Coder. See the Contact Sales link on this page: http://www.mathworks.com/products/matlab-coder/?s_cid=global_nav
TAB
2011 年 8 月 17 日
0 投票
As your model contains only stateflow chart, you can generate a simle C-code using 'stateflow coder(Use custom target). It generates code with chart inputs and outputs as global variables. You can write a main program and interface the stateflow generated code with it very easily.
カテゴリ
ヘルプ センター および File Exchange で Simulink Coder についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!