필터 지우기
필터 지우기

how to resolve "At least one value is out of range for rectangle or position" error?

조회 수: 8 (최근 30일)
vivek vala
vivek vala 2024년 3월 12일
답변: Shlok 2024년 7월 17일
Description: I have my own custom script for creating harness and in that While creating test harness i am facing this error on "create.m" default script at this line. i am using matlab 2018b version
>> Simulink.harness.create(harnessOwner, varargin{:});
and when i am trying to go inside this it is telling it is .p script so unable to debug it. so, after run the script it is giving me this error "At least one value is out of range for rectangle or position. All x values must be within -32786..32767 range, all y values must be within -32786..32767 range"

답변 (1개)

Shlok
Shlok 2024년 7월 17일
Hi,
Considering the error mentioned above, it looks like that coordinate values in your harness creation script are falling outside the acceptable range (-32786 to 32767) for rectangle or position coordinates in Simulink.
Since “.p” files cannot be debugged directly, you can try isolating the problem by simplifying your input, breaking down the process into smaller steps and try logging the inputs to identify where the out-of-range values are being introduced.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by