Code covered by the BSD License
-
autogui(t,x,u,flag,RefBlock)
AUTOGUI S-function for making a simple PID GUI.
-
envgui(t,x,u,flag,NoiseBlock,...
ENVGUI S-function for making a simple PID GUI.
-
bodePIDcompare(num,den,tau)
BODEPIDCOMPARE Comparison of Bode Diagrams with different autotuning
-
butterdesign(N,Wc)
BUTTERDESIGN Butterworth analog lowpass filter design.
-
idareas(y,As,Ts)
IDAREAS Identification of a FOPDT model using the method of the
-
pid_autotuner(t,x,u,flag,Ts,A...
PID_AUTOTUNER Supervisor of a PID autotuner (implemented as an S-function).
-
pid_isatd(t,x,u,flag,Ts,umin,...
PID_ISATD Discrete time ISA-PID (implemented as an S-function).
-
pid_structure(model,reqStruct...
PID_STRUCTURE Structure selection for a ISA-PID regulator.
-
pid_tuning(model,method,param...
PID_TUNING Tune the parameters of a ISA-PID regulator with some
-
stepPIDcompare(num,den,tau)
STEPPIDCOMPARE Comparison of step response on setpoint and load
-
Contents.m
-
autotunerPID
-
steppidsupport
-
Autotuner PID Toolkit
-
AutotunerPID Toolkit Product ...
-
AutotunerPID Toolkit Product ...
-
Credits :: Preface (Autotuner...
-
Description of Contents
-
Description of autogui
-
Description of bodePIDcompare
-
Description of butterdesign
-
Description of envgui
-
Description of idareas
-
Description of pid_autotuner
-
Description of pid_isatd
-
Description of pid_structure
-
Description of pid_tuning
-
Description of stepPIDcompare
-
Environment Panel :: Getting ...
-
Examples (AutotunerPID Toolki...
-
Getting started with Autotune...
-
Index for Directory .
-
Introduction to PID Autotunin...
-
Link to the AutotunerPID Tool...
-
PID Control Panel :: Getting ...
-
Preface (AutotunerPID Toolkit)
-
Process Identification :: Int...
-
Reference :: Preface (Autotun...
-
Setting up the simulation :: ...
-
Setting up the simulation :: ...
-
Synthesis Methods :: Introduc...
-
The ISA-PID Regulator :: Intr...
-
autopid_ixframe.html
-
autopid_tocframe.html
-
View all files
from
AutotunerPID Toolkit
by William Spinelli
Interactive simulation of a PID with autotuning.
|
| Description of pid_structure |
| AutotunerPID Toolkit |
 |
pid_structure
PURPOSE 
Structure selection for a ISA-PID regulator.
SYNOPSIS 
function regStruct = pid_structure(model,reqStruct)
DESCRIPTION 
CROSS-REFERENCE INFORMATION 
This function calls:
This function is called by:
- pid_autotuner PID_SUPERV Supervisor of a PID autotuner (implmented as an S-function)
SOURCE CODE 
0001 function regStruct = pid_structure(model,reqStruct)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 if nargin < 2
0023 reqStruct = 'AUTO';
0024 end
0025
0026 switch reqStruct
0027 case 'PI'
0028
0029 regStruct = 'PI';
0030
0031 case 'PID'
0032
0033 regStruct = 'PID';
0034
0035 case 'AUTO'
0036 if isfield(model,'m')
0037
0038 m = model.m; L = model.L; T = model.T;
0039
0040
0041 wmin = (-pi/2)/L;
0042 wmax = (-pi)/L;
0043 w = real(logspace(log10(wmin),log10(wmax),1024));
0044 phaseM = angle(m*exp(-j*L*w)./(1+j*w*T));
0045 wu = w(find(phaseM==min(phaseM)));
0046
0047 k1 = 1/abs(m*exp(-j*L*wu)/(1+j*wu*T));
0048 th1 = L/T;
0049
0050 if th1>1 & k1<1.5
0051 regStruct = 'PI';
0052 msgbox('Bad results expected','AutotunerPID','warn');
0053 elseif (th1>0.6 & th1<1) & (k1>1.5 & k1<2.25)
0054 regStruct = 'PI';
0055 elseif th1<0.6 & k1>2.25
0056 regStruct = 'PID';
0057 else
0058 regStruct = 'PID';
0059 msgbox('Bad results expected','AutotunerPID','warn');
0060 end
0061 else
0062 regStruct = 'PID';
0063 end
0064
0065 otherwise
0066 msgbox('Unknown structure','AutotunerPID','warn');
0067 regStruct = 'PID';
0068 end
| pid_isatd | | pid_tuning |  |
Generated on Wed 17-Mar-2004 09:29:44 by m2html © 2003
|
|
Contact us at files@mathworks.com