What do you mean by sampling time? How will it be seen in the generated code?

2 ビュー (過去 30 日間)
swaraj
swaraj 2012 年 6 月 3 日
Please explain with generated code
  1 件のコメント
the cyclist
the cyclist 2012 年 6 月 3 日
This title and question are much too brief and non-specific for people to help much, if at all. Can you please give a more complete explanation of what you are trying to understand?

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

採用された回答

TAB
TAB 2012 年 6 月 4 日
In brief, sample time for the model is the time step at which model will be executed. Suppose for Fixed step discrete model, sample time 1 second, then when you will simulate the model, model will be executed at every 1 second.
Sample time can not be seen in generated code. When you generate the code from the model, RTW will generate it's logic only. It's your responsibility to call the generated function (for eg. mdl_step function) in your scheduler at particular time steps which can be same or different with simulation step time.

その他の回答 (1 件)

swaraj
swaraj 2012 年 6 月 9 日
Thanks tab..

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by