Search for notes by fellow students, in your own course and all over the country.

Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.

My Basket

You have nothing in your shopping cart yet.

Title: CONTROL
Description: Control question and answerd by MATLAB with codes provided. Transfer function. Pole- Zero map. PID .

Document Preview

Extracts from the notes are below, to see the PDF you'll receive please use the links above


Question 1
The transfer function that is to be studied in this question is
( )
The discreet time transfer functions were calculated for Ts = 0
...
1
The output is as follows,
Transfer function:
9
...
98e-006
----------------------z^2 - 1
...
997
Sampling time (seconds): 0
...
09056 z + 0
...
724 z + 0
...
1

Clearly there is a difference between the two discreet transfer functions, specifically in the
numerator and denominator coefficients
...
The difference because of the time
Table 1 - Tabulated data

Ts
a1
a2
b0
b1

0
...
1
-1
...
72357
0
...
740818
9
...
090559
9
...
081941

While the table shows the change in the values, it does not show the trend of the values either
increasing or decreasing
...
The coefficient of z
square has an increasing trend with respect to the sampling time while all the other coefficients
show a decreasing trend
...
This is shown in figure 2 as the poles move towards the centre with
increasing sample time
...
Therefore, discretization would affect stability and performance which heeds to be
considered and is discussed in later parts of this report
...
001); % small sampling time
Gd2 = c2d(Gs,0
...
den{1}(2),Gd2
...
den{1}(3),Gd2
...
num{1}(2),Gd2
...
num{1}(3),Gd2
...
001,0
...
The system with and without a controller will be simulated using MATLAB
...
There is no controller but the system
digital response is plotted in figure 4 to figure 7
...
2s, 0
...
6s, and 0
...

Figures 3 to 7 show that in the three methods of discretization, the difference increases as the time
sample increases from 0
...
8s
...


Figure 3 - closed loop unity feedback

Figure 4 - 0
...
04

Figure 6 - 0
...
08

clc;
clear all;
% transfer function
s = tf('s');
Gs = 20/((s+1)*(s+2));
for v = 1:5;
Ts = 0
...
The PID is coded
with the following code,
% PID constants
Kp = 10;
Ki = 20;
Kd = 10;
% PID equation
C = Kp + Ki/s + Kd*s;
dC = c2d(C,Ts,'tustin');
Gd_cl_control = feedback(dC*Gd_Tus,1);
step(Gd_cl_control,20);

Figures 8 shows this response which makes it clear that the PID response is better
...
08) and is stable
...
1;
figure;
hold on;
% Tustin
Gd_Tus = c2d(Gs,Ts,'tustin');
Gd_Tus_cl = feedback(Gd_Tus,1);
step(Gd_Tus_cl,12);
% PID constants
Kp = 10;
Ki = 20;
Kd = 10;
% PID equation
C = Kp + Ki/s + Kd*s;
dC = c2d(C,Ts,'tustin');
Gd_cl_control = feedback(dC*Gd_Tus,1);
step(Gd_cl_control,20);

% complete labelling of graph
legend('No PID', 'PID');
xlabel('Time')
ylabel('Output')
title('response behaviour')


Title: CONTROL
Description: Control question and answerd by MATLAB with codes provided. Transfer function. Pole- Zero map. PID .