필터 지우기
필터 지우기

Transport delay block numerical problem

조회 수: 4 (최근 30일)
Alexandru Bitca
Alexandru Bitca 2019년 8월 30일
편집: Alexandru Bitca 2019년 8월 30일
I have a Simulink model which contains a Transport Delay block that is being fed with a constant value when it causes the following issue:
While running, the Transport Delay block introduces an xe-16 difference between the input and output signals.
This difference is then captured by a downstream Relational Operator block which compares the input and output of the Transport Delay block.
Any ideas why this might happen?

답변 (1개)

Osama Khallouf
Osama Khallouf 2019년 8월 30일
I ran into a similar problem a while ago and could not figure out the reason behind. Nevertheless, I tried this and it worked.
I am assuming that the Relational Operator compares the signal you are displaying (out - in) with zero. Change that into comparing the absolute value of (out - in) to a specified value of error (1e-15 for example), so it will behave as there is no difference between the 2 signals as long as the absolute difference is less than that specified value.
Hope you find this helpful.
  댓글 수: 1
Alexandru Bitca
Alexandru Bitca 2019년 8월 30일
The Relational Operator block compares the input and the output of the Transport Delay block.

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

카테고리

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