stateflow

6 ビュー (過去 30 日間)
Murali Mohan
Murali Mohan 2011 年 6 月 15 日
Hi all, Here I am using "after(0.025, sec)" in statechart for generating pulse, but when it wached on scope,its generating at 0.03, why is the difference. Can any help me how to make exact at 0.025.
  3 件のコメント
Arnaud Miege
Arnaud Miege 2011 年 6 月 15 日
Also, how often does your chart update?
Murali Mohan
Murali Mohan 2011 年 6 月 17 日
sample time provided for the model is 0.01

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

採用された回答

Gerd
Gerd 2011 年 6 月 17 日
Hi Murali,
using a sample time of 0.01s for your model lets you only generate pulses with a multiple of the basic sample time(0.01 / 0.02 / 0.03) If you want to generate a pulse of 0.025 you have to increase your sample time to e.g. 0.001s
Gerd
  3 件のコメント
Gerd
Gerd 2011 年 6 月 17 日
Murali,
please open the model.
Double click on the upper chart "With absolute Time".
Change the transition to "After(0.025,sec)".
Hit Ctrl+E. Change the fundamental sample time to 0.001.
Open the scope and open Parameter pane. Go to "History".
Deselect Limit data points to last.
Run the model and observe the result.
I did these steps and the result is Ok
Murali Mohan
Murali Mohan 2011 年 6 月 17 日
Thanks Gerd for your reply :)

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by