Warning:Minimum and maximum properties on ... are not honored during simulation.

6 views (last 30 days)
Summary of Issue:
  • I'm receiving the following warning in Diagnostic View when I run the simulation: "Warning:Minimum and maximum properties on path/to/my/thing are not honored during simulation."
  • Model runs successfully but I would like to remove the warning regardless.
  • I've included the following supplementary information; let me know if more is needed. Any help would be appreciated.
Placement in Model:
[removed]
Matlab Function Linked:
function [statusData] = select_thing()
%% Debug Variable
load("mmyvars.mat", "verbose");
% Print Header is Verbose Enabled
headerVerbose("select_things", "select_thing");
% Update output pin
model_wrkspc = get_param(bdroot, "ModelWorkspace");
% Assign Output Pins
statusData.DiscreteStatus = getVariable(model_wrkspc, "myStatusVar");
if verbose == 1
disp (['Initial input: ', ...
num2str(statusData.DiscreteStatus)]);
end
end

Answers (1)

Josh Kahn
Josh Kahn on 29 Apr 2025
Hi Laura,
It sounds like the minimum and maximum values you have specified in the types editor are being exceeded by your behavior scripts. If you did not specify minimum and maximum values, then you may be exceeding the max allowable value of the native datatype. If you need help troubleshooting further, please submit a help ticket and so we can work through the issue with your model together:
Josh

Categories

Find more on System Composer in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!