필터 지우기
필터 지우기

How can I add a time delay in the conditions of a state transition table?

조회 수: 8 (최근 30일)
Cristian Napole
Cristian Napole 2023년 3월 2일
댓글: Sai Kiran 2023년 3월 13일
I am working with a relatively simple model that has the following configuration:
The thing is that like this, the outputs are delayed as I added "on after(1,sec)" but actually, I need the delay before and in particular, in the conditions. I already tried with "after(x,tick/sec)[In_emergency_stop].." but I found that this delay uses absolute time. Actually, I'd like to have that delay every time that the state changes for every condition. Hence, I'd like to know if it is possible to make to include this feature.

답변 (1개)

Sai Kiran
Sai Kiran 2023년 3월 7일
Hi,
As per my understanding you are trying to add delays with a condition.
This can be done by the following command.
[after(1,sec)]{condition}
I hope it helps!
Thanks.
  댓글 수: 2
Cristian Napole
Cristian Napole 2023년 3월 13일
Hi Sai, thanks for the answer. Actually, I did try with that suggestion as I explained in the description but it doesn't work
Sai Kiran
Sai Kiran 2023년 3월 13일
Hi,
Can you please elaborate your question?
Thanks!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Complex Logic에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by