PID Tuning tools not supported for plant models of type 'tf'
1 回表示 (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (1 件)
Arkadiy Turevskiy
2016 年 8 月 19 日
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.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!