Alternative to the Differential block

조회 수: 2 (최근 30일)
Joe Jones
Joe Jones 2022년 7월 23일
댓글: Joe Jones 2022년 7월 24일
hello,everyone!
I need to find the derivative of the system output in the simulink model. I used the derivative block(please see the attached figure) but the display is wrong. I asked someone to tell me why and he told me that the derivative block is indeed prone to problems. So it is best to replace it when necessary. Therefore, I would like to ask what kind of approximate differential method can replace this derivative block? Thanks.
  댓글 수: 1
Paul
Paul 2022년 7월 23일
Hard to say without more information, but it may be possible to slightly refactor the model to extract the derivative directly. Would need to know how the output is computed.

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

답변 (1개)

Sam Chak
Sam Chak 2022년 7월 23일
  댓글 수: 1
Joe Jones
Joe Jones 2022년 7월 24일
Dear
Thank you for your advice!
I download the ‘differentiator_v3.zip’ and replace the previous block with the robust exact differentiator block. However, the model does't run. The main error can be seen in the attached figure. Besides, there are many minor errors like 'Input ports (4, 5, 6) of 'cgadrc_test/cg1/MATLAB Function' are involved in the loop'. I think these minor errors may be caused by main error. As long as the main error is solved, the minor errors should be solved. If possible, please help me. Thank you!@Sam Chak

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by