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

조회 수: 6 (최근 30일)
Laura
Laura 2025년 4월 28일
답변: Josh Kahn 2025년 4월 29일
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

답변 (1개)

Josh Kahn
Josh Kahn 2025년 4월 29일
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

카테고리

Help CenterFile Exchange에서 System Composer에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by