フィルターのクリア

My simple simulink model runs too fast!

13 ビュー (過去 30 日間)
Ariana
Ariana 2014 年 11 月 17 日
回答済み: Angie Ojeda 2021 年 6 月 26 日
I have designed a simple simulink and stateflow diagrams on Matlab. It works perfectly! But I have two issues:
1) The model runs too fast. What should I change (maybe on Model Configuration Parameters?) to make it slower so we can see the transitions?
2) Currently I just have a constant input. How can I set a series of constants, probably periodic? Like, I need an input of say 0 at time 0, then 1 after 1 minute, 2 at time 3, etc ?

回答 (2 件)

Sreeram Mohan
Sreeram Mohan 2014 年 11 月 17 日
Hi Ariana,
point 1: SIMULINK with its strength tries to simulate the block diagrams as fast as possible. This is what most of the users would like to do as its not pratcically possible to wait in real time (go by clock) to simulate some systems that may span across years.
point2 : Having said the above in your case. You could try to investigate the "From Workspace " block that takes a time series input to time the inputs based on time or use the signal builder block.
Let me know if this helps ?
--Sreeram Mohan
  2 件のコメント
Ariana
Ariana 2014 年 11 月 17 日
Thanks. 1 was good. For 2 I was not really able to find that. Is that a simulink block? And inside it I need to specify the input?
Sreeram Mohan
Sreeram Mohan 2014 年 11 月 21 日
Hi Ariana,
The "From Workspace" block should be found in the sources in the Simulink library
--sreeram

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


Angie Ojeda
Angie Ojeda 2021 年 6 月 26 日
You can try:
and click in enable pacing to slow down simulation.

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by