simulation issue about Scope

3 ビュー (過去 30 日間)
wenchao zhang
wenchao zhang 2023 年 7 月 8 日
コメント済み: wenchao zhang 2023 年 7 月 8 日
hello, guys,when i run the simulation, i found the scope not display the line with the time change, it keep stop at the begining, why, how to resolve

採用された回答

Satwik Samayamantry
Satwik Samayamantry 2023 年 7 月 8 日
Hello, you are connecting a constant block to the scope which is expected to work as shown only. But if you want to show the signal changing with time, you should connect to a time changing signal.
  1 件のコメント
wenchao zhang
wenchao zhang 2023 年 7 月 8 日
ok,thanks for your answer,i got it

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

その他の回答 (1 件)

Paul
Paul 2023 年 7 月 8 日
Hi wenchao zhang,
The Constant block, by default, has a constant sample time. For the model shown, constant sample time means that the output of the block is computed only once at the start of the simulation, as indicated by the scope. If you want to see the constant line in the scope, one way is to change the Constant block's sample time parameter to 0, i.e., continuous sample time.
  1 件のコメント
wenchao zhang
wenchao zhang 2023 年 7 月 8 日
thank you,Paul, yes,i will try it later, i think this is the root cause

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

カテゴリ

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

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by