Currently getting a domain error when running Simulink code. No indication where the error is occurring.

조회 수: 3 (최근 30일)
I'm getting the following error when running my simulink code:
Domain error. To compute complex results from real x, use 'asin(complex(x))'.
The model builds fine, but a few seconds into running this error comes up. The error dialog does not tell me where this error is occuring. I have several matlab function blocks that call asin, but can't tell which one is causing the problem.
Is this a bug? Is there a way to narrow down what block the error is occurring in?
  댓글 수: 2
Søren  Ketelsen
Søren Ketelsen 2016년 11월 22일
Hi Dave.
I face the same problem. I cannot locate where the error is occuring either.
Did you find a solution?
Jungsoo
Jungsoo 2017년 8월 10일
Hi, Dave and Søren. I have the same problem now. Did you find a solution? If you already did, please contact me via this e-mail: <mailto:juchowiwang13@hanmail.net juchowiwang13@hanmail.net>

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

답변 (2개)

Jaffary Yusuph
Jaffary Yusuph 2017년 8월 10일
I face the same problem. I cannot locate where the error is occuring either.
Did you find a solution?

Mike Spires
Mike Spires 2019년 11월 13일
I had this same problem, including the error dialog not telling me the location of the problem. The root problem is an input to asin that is outside the range -1 to 1. My issue turned out to be in a linked library block, which is a User-Defined MATLAB Function, so apparently the Simulink error reporting algorithm does not trace into such.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by