Errors when trying to define Design Requirements in Control System Designer
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Walter Roberson
il 6 Ago 2025
Modificato: Walter Roberson
il 6 Ago 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.
Risposta accettata
Andrew Ouellette
il 12 Ago 2025
This is a bug in the product. You should be able to change the line mentioned in this error from this:
Error in controllib.chart.BodePlot/getNewConstraint (line 1480)
newConstraint.Requirement.setData('xData',(pi/Constr.Ts) * [0.01 0.1]);
to this:
newConstraint.Requirement.setData('xData',(pi/newConstraint.Ts) * [0.01 0.1]);
and the requirement dialog will open correctly.
This issue will be fixed in a future release of MATLAB.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Classical Control Design 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!