Errors when trying to define Design Requirements in Control System Designer
Afficher commentaires plus anciens
I am trying to set Design Requirements in a Bode plot for a discrete time system in Control System Designer, but I am getting error messages in the main MATLAB window. I've verified that I can reliably reproduce the error messages very simply:
fs = 100;
dt = 1/fs;
sys = tf(1,1,dt);
controlSystemDesigner(sys)
Then add a new Bode plot (doesn't seem to matter which one). Right click in that new Bode plot and select Design Requirements > New…
It then outputs these error messages in the main MATLAB window:
Unable to resolve the name 'Constr.Ts'.
Error in controllib.chart.BodePlot/getNewConstraint (line 1480)
newConstraint.Requirement.setData('xData',(pi/Constr.Ts) * [0.01 0.1]);
^^^^^^^^^
Error in editconstr.NewRequirementDialog/settype (line 177)
newConstraint = getNewConstraint(this.Client,Type,this.Constraint);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in editconstr.NewRequirementDialog/setClient (line 109)
this.settype(this.List(1).Type);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in editconstr.NewRequirementDialog.getInstance (line 39)
inst.setClient(Client,ParentFig);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in ctrlguis.csdesignerapp.plot.internal.ResponsePlot/designConstr (line 395)
editconstr.NewRequirementDialog.getInstance(View,View.Parent);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in ctrlguis.csdesignerapp.plot.internal.ResponsePlot/createChart>LocalDesignConstr (line 133)
designConstr(Viewer,View,ActionType)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in ctrlguis.csdesignerapp.plot.internal.ResponsePlot/createChart>@(es,ed)LocalDesignConstr(this,hChart,'new') (line 58)
MenuSelectedFcn=@(es,ed) LocalDesignConstr(this,hChart,'new'));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error using matlab.ui.internal.controller.WebMenuController/fireMenuSelectedEvent (line 78)
Error while evaluating Menu Callback.
Any idea what is going on and how I can fix it?
UPDATE: Walter's comment reminded me that I forgot to mention, I'm running MATLAB in Windows 11 Pro on a HP ZBook Fury 16 G10 Mobile Workstation.
2 commentaires
Walter Roberson
le 6 Août 2025
Modifié(e) : Walter Roberson
le 6 Août 2025
Datapoint:
I had to play around for a bit but I was eventually able to replicate this problem on MacOS 15.6 with R2024b.
Jason
le 7 Août 2025
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Get Started with Control System Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!