Info
This question is closed. Reopen it to edit or answer.
Simulink/StateFlowのベースステップについて
1 view (last 30 days)
Show older comments
MatlabR2015aにて添付ファイルのようなモデルを作成し、
Base_step(シミュレーションのベースステップを設定する変数)を
1e-6(1us)と1e-7(0.1us)で実行したところ、
waitからb_activeに遷移するとき、7.5msのタイマで
・Base_step = 1e-6の場合 7.501 ms
・Base_step = 1e-7の場合7.5751 ms
とBase_stepを小さくした方が時間的精度が悪化するという現象が起きております。
b_timer_controlで10us毎にカウンタを+1し、750になったところで、遷移するという形を取っており、Base_step = 1e-7のとき、0.1 usの誤差が750回累積し、7.575という時間になっていることは分かったのですが、その原因が分かりません。
上記の原因について、お教えください。
以上、よろしくお願いいたします。
0 Comments
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!