PID Tuning tools not supported for plant models of type 'tf'

1 Ansicht (letzte 30 Tage)
Allan Andre do Nascimento
Allan Andre do Nascimento am 27 Jul. 2016
Hi everyone, I have been trying to use PID tuning tools from matlab and this is the error I get:
PID Tuning tools not supported for plant models of type 'tf'
The code being utilized is the following:
m1 = 290;
m2 = 59;
k1 = 16812;
k2 = 190000;
b1 = 1000;
alfa=4.515*(10^13);
beta=1;
gama=1.545*(10^9);
tau=(1/30);
Ps=10342500;
A=3.35*(10^(-4));
Aa=[0 1 0 0 0 0
-k1/m1 -(b1)/m1 (k1/m1) (b1/m1) A/m1 0
0 0 0 1 0 0
k1/m2 b1/m2 -(k1+k2)/m2 -b1/m2 -A/m2 0
0 -alfa*A 0 alfa*A -beta gama*sqrt(Ps)
0 0 0 0 0 -1/tau ];
Ba=[0
0
0
0
0
1/tau];
Ca=[1 0 0 0 0 0];
Da=0;
[num,den]=ss2tf(Aa,Ba,Ca,Da);
HH=ss(Aa,Ba,Ca,Da);
H=tf(num,den);
[C,info] = pidtune(H,'pid')
ZHI=zpk(H)
I have tried with the types ss, zpk and tf and none of them works. Could someone please help me?
Thank you very much.
Best regards,
Allan

Antworten (1)

Arkadiy Turevskiy
Arkadiy Turevskiy am 19 Aug. 2016
Your code runs fine when I try it. Could it be you have some 3rd party toolbpx installed which also has pidtune function? What do you get if you type >> which pidtune ? It should be something like this: C:\Program Files\MATLAB\R2016a\toolbox\control\ctrldesign\@DynamicSystem\pidtune.m % DynamicSystem method
If that's not the problem, then maybe it's the installation issue. You can contact technical support and they can assist you.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by