Warning:Minimum and maximum properties on ... are not honored during simulation.
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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
0 Commenti
Risposte (1)
Josh Kahn
il 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
0 Commenti
Vedere anche
Categorie
Scopri di più su System Composer 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!