Professional Documents
Culture Documents
CA2 Control System (May 2024)
CA2 Control System (May 2024)
1
TEL306/03 Control Systems Pre-lab Exercises
Note: This pre-lab exercises serve the purpose of familiarizing you with the
VisSim software, which you will be using for the lab exercises.
By combining the simplicity and clarity of a block diagram interface with a high-
performance mathematical engine, VisSim provides fast and accurate solutions for
linear, nonlinear, continuous time, discrete time, SISO, MIMO, multi-rate, and hybrid
systems. With VisSim's wide selection of block operations and expression handling,
complex systems can be quickly entered into VisSim. Using VisSim, step response,
system dynamic and etc will be plotted automatically. Furthermore, thiswill simplify
analysis and design of a control system.
2
Constructing a general control system block diagram
To create a new block diagram, click the left mouse button to select the desire block
diagram either on block diagram toolbar or block diagram window. Below are some
of the common block diagram which often used in control system.
A transfer function
𝑛(𝑠)
𝐺(𝑠) =
𝑑(𝑠)
8𝑠 3 + 16𝑠 + 4
𝐺(𝑠) =
10𝑠 5 + 20𝑠 3 + 2𝑠 2 + 4
Polynomial Coefficients
Numerator : 8 0 16 4
Denominator : 10 0 20 2 0 4
3
Pre-Lab Exercise 1:
Construct a block diagram as shown in Figure 2 by using VisSim simulation.
Determine the rise time and peak time from the simulation output.
R(s) =
+ C(s)
Figure 2
Rise time
4
Theoretical calculation :
𝐶(𝑠) 16
= 2
𝑅(𝑠) 𝑠 + 2𝑠 + 16
Therefore 𝜔𝑛 2 = 16, 𝜔𝑛 = 4
1
2𝜀𝜔𝑛 = 2, 𝜀 =
4
𝜔
𝜋−𝑡𝑎𝑛−1 ( 𝑑 )
𝜀𝜔𝑛
𝑇𝑟 = = 0.6755
𝜔𝑛
𝜋
𝑇𝑝 = 𝜔 = 1.11
𝑑
Minor differences can occur between results obtained from theoretical calculations
and simulations. This is caused by the number of decimals used in the
calculations.
5
Pre-Lab Exercise 2:
Construct the four basic types of filter, i.e. lowpass, highpass, bandpass and bandstop
filters with second order transfer functions using block diagram in Figure 5. Given ωo=1
and Q=2.5.
Activity 1:
Identify the locations of the poles and zeros and determine the step response and
frequency response using VisSim simulation. Thus, fill in the blanks in Table 1.
Comment on the results.
Input Output
Figure 5
Table 1
Filter Location Location of Type of Rise Peak
N ( s) of poles Filter Time Time
zero(s)
1 𝜔0 2
2 𝜔0
𝑠
𝑜
3
𝑠2
4 𝑠 2 + 𝜔0 2
Activity 2:
By using filter no. 4 in Table 1, move the zeros towards the location of the poles while
maintaining the magnitude of the zeros unchanged. The final location of the zeros will
be the same as the location of the poles.
Determine the frequency response and the root locus plot using VisSim simulation.
Comment on the results.
6
TEL306/03 Control Systems Assignment 2 Lab Exercise 1 – Performance of
the Control System
+ +
R(s)
C(s)
- -
Figure 1
2. By using Routh Hurwitz tabulation method, determine whether the unity feedback
system of Figure 2 is stable if
140
𝐺(𝑠) =
(𝑠 + 1)(𝑠 + 2)(𝑠 + 3)(𝑠 = 4)
a. How many poles are in the right half-plane, left-half in the system.
b. Verify the system stability by using VisSim simulation.
7
TEL306/03 Control Systems Assignment 2 Lab Exercise 2 – Filter Design
a. The step response of the system, thus the overshoot, settling time and steady
state error.
b. The root-locus plot of the system and comment the stability.
2. Design and apply a notch filter to achieve a better step response and stability.
Compare and comment on the results of before and after the filter is applied to
the system.
8
TEL306/03 Control Systems Assignment 2 Lab Exercise 3 - Robotic Arm
Simulations
Robotic arms are commonly used especially in the heavy industry such as automobile
manufacturing factory. Along the production line, one of the robotic armis required to
have a bandwidth of at least 1 Hz and a phase margin (PM) of 45o. Thesystem is with
the process transfer function as shown below in Figure 4:
Required Tasks
1. Determine a suitable value for the gain, K, and suggest a suitable phase
compensator, Gc(s).
2. Justify your suggestion of the phase compensator.
3. Obtain the transfer function for the phase compensator by using VisSim simulator
software.
Design Procedure
The general procedures for designing a phase compensator is given below:
1. Determine the gain, K, to satisfy the requirement such as the steady state error
tolerance and the bandwidth needed.
2. Construct Bode plot and measure the PM.
3. Determine the values of α and ∅m. Refer unit materials for the choice of phase
compensator.
4. Calculate the frequency at which the maximum phase lead to be located, ωm.
5. Calculate the τ value.
6. Substitute the α and τ values into the phase compensator transfer function.
7. Redraw the Bode plot and check if the PM fulfil the requirement. If not, the
procedures are repeated by appropriate adjustment to the gain, K, and phase
allowance of the ∅m.
9
RUBRIC FOR ASSESSING LAB REPORTS
1 2 3 4
Results: Figures, graphs, Most figures, graphs, All figures, graphs, All figures, graphs,
tables contain tables OK, some still tables are correctly tables are correctly
data, figures, errors or are poorly missing some drawn, but some drawn, are
graphs, constructed, have important or required have minor numbered and
tables, etc. missing titles, features problems or could contain
captions or still be improved titles/captions.
(25%) numbers, units
missing or
incorrect, etc.
Discussion Very incomplete or Some of the results Almost all of the All important trends
incorrect have been correctly results have been and data
(30%) interpretation of interpreted and correctly interpreted comparisons have
trends and discussed; partial but and discussed, only been interpreted
comparison of data incomplete minor improvements correctly and
indicating a lack of understanding of are needed discussed, good
understanding of results is still evident understanding of
results results is conveyed
Appearance Sections out of Sections in order, All sections in order, All sections in order,
and order, too much contains the minimum formatting generally well-formatted, very
formatting handwritten copy, allowable amount of good but could stillbe readable
sloppy formatting handwritten copy, improved
(5%) formatting is rough
but readable
10