2
exec(SCI+'/demos/control/scheme.dem');
4
x=[5,10,20,40,50,70,80,90];xmin=-10;xmax=100;
5
y=[22,28,30,32];ymin=12;ymax=40;
7
xx=[xmin,xmin,x([1 2 2 7 4 6 3 4 5 6 3 3 5 5]);xmax,xmax,x([3,2,7,7,5,8,3,4,5,6,4,4,6,6])];
8
yy=[ymin,ymax,y([3,1,1,1,3,3,2,2,2,2,2,4,2,4]);ymin,ymax,y([3,3,1,3,3,3,4,4,4,4,2,4,2,4])];
10
xset("window",0);xbasc();xselect();
11
plot2d(xx,yy,ones(1,16),'022');
12
xstring(28,30,'K');xstring(56,30,'Plant');xstring(12,28.80,'-');
13
xtitle('PLANT and CONTROLLER')
4
16
s=poly(0,'s');z=poly(0,'z');
5
x_message('Example of PID Design ')
17
x_message(['Example of PID Design '
18
'file: '+SCI+'/demos/control/pid.dem'])
6
20
n=x_choose(['Continuous time';'Discrete time'],'Select time domain');