Experiment 2
Experiment 2
Lab Experiment # 02
Objective:
The objective of this exercise is to grasp the important role mathematical models of
physical systems in the design and analysis of control systems. We will learn how MATLAB
helps in solving such models.
Apparatus:
Theory:
1
Department of Mechanical Engineering, Air University A&AC Kamra
Control Engineering Lab
The linear differential equation of second order describes the relationship between the
displacement and the applied force. The differential equation can then be used to study the time
behavior of x(t) under various changes of the applied force. In reality, the spring force and/or the
friction force can have a more complicated expression or could be represented by a graph or
data table. It is shown in Figure 2.2. For instance, a nonlinear spring can be designed such that
Lab Tasks # 02
Q1: Consider the mechanical system shown below. The input is given by f(t), and the output is
given by y(t). Determine the transfer function fromf(t) to y(t). Apply MATLAB command, write a
m-file and plot the system response to a unit step input. Let m=10, k=1 and b=0.5. Execute that
the peak amplitude of the output is about 1.8.
2
Department of Mechanical Engineering, Air University A&AC Kamra
Control Engineering Lab
Where
an du(t) is a unit step. Apply the Matlab command to develop the M file. And also Execute the
results.
: Consider the mechanical system shown below. The input is given by f(t), and the output is
given by y(t). Determine the transfer function fromf(t) to y(t). Apply MATLAB command to model
and also write a m-file and plot the system response to a unit step input. Let m=10, k=1 and
b=0.5. Execute the command to generate the peak amplitude of the output is about 1.8.
Fig. 2.5
Where
an du(t) is a unit step. Apply the Matlab command to develop the M file. And also Execute the
command to generate the results.
3
Department of Mechanical Engineering, Air University A&AC Kamra
Control Engineering Lab
Results:
Q1:
4
Department of Mechanical Engineering, Air University A&AC Kamra
Control Engineering Lab
Q2:
5
Department of Mechanical Engineering, Air University A&AC Kamra