필터 지우기
필터 지우기

Unable to properly feedback an updated signal in simulink

조회 수: 1 (최근 30일)
Anthony Maalouly
Anthony Maalouly 2020년 10월 20일
댓글: Anthony Maalouly 2020년 10월 20일
Hello,
I'm trying to make a toy example work using simulink. I have a particle that i want to go in a circle. Basically what I want to do is to rotate progressively by 10 deg over 36 sec (so it makes a full circle).
How to code this in simulink? For the rotation, I used the 2d rotation matrix about z. I am basically having trouble feeding back the updated velocity as the new reference.

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 10월 20일
If you directly feed it back, you will create an algebraic loop, which is sometimes difficult to solve. Feedback through a delay block https://in.mathworks.com/help/simulink/slref/delay.html. Give a delay of 1 between output and feedback input.
  댓글 수: 4
Anthony Maalouly
Anthony Maalouly 2020년 10월 20일
This works now, thank you!

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

추가 답변 (1개)

Paul
Paul 2020년 10월 20일
Is there a reason why you wan to use a feedack loop where none really exists? Keep in mind that feedback loop is sampled and therefore the model is not integrating a continuous velocity. Why not just implement the equation for velocity directly, like so:
  댓글 수: 1
Anthony Maalouly
Anthony Maalouly 2020년 10월 20일
Yes there is a reason. Essentially, I want to use that feedback loop for a similar problem where I am controlling a particle and I want to add delta_v vectors under certain conditions. This toy example that I asked above simulated it well.
I do agree with you, one should not use feedback where no feedback is directly needed, and the solution above works as expected.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by