Вы находитесь на странице: 1из 4

LAB TEST

NAME: YONG CHEAH FUK IC/MATRIX: I10006073 COURSE CODE: EEE2108 COURSE NAME: MODERN CONTROL SYSTEM ENGINEERING LECTURERS NAME: MR. JEYAGOPI

1) >> t=0:0.01:5; >> for k=5:-1:2; for a=1.5:-0.05:0.05; n=[0 0 1.2*k 2.4*k*a 1.2*k*a^2]; d=[0.36 1.86 2.5+1.2*k 1+2.4*k*a 1.2*k*a^2]; y=step(n,d,t); m=max(y); s=501;while y(s)>0.98 & y(s)<1.02; s=s-1;end; ts=(s-1)*0.01; if m<1.10 & m>1.05 & ts<3.0 break; end end if m<1.10 & m>1.05 & ts<3.0 break end end >> plot(t,y)

%setting range of t for 5 with increment of 0.1 %setting range for 2 with increment of -1 %setting range for 0.05 with increment of -0.05 %create numerator polynomial %create denominator polynomial %unit step response %set m as max (y) %set s while in y(s)>0.98 & y(s)<1.02 condition %make s=s-1every loop then end %set ts as =(s-1)*0.01; %set the condition %pause the loop %end of program %end of program %set the condition %pause the loop %end of program %end of program %plot the graph

2) >> solution=[k;a;m;ts] solution = 4.0000 0.7000 1.0846 2.7000 >> n1=[1.2*3.8 2.4*0.75*3.8 1.2*3.8*0.75^2]; >> d1=[0.36 1.86 2.5+1.2*3.8 1+2.4*0.75*3.8 1.2*3.8*0.75^2]; >> n2=[1.2]; >> d2=[0.36 1.86 2.5 1]; >> step(n1,d1) >> hold on >> step(n2,d2)

%find the solution using command

%create numerator polynomial %create denominator polynomial %create numerator polynomial %create denominator polynomial %unit step response %hold the previous graph %unit step response

SUMMARY
A proportional integral derivation [PID] is a generic loop feeback mechanism (controller) widely used in industrial control system. The PID mostly used in the feeback controller. As we know PID controller (algorithm) involves three separate constant parameters, and is accordingly sometimes called three-term control: the proportional, the integral and derivative values, denoted P, I, and D. these values can be interpreted in terms of time: P depends on the present error, I on the accumulation of past errors, and D is a prediction of future errors, based on current rate of change. The response of the controller can be described in terms of the responsiveness of the controller to an error, the degree to which the controller overshoots the set point and the degree of system oscillation. The design of PIV is base on the step and root locus. Nowadays, is use in everywhere temperature, motion, flow controller and its also available in analog digital from. It helps us easier to get the output(position, temperature, velocity and so on). The PIV controller can do the job well.

Вам также может понравиться