Systems with two different execution rates

조회 수: 2 (최근 30일)
Samy Alkhayat
Samy Alkhayat 2022년 10월 18일
댓글: Samy Alkhayat 2022년 10월 21일
Hello,
I want to simulate 2 models that execute at 2 different rates
System 1 output (at 20 ms) is an input to system 2 (which executes at 10 ms), and system 2 output goes back to system 1 as a feedback signal.
How can this be accomplished in Simulink environment?
Thanks in anvance!

채택된 답변

Walter Roberson
Walter Roberson 2022년 10월 21일
If what you have is two blocks (or subsystems) both inside the same model, then you could use https://www.mathworks.com/help/simulink/slref/ratetransition.html rate transition block .
I am not familiar enough with Simulink to know all of the conditions under which blocks can end up running at different rates. I know that when you use a Simulink buffer block or a conversion between pixel streams and frames such as convertToFrames that the other side of the block is considered to run at a different rate.
  댓글 수: 1
Samy Alkhayat
Samy Alkhayat 2022년 10월 21일
I think this should fulfill the purpose of my application. Thank you!

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

추가 답변 (1개)

Paul
Paul 2022년 10월 18일
Hi Samy,
Are you intending to have one model reference the other via a Model block?
If so, and if you have at least R2022a, I suggest you check out this blog post, the comments at the bottom, and the links to the relevant doc pages. If you don't have 2022a, I don't think it can be done (I could be wrong).
  댓글 수: 1
Samy Alkhayat
Samy Alkhayat 2022년 10월 21일
Hi Paul,
Thanks for sharing the blog, unfortunately, I don't have this feature in the MATLAB version I have.
Thank you.

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

카테고리

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

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by