Azzera filtri
Azzera filtri

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

14 visualizzazioni (ultimi 30 giorni)
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"

Risposte (1)

Shlok
Shlok il 17 Lug 2024 alle 10:15
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.

Categorie

Scopri di più su MATLAB Coder in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by