How to use Simulink Coder to Convert .mdl file into .exe

Hello Experts, I am using Matlab R2011b version. I have developed an ADC model in Simulink, and now I want to covert the .mdl file into .exe file, so that it can be deployed to web. Can you please help me how to do it? I can see in Simulink Library Browser that Simulink Coder is installed in my PC with following options to choose from: Asynchronous, Custom Code, Desktop Targets, S-Function Target, Real-Time Windows Target. Among these only Real-Time is not installed on PC. Can you please suggest how do I use these blocks and get my .mdl file converted into .exe file? Thank you for help. SG.

 採用された回答

Kaustubha Govind
Kaustubha Govind 2011 年 11 月 21 日

0 投票

I would recommend starting with the Simulink Coder demos/videos to get started. However, if you already have a Simulink model, you might just need to open it and hit Ctrl+B to generate code from the model. If there are features/blocks used in your model that are not supported for code-generation, you should get an appropriate error.

5 件のコメント

Sourabh
Sourabh 2011 年 11 月 22 日
Thanks Kaustubha,
I saw demo videos available on Mathworks website. But in my case, 'tools' tab of my Simulink window does not show an option of Real-Time Workspace.
If I go to Model Explorer, it doesn't show me Real-Time Workshop tab.
Is it changed in R2011b version? Should I check if Real-Time workshop is not installed? How?
It is a corporate license I am using. So I believe license should not be an issue here.
Thanks for help,
Sourabh
Titus Edelhofer
Titus Edelhofer 2011 年 11 月 22 日
Hi Sourabh,
note that the code generation products have been restructured, see
http://www.mathworks.com/help/releases/R2011b/toolbox/rtw/rn/bsr6_8k-1.html
Ctrl-B should work as Kaustubha wrote, and in the tools menu you should have an entry "Code Generation". Is "Simulink Coder" listet when you type "ver" at the command prompt?
Titus
Sourabh
Sourabh 2011 年 11 月 22 日
Thank you Titus.
Unfortunately I am not seeing 'Simulink Coder' listed when I type 'ver' at the command prompt. How do I install it? If my company's current license doesn't support it, how do I get trial version? I would like to evaluate it fast, and purchase if we find it useful for our present need.
Respectfully,
Sourabh
Titus Edelhofer
Titus Edelhofer 2011 年 11 月 22 日
Your welcome. Usually your best bet is to contact the sales department of mathworks (see homepage) to discuss the evaluation of Simulink Coder ...
Walter Roberson
Walter Roberson 2011 年 11 月 22 日
http://www.mathworks.com/programs/trials/product_evals.html?s_cid=cta_trials

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by