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

4 次查看(过去 30 天)
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