My Assignment
My Assignment
i.
ii.
iii.
iv.
v.
Design the controller in z domain using emulation or any direct method or state
space.
vi.
Page 1
To illustrate the linearization of a non linear system let us consider the following 3rd
order system:
3
2
+
2
+
3 sin(2) =
3
2
Page 2
Expanding the non linear state equation into a Taylor series about x(t) = x0(t) and neglecting all
the higher order terms yields:
() = (0 , 0 ) + =1
( ,)
( ,)
( 0 ) + =1
( 0 )
( , )
( , )
= (0 , 0 ) +
+
=1
=1
1
1
2
1
3
[1
1
2
2
2
3
2
1
3
1
2
[
2] +
3
3
3
3 ]
3
[ ]
Where
1
1
2
=
1
3
[1
1
2
2
2
3
2
1
1
3
2
, =
3
3
3
[ ]
3 ]
And A* and B* should be evaluated at equilibrium points. Thus linearizing the given system about
x0
We shall obtain the state space model as follows:
1
0
1
0 1
0
[2 ] = [ 0
0
1 ] [2 ] + [0]
6 1 2 3
1
3
Page 3
242.9233
149.6000
RiseTime: 0.7435
SettlingTime: 4.2519
SettlingMin: 0.9280
SettlingMax: 1.2366
Overshoot: 24.9364
Undershoot: 0
Peak: 1.2366
PeakTime: 1.7705
Page 4
Step Response
1.4
1.2
Amplitude
0.8
0.6
0.4
0.2
Time (sec)
We can see that the settling time specification as well as peak overshoot specifications has been
met. Now let us proceed to MATLABS SIMULINK in order to digitalize/discretize the
system.
In order to discretize the system we shall make use of Simulink tool, Model Discretizer,
with a sampling time of 0.12s.
Page 5
Step Response
1.4
1.2
Amplitude
0.8
0.6
0.4
0.2
Time (sec)
Once we discretize the given system we would get the transfer function as:
Page 6
Step Response
1.4
1.2
Amplitude
0.8
0.6
0.4
0.2
Time (sec)
Figure 4. Step response of the discretised system for a sampling time of 0.06s
Step Response
1.4
1.2
Amplitude
0.8
0.6
0.4
0.2
Time (sec)
Page 7
Analysis
On analyzing the step responses plotted for different sampling times, 0.006 gave a near accurate
reproduction of step response for the given system in its continuous form. An important point
to be noted is that the sampling time need to be less than one tenth of the Rise Time else
significant loss of information is incurred. To illustrate this let us plot the step response for a
sampling time of 0.24s.
Step Response
1.4
1.2
Amplitude
0.8
0.6
0.4
0.2
Time (sec)
Now let us study the effect of different non linearities added to the system.
1. Saturation Non Linearity.
Saturation nonlinearity could be added to the system once it is modeled and discretized
in simulink. The step response after adding the non linearity is also shown below.
It can be observed that the Mp of the response is reduced and the response settles at 0.5,
since the saturation non linearity has upper limit and lower limit set to 0.5 and -0.5
respectively.
Page 8
Figure 8. Step Response of the system after adding saturation non linearity.
Page 9
A dead zone non linearity also made the circuit settle at a less value at steady state.
3. Now let us study effect of Gaussian noise into the system.
Let us add a Gaussian noise to the model and plot the step response.
Page 10
Figure 12. Step Response of the system after adding noise to the system.
A Gaussian noise to the system affects it response and the response becomes
unbounded.
Page 11