Lab 05 & 06
Lab 05 & 06
OBJECTIVE
To build models of electrical translation system in terms of transfer function using MATLAB
and SIMULINK.
TRANSFER FUNCTION
The transfer function is defined as the ratio of the Laplace transform of the output C(s) to the
Laplace transform of the input, R(s), of the system. The transfer function is represented by G(s):
C(s)
G ( s )=
R(s)
| |
( 1+ S ) −S V ( S)
−S ( 1+ 2 S ) 0
0 −S 0
I 3 (S )=
| |
( 1+S ) −S 0
−S ( 1+2 S ) −S
0 −S (1+ S+ 1S )
Where the denominator corresponds to ∆
2
Vs
I 3 (S )= 3 2
(3 S +5 S +4 S+ 1)/ S
Rearranging,
I 3 (S) S3
=
V (S ) 3 S 3+ 5 S 2+ 4 S+1
Since, output V c (s) is across capacitor, it is given by:
I (S )
V C (S)= ; ≫ I ( s )=V c ( s)∗C(s)
C(S )
Substituting, C (s )=1 F
V C(S ) S3
G ( s )= =
V (S ) 3 S3 +5 S2 + 4 S +1
delta =
I3 =
G =
Vc =
2
s
---------------------
3 2
3 s + 5 s + 4 s + 1
4. To generate step and impulse response of the system go to Linear analysis tool by Select
Analysis > Control Design > Linear Analysis.
5. In the window of Linear analysis tool select your system and generate the step and
impulse response.
The model built in Simulink is:
And, the output obtained using Linear analysis tool is same as we got by coding the system.
INTERPRETATION:
A step response is a straight up change in values, and holds the pattern at the new higher level. A
series of step responses creates a staircase pattern.
On application of step response, the voltage of the capacitor gradually increases indicating
charging of capacitor till 0.128V at time 0.9 seconds but as soon as the capacitor is fully charged
it starts discharging, reaching the negative peak, of voltage -0.0546V at 4.43 seconds, and then
again it charges until its voltage becomes zero and the system stabilizes at time around 14
seconds.
LAB 06
| |
( S 2+ S +1 ) −S F (S )
−S ( S 2+ S+ 1 ) 0
0 −1 0
X 3 ( S )=
| |
( S 2 +S +1 ) −S 0
−S ( S + S +1 )
2
−1
0 −1 ( S 2+ S+ 1 )
S F (S)
X 3 ( S )= 3
( S 2+ S +1 ) −S ¿ ¿
Rearranging,
X 3 ( S) S
= 3
¿
F (S ) ( S +S +1 ) + S2 ( S 2 +S +1 ) ¿
2
A =
A3 =
s
------------------------------------
6 5 4 3 2
s + 3 s + 5 s + 6 s + 4 s + 2 s
USING SIMULINK:
The above translational mechanical system can also be modelled by Simulink by just following
the given steps.
INTERPRETATION:
On application of step response, the system shows drastic displacement of 0.733 m in 5.07
seconds and oscillates due to the pull of spring and dashpot from opposite sides. M 3 oscillates for
23 seconds before coming back to its original position at 0.498 m.