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.
|
| idareas(y,As,Ts)
|
function model = idareas(y,As,Ts)
%IDAREAS Identification of a FOPDT model using the method of the
% areas.
%
% MODEL = IDAREAS(Y,As,Ts) returns a structure describing the identified
% FOPDT (First Order Plus Dead Time) model in the form
% M(s) = m*exp(-s*L) / (1+s*T)
% The structure has the following fields MODEL.m, MODEL.L and MODEL.T
% with obvious meaning.
% The function requires the recorded step response Y, the amplitude of
% the step used for identification As and the sample time Ts.
%
% Author: William Spinelli (wspinell@elet.polimi.it)
% Copyright 2004 W.Spinelli
% $Revision: 1.0 $ $Date: 2004/02/27 12:00:00 $
% compute auxiliary parameters
m = (y(end)-y(1))/As; % process gain
% if m<0 reverse the step response
if m<0
y = -y;
end
% change this setting one can try to robustify the identification process
% with noisy step response
y1 = y(1);
yN = y(end);
% reverse undershoot and overshoot
y(y<y1) = y1;
y(y>yN) = y(y>yN) - 2*(y(y>yN)-yN);
A0 = sum(yN-y)*Ts; % upper area
it0 = fix(A0/abs(m)/Ts); % compute the index of the vector
% (not the value of t0)
A1 = sum(y(1:it0)-y1)*Ts; % lower area
% compute model parameters
T = exp(1)*A1/abs(m);
L = max((A0-exp(1)*A1)/abs(m),0);
model.L = L;
model.T = T;
model.m = m;
|
|
Contact us at files@mathworks.com