0% found this document useful (0 votes)
44 views

COMSATS Institute of Information Technology Department of Electrical Engineering, CIIT

1) The document describes a lab experiment on modeling and analyzing the time response of first and second order systems using MATLAB. 2) Several tasks involve plotting the step response of first order systems with varying time constants, and comparing MATLAB and Simulink results. 3) Other tasks analyze the step response of a second order system for different damping ratios, plot poles to analyze settling time, and plot damping ratio vs percentage overshoot.

Uploaded by

Arslan Ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

COMSATS Institute of Information Technology Department of Electrical Engineering, CIIT

1) The document describes a lab experiment on modeling and analyzing the time response of first and second order systems using MATLAB. 2) Several tasks involve plotting the step response of first order systems with varying time constants, and comparing MATLAB and Simulink results. 3) Other tasks analyze the step response of a second order system for different damping ratios, plot poles to analyze settling time, and plot damping ratio vs percentage overshoot.

Uploaded by

Arslan Ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Controls Systems Lab # 6

COMSATS Institute of Information Technology


Department of Electrical Engineering, CIIT ISB

1
Controls Systems Lab # 6

Lab: 06
Course: EEE325 Control Systems
Instructor:

Student:
Reg. Number:
Name:
Batch: FA15
(Do not write anything here)
Group members: None

ASSESSMENT
Pre-lab Task: /
Lab Performance: /
Post-Lab: /
Total: /

Instructor’s remarks:

Lab # 06:

Introduction to “lsim” and Time Response of 1st and 2nd Order


Systems

2
Controls Systems Lab # 6

Objective:

 To implement transfer function.


 Introduction to LSIM command.
 To evaluate and analyze responses of first and second order systems.

In-lab:
Task 1: The standard form of a first order system is

1
𝐺(𝑠)=
Ts+1

Where T is the time constant of the system. For this transfer function:

 Plot step response using step function for T=1, 2 and 3 seconds.

 Comment the effect of time constant on the speed of the system response.
 Use ‘lsim’ for generating step response and compare the results with the ones
calculated in part a.

Figure 1: task 1 (a), (b), (c)

3
Controls Systems Lab # 6

Figure 2: Graphs

In this task, transfer function’s step response with the varying time factor is plotted.
Furthermore, system is plotted using lsim command for step and impulse inputs.

(b) By increasing the time value, response time slowed down. Settling time delayed by
increase in T.

Task 2: The standard form of a first order system is

1
𝐺(𝑠)=
s +1

For this transfer function:

 Simulate and give response using command ‘lsim’ function with input u=sin(t)
and u=exp(-t).
 Plot impulse and step response using MATLAB and SIMULINK and compare
results of the two.

In this task, response of system was plotted using lsim command when inputs were
sinusoid, exponential, step and impulse. Graphs are attached along with the MATLAB
code. In the second task, the impulse and step response, obtained by using MATLAB,
was verified with SIMULINK. Both results are same and can be observed in the figure
below.

4
Controls Systems Lab # 6

Figure 3: Part (a) code

Figure 4: Part (a) plots

5
Controls Systems Lab # 6

Figure 5: Simulink Step response

Figure 6: SIMULINK impulse response

Task 3: For wn =10rads/sec, plot the step response for general second order system for
zeta=0, 0.7, 1, 1.5, and compare the four systems.
6
Controls Systems Lab # 6

Figure 7

Figure 8

In this task, transfer function is calculated using the given equation in pre-lab and then specifying
numerator and denominator. Then, step response is plotted using different values of zeta. MTALAB
code and plots are shown.

Task 4: For the four systems given in task 1 plot their poles and identify the effect of
pole locations on the settling time of the system.

7
Controls Systems Lab # 6

Figure 9

Figure 10

Settling time increased as the poles become closer to the origin.

Task 5: Plot %OS vs. damping ratio and analyze the plot carefully.

8
Controls Systems Lab # 6

Figure 11

In this task, percentage overshoot and damping ratio is plotted using the formula given in pre-
lab.

Post-lab:
Task 1: Find the natural response of the following first order system. Assuming v(0)=10.

dV
iR + C + V = 0;
dt

dV
RC +V =0;
dt

RC (sV(s) – v (0)) +V =0;

RC sV(s) -10*RC +V(s) =0;

10 RC
V=
1+ sRC

9
Controls Systems Lab # 6

Figure 12

Task 2: For the system given below, find its unit step response and impulse response.

Figure 13

10
Controls Systems Lab # 6

Figure 14

11

You might also like