Simulink stepブロックのステップ時間について

ステップ時間を変更しても、ステップ値が最初から入力されてしまいます。ステップ時間1、5000、10000を試したのですがすべて同じ波形が出力されてしまいます。また、50000に変更するとエラーが発生してシミュレーション実行できません。どのような問題が考えられますか?

 Accepted Answer

Naoya
Naoya on 18 Nov 2020

2 votes

キャプチャ画面をみてみますと、Scopeブロックの右下部に オフセット=46801 / T=57601.000 と表示されているようです。
こちらは、Scopeブロック側の設定 (Scopeブロックを右クリック > コンフィギュレーションプロパティ> 時間 > 時間範囲) で、 その設定した時間ごとに Scopeブロックの表示が一新されることになります。
キャプチャ画面では、実際、時間軸が 46801 ~ 57601 sec になっていることになります。 ステップの立ち上がりが 46801 sec 以前であれば、現状の Scope上では 常に 1 が表示されるようにみえます。

More Answers (1)

Deepak Meena
Deepak Meena on 18 Nov 2020

1 vote

Hi,
As Naoya clearly mentioned it can be the problem in the configuration settings of Scope block , try going to configuration settings of scope and make the sample time to -1 so it will have same sample time as of step block .
If that doesn't help , attch the simulink model , we will try to debug further .
Thanks
Deepak

Products

Release

R2020a

Tags

Asked:

on 16 Nov 2020

Answered:

on 18 Nov 2020

Community Treasure Hunt

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

Start Hunting!