How to compare a value over time in Simulink

조회 수: 2 (최근 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 CenterFile Exchange에서 Interactive Model Editing에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by