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

4 visualizaciones (últimos 30 días)
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"

Respuestas (1)

Shlok
Shlok el 17 de Jul. de 2024
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.

Categorías

Más información sobre MATLAB Coder en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by