How to compare a value over time in Simulink

1 回表示 (過去 30 日間)
Trevor Youngman
Trevor Youngman 2021 年 8 月 5 日
コメント済み: Trevor Youngman 2021 年 8 月 6 日
I am attempting to take a value (in my instance a boolean) and see if it is equal to a set value (in my case True) for a given amount of time. Is there a function in Simulink that would help me achieve this?

採用された回答

stozaki
stozaki 2021 年 8 月 6 日
Hi Trevor,
The processing you want to perform is not in the Simulink standard block. So I modeled the function you want to detect.
It is created with Simulink standard blocks only. I created this model with R2021a
You can use this model by setting start_time and stop_time to start and end times.
  3 件のコメント
stozaki
stozaki 2021 年 8 月 6 日
I have attached the one I created with R2018b.
Please check out this model.
stozaki
Trevor Youngman
Trevor Youngman 2021 年 8 月 6 日
Thank you, this has answered my question

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by