Abstract
In order to have a mathematical model in our physical system, we will be using transfer
function to describe the nature of our system. There are many types of system but in this
activity, we only focused on electrical, mechanical and electromechanical systems. By
applying the laws of science and engineering we then get the desired equation of the system.
In doing so, we will be able to apply Laplace transform which is in frequency domain.
Frequency domain means that it is in terms of frequency rather than time. We then simulate
the derived equations using the SciLab for us to determine the graphical representation of
the system.
∞
ℒ[f(t)] = F(s) = ∫ f(t)e−st dt (1.1)
0−
The inverse Laplace transform, which allows us to find f(t) given F(s), is
1 σ+j∞
ℒ −1 [F(s)] = ∫ F(s)est ds = f(t)u(t) (1.2)
2πj σ−j∞
1
Name: Annalou B. Detoya Course and Year: BSEE 5
EE 179.1 Section: W45 Laboratory Schedule: Saturday 12:00-3:00PM
Generally, a Transfer Function is the ratio of the output of a system to the input of a system,
in the Laplace domain. If we have an input function of R(s), and an output function C(s), we define
the transfer function G(s) to be:
𝐂(𝐬)
𝐆(𝐬) = 𝐑(𝐬) (1.3)
Example Problem:
This simple example has been provided for the students to better understand the
introductory concepts and to guide them through the process of obtaining the transfer function.
Find the transfer function relating to the capacitor voltage, Vc(s) to input voltage V(s).
The first step of a designer in every problem should be to determine which of the variables
is the input and the output, but both requirements are already determined in this particular
network as the problem states that we should consider the applied voltage as the input and the
capacitor voltage as the output.
In the next step of the process, we sum up the voltage around the loop assuming zero
initial conditions which leads to the following equation:
1 1
L di(t)
dt
+ Ri(t) + ∫0 i(τ)dτ = v(t)
C
2
Name: Annalou B. Detoya Course and Year: BSEE 5
EE 179.1 Section: W45 Laboratory Schedule: Saturday 12:00-3:00PM
Then we substitute our 2nd equation with the voltage-charge relationship for a capacitor.
Vc(s) 1/LC
= (1.4)
V(s) R 1
s 2 + L s + LC
SCILAB
Assuming values of R = 3 Ohms, L = 1 H, and C = 1 F. Using Scilab to generate our output function, we
have the following code:
The method begins by creating the Laplace variable s and then using it to form P as
described by equation (1.4). The next step would be to convert it to a continuous-time linear
transfer function, by using the syslin() command. Setting the values of t, we then get Vo using
the csim() function. Plotting Vo with respect to time, we get:
3
Name: Annalou B. Detoya Course and Year: BSEE 5
EE 179.1 Section: W45 Laboratory Schedule: Saturday 12:00-3:00PM
We can observe that the system can be manipulated with changing values of the
resistance, inductance and capacitance just by inputting the new values in the equation.
2 Objectives
The students will be able to find the Laplace transformation of the transfer functions and its
inverse and then verify it using the Scilab software.
The students will be able to find the transfer function from for linear time-invariant
electrical networks, mechanical systems & electromechanical systems and then verify it
using the Scilab software.
3 List of equipment/software
Personal Computer
Installation of SCILAB
Ballpoint pen and calculator
4 Pre-Lab Assignment
Solve for the transfer functions for each diagram: (A) Electrical Network, (B) Mechanical
System, (C) Electromechanical System. Write your solutions and answers in the space provided.
4
Name: Annalou B. Detoya Course and Year: BSEE 5
EE 179.1 Section: W45 Laboratory Schedule: Saturday 12:00-3:00PM
Figure 1
Solution:
Answer:
𝐕𝐋𝟐 (𝐬) 𝐬
= 𝟐
𝐕(𝐬) 𝐬 + 𝟑𝐬 + 𝟏
5
Name: Annalou B. Detoya Course and Year: BSEE 5
EE 179.1 Section: W45 Laboratory Schedule: Saturday 12:00-3:00PM
Figure 2
Solution:
Answer:
𝐗 𝟐 (𝐬) 𝟏𝟎𝐬 + 𝟕
𝐆(𝐬) = = 𝟐
𝐅(𝐬) 𝟓𝟎𝐬 + 𝟑𝟎𝐬 + 𝟏𝟒
6
Name: Annalou B. Detoya Course and Year: BSEE 5
EE 179.1 Section: W45 Laboratory Schedule: Saturday 12:00-3:00PM
Figure 3
Solution:
Answer:
𝛉𝐋 (𝐬) 𝟏
=
𝐄𝐚 (𝐬) 𝟐𝟎𝐬 (𝐬 + 𝟏𝟓)
𝟐
7
Name: Annalou B. Detoya Course and Year: BSEE 5
EE 179.1 Section: W45 Laboratory Schedule: Saturday 12:00-3:00PM
5 Laboratory
Using the Scilab software and the transfer functions derived in Part III:
1. Plot the output response vo(t) of each system (Part A, Part B, and Part C) in Scilab
assuming a step input.
Part A
8
Name: Annalou B. Detoya Course and Year: BSEE 5
EE 179.1 Section: W45 Laboratory Schedule: Saturday 12:00-3:00PM
Part B
Part C
9
Name: Annalou B. Detoya Course and Year: BSEE 5
EE 179.1 Section: W45 Laboratory Schedule: Saturday 12:00-3:00PM
2. Use csim() function and assume a step input (1/s). Plot its output.
Part A
10
Name: Annalou B. Detoya Course and Year: BSEE 5
EE 179.1 Section: W45 Laboratory Schedule: Saturday 12:00-3:00PM
Part B
Part C
11
Name: Annalou B. Detoya Course and Year: BSEE 5
EE 179.1 Section: W45 Laboratory Schedule: Saturday 12:00-3:00PM
3. Choose the range of t starting from 0 and the intervals such that you can see the steady
state. How does the time range and interval affect the plot of the output?
Part A
12
Name: Annalou B. Detoya Course and Year: BSEE 5
EE 179.1 Section: W45 Laboratory Schedule: Saturday 12:00-3:00PM
Part B
13
Name: Annalou B. Detoya Course and Year: BSEE 5
EE 179.1 Section: W45 Laboratory Schedule: Saturday 12:00-3:00PM
Part C
14
Name: Annalou B. Detoya Course and Year: BSEE 5
EE 179.1 Section: W45 Laboratory Schedule: Saturday 12:00-3:00PM
4. Draw the response of each in the space provided below and compare the plots of step 1
and step 2. What can you observe?
Electrical Network
Step 1 Step 2
The same output of the graph. Only varies in code, since step 2 uses csim().
Mechanical System
15
Name: Annalou B. Detoya Course and Year: BSEE 5
EE 179.1 Section: W45 Laboratory Schedule: Saturday 12:00-3:00PM
Electromechanical System
Vo(s) 1/5
=
V(s) 2 1
s2 + s +
5 5
3. Plot the Vo versus time graph. What can you observe?
16
Name: Annalou B. Detoya Course and Year: BSEE 5
EE 179.1 Section: W45 Laboratory Schedule: Saturday 12:00-3:00PM
Having new values of R, L and C , we can observe that the greater the values of of L and C
the longer it takes to obtain the steady state of the system.
What conclusion can you make on the use of Scilab in Modeling Control Systems?
Scilab is a very useful tool in Modeling Control Systems since it gives ease in
converting Laplace functions in time domain or vice versa.
This activity helps us a lot in understanding the nature of physical system. We are
able to display its graphical representation for better understanding.
2. How was the function, csim(), used in obtaining response equations? What can you say
about its accuracy?
Csim() was used in obtaining response equations by giving the value of Vo in our
example corresponding to each t value. It is very accurate function which helps us to
minimize or time during simulations.
6 REFERENCES
17