Professional Documents
Culture Documents
Linear Control Systems Lab: E X Per I M E NT NO: 3
Linear Control Systems Lab: E X Per I M E NT NO: 3
Linear Control Systems Lab: E X Per I M E NT NO: 3
EXPERIMENT NO: 3
Batch:
Date of Experiment:
Remarks:
Instructor’s Signature
Experiment No 3:
Objective:
In this lab we will find transfer function of the translational mechanical system. We will also find poles
and zeroes of transfer function and plot them using LabVIEW and Matlab.
Overview:
A transfer function (also known as the system function or network function and, when plotted as a
graph, transfer curve) is a mathematical representation, in terms of spatial or temporal frequency, of the
relation between the input and output of a linear time-invariant system with zero initial conditions and
zero-point equilibrium.
MATLAB and LAB VIEW provide functions for the implementation of transfer function.
Procedure:
To find the transfer function, we will take a free body diagram of mass spring system.
Place on the mass all forces felt by the mass. We assume the mass is traveling toward the right. Thus,
only the applied force points to the right; all other forces impede the motion and act to oppose it. Hence,
the spring, viscous damper, and the force due to acceleration point to the left. We now write the
differential equation of motion using Newton’s law to sum to zero all of the forces shown on the mass.
1
Free body diagram:
Where,
M= mass
Fv= B = damping coefficient
K= spring constant
F(t)= applied force
2
Taking the Laplace transform, assuming zero initial conditions,
Block diagram:
Where,
F(s)=input
X(s) = output
LAB VIEW:
For this method, simply follow the following path in “block diagram” of lab view:
Control system and simulation
Control design
Model construction
Construct transfer function
Right click and label
Select SISO(symbolic)
Create controls i.e, num(symbolic) and denum(symbolic) and variable
Draw transfer function
Create indicator
3
Figure:
The motion of the mass, denoted by y(t), is described by the differential equation
where θ = cos-1 ζ, ωn2 = k/M and 2ζ ωn = b/M. The initial displacement is y(0).
The transient system response is underdamped when ζ < 1, overdamped when ζ > 1, and critically
damped when ζ = 1.
4
Example: Spring-Mass-Damper Simulation
We can use LabVIEW to visualize the unforced time response of the mass displacement following an
initial displacement of y(0). Consider the underdamped case, where:
MATLAB:
Submit these tasks along with LAB reports, also attach figures to view VIs and results.
>>num = [1 0]; 5
>>den = [1 2 1];
>>sys = tf(num,den)
Transfer function:
A useful trick is to create the Laplace variable, s. That way, you can specify polynomials using s as the
polynomial variable.
>>s=tf('s');
>>sys= s/(s^2 + 2*s + 1)
Transfer function:
Zero/pole/gain:
produces the same transfer function built in the TF example, but the representation is now ZPK.
Zero/pole/gain:
pzmap
Compute pole-zero map of LTI models
6
pzmap(sys)
pzmap(sys1,sys2,...,sysN)
[p,z] = pzmap(sys)
Description:
pzmap(sys) plots the pole-zero map of the
continuous- or discrete-time LTI model sys. For
SISO systems, pzmap plots the transfer function
poles and zeros. The poles are plotted as x's and the
zeros are plotted as o's.
7
arguments, all three commands plot the response on
the screen. For example:
To obtain an impulse response
>> H = tf([2 5 1],[1 2 3]); >>impulse(H)
Time-interval specification:
>> t = 0:0.01:10;
>> impulse(H,t)
>> step(H,t)
8
Example:
Consider the transfer functions
Utilizing LabVIEW, we can compute the poles and zeros of G(s), the characteristic equation of H(s),
and divide G(s) by H(s). We can also obtain a plot of the pole-zero map of G(s)/H (s) in the complex
plane. The pole-zero map of the transfer function G(s)/H (s) and the associated LabVIEW commands are
shown in Fig below.
The pole-zero map shows clearly the five zero locations, but it appears that there are only two poles.
This cannot be the case, since we know that the number of poles must be greater than or equal to the
number of zeros. Using the CD Pole-Zero Map function, we ascertain that there are in fact four poles at
s = -1. Hence, multiple poles or multiple zeros at the same location cannot be discerned on the pole-zero
map.
9
Post Lab Task:
You have to explore “for loop and while loop structure” in LabVIEW and do by yourself a program using
for loop and while loop structure in LabVIEW and attach with lab report.
Comments:
10
11