problem while tuning PID controller
Afficher commentaires plus anciens
I try to tune a PID-Controller in Matlab2010b if i use a discrete one i get the error Message "The second input argument of the "d2d" command must be a positive scalar." if i use a continuous one i get "Input to SVD must not contain NaN or Inf." what i have to pay attention that this block works fine? My system can became NaN due to a Sqrt-expression....
Réponse acceptée
Plus de réponses (4)
Arkadiy Turevskiy
le 12 Déc 2011
0 votes
Can you provide the plant model?
Martin1986
le 13 Déc 2011
0 votes
Yoni
le 19 Jan 2012
0 votes
Hi Martin,
I've had the same problem.
It seems the discrete PID option does not handle a sampling time of "-1" (should have inherited the sampling time it that case)
So the workaround for your problem is to enter your own explicit expression for the sampling time. do not leave it on "-1".
This should eliminate the "The second input argument of the "d2d" command must be a positive scalar."
Cheers, Yoni
1 commentaire
Nail
le 14 Mai 2018
Also, simulation time must not be set to "inf".
Martin1986
le 8 Fév 2012
0 votes
Catégories
En savoir plus sur PID Controller Tuning dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!