You are on page 1of 8

CONTROL SYSTEMS LAB

LAB NO. 02 (HOME TASK)

SUBMITTED TO: Ma’am SURRAYYA MOBEEN

SUBMITTED BY: MUHAMMAD YASEEN


REG. NO. 190101028
Task 01
• Modeling the following system
• Solving it using Simulink
• Obtaining the position response with a unit step input for 0 < t < 50 sec

Modeling a Differential Equation


Simulink Model

Response For 0 < t < 50


Commands Applied
m=5;
c=3;
k=7;

Task 02
• Modeling the following system
• Implementing it in Simulink with the given initial conditions
• Obtaining the position response separately for x1 and x2 for 0 < t < 20 sec

Modeling Differential Equations


Last equation can also be written as:

Note
Registration No. (Last 2 Digits) : 28
N= 2+8/2:
N=5;
5
m1 = m2 = ( + 1 );
100

m1 = m2 = 1.05 kg;
5
b=( + 0.6 );
100

b= 0.65;

Commands Applied
k1=7.5; %given
k2=35; %given
m1=1.05; %Pre-calculated - Mean is (2+8)/2
m2=m1; %given
b=0.65; %pre-calculated - Mean is (2+8)/2
Simulink Model
Response For 0 < t < 20
• At Scope

• At Scope 1
Combined Response
• At Scope 2

You might also like