Warning:Minimum and maximum properties on ... are not honored during simulation.
Mostrar comentarios más antiguos
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
Respuestas (1)
Josh Kahn
el 29 de Abr. de 2025
0 votos
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
Categorías
Más información sobre Model References en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!