How to find this parameters..?
古いコメントを表示
[k,ku,pu]=znpidtuning(G,2)
T=1;
G=tf(3.24,[15.23*T 1]);
k=znpidtuning(G,2);
C=k.kc*(1+tf(1,[k.ti 0])); % the PI-controller
H=minreal(feedback(ss(G*C),1)); % the closed loop transfer function
[Gm,Pm,Wcg]=margin(G);
ku=Gm;
pu=2*pi/Wcg;
k.kc=ku/1.7;
k.ti=pu/2;
k.td=pu/8;
Hi i have made this as a finction znpidtuning But it shows undefined.. So how to solve it..? please help..
回答 (1 件)
Azzi Abdelmalek
2013 年 3 月 9 日
Check if your function is in the current folder
dir znpidtuning.m
7 件のコメント
pankajkumar
2013 年 3 月 9 日
Azzi Abdelmalek
2013 年 3 月 9 日
Ok, znpidtuning is a FEX function. Then why are you writing
function [k,ku,pu]=znpidtuning(G,2)
You should write
[k,ku,pu]=znpidtuning(G,2)
Azzi Abdelmalek
2013 年 3 月 9 日
But it seems that this function is not working well
pankajkumar
2013 年 3 月 9 日
Azzi Abdelmalek
2013 年 3 月 9 日
pankajkumar
2013 年 3 月 9 日
Azzi Abdelmalek
2013 年 3 月 9 日
But znpidtuning is not your own code
カテゴリ
ヘルプ センター および File Exchange で PID Controller Tuning についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!