Mathematical Modelling of Second Order Systems using Simulink: A Laboratory Experiment, Summaries of Control Systems

A laboratory experiment aimed at helping students distinguish between first and second order systems, extract and solve their respective equations, and easily model them in matlab simulink for analysis. The experiment involves building models of a second order mechanical system and a low-pass rc circuit using simulink, and comparing their responses to the same input. Students are required to install matlab 2007 or later versions, and to check that the simulink toolbar is installed. Instructions on how to simulate second order differential equations in matlab simulink, and includes a simulation procedure and results for a mass-spring-dashpot system.

Typology: Summaries

2020/2021

Uploaded on 10/04/2022

rasool-bux-rajar
rasool-bux-rajar 🇵🇰

5 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Lab Experiment # 03
Mathematical Modelling of 2nd order system using Simulink
Construct Mathematical Models of 2nd order system using MATLAB Simulink and
practice their responses at various inputs.
PERFORMANCE OBJECTIVE
Upon successful completion of this experiment, the student will be able to:
(i)
Distinguish between first and second order systems.
(ii)
Extract and solve their respective equations.
(iii)
Easily model them in MATLAB Simulink and analyze their responses for various
inputs.
EQUIPMENTS
Matlab 2007 or onward version.
NOTE
Make sure that the MATLAB you have installed is registered and working.
Counter check the SIMULINK tool bar has been installed.
DISCUSSION
Order of the system is the order of the differential equation (Highest derivative) that is generated
through its fundamental equations that define the system.
First and second order differential equations are commonly studied in Dynamic Systems courses,
as they occur frequently in practice.
The first example is a low-pass RC Circuit that is often used as a filter. This is modeled using a
first-order differential equation. The second example is a mass-spring-dashpot system. This system
is modeled with a second-order differential equation (equation of motion). To be understand the
dynamics of both of these systems we are going to build models using Simulink as discussed below.
You should build both models first, then run them so you can compare how each system responds
to the same input.
SECOND ORDER MECHANICAL SYSTEM
The mass-spring-dashpot is a basic model used widely in mechanical engineering design to model
real-time mechanical systems. It is represented schematically as shown in Fig. 2.4 below
Fig 2.4 Second order Mechanical system
Name: Rasool Bux Rajar Roll No: 17EL73
Score: Signature of the Lab Tutor: Date: 24-08-2020
pf3
pf4

Partial preview of the text

Download Mathematical Modelling of Second Order Systems using Simulink: A Laboratory Experiment and more Summaries Control Systems in PDF only on Docsity!

Lab Experiment # 03

Mathematical Modelling of 2

nd

order system using Simulink

Construct Mathematical Models of 2nd^ order system using MATLAB Simulink and practice their responses at various inputs. PERFORMANCE OBJECTIVE Upon successful completion of this experiment, the student will be able to: (i) Distinguish between first and second order systems. (ii) Extract and solve their respective equations. (iii) Easily model them in MATLAB Simulink and analyze their responses for various inputs. EQUIPMENTS ▪ Matlab 2007 or onward version. NOTE ▪ Make sure that the MATLAB you have installed is registered and working. ▪ Counter check the SIMULINK tool bar has been installed. DISCUSSION Order of the system is the order of the differential equation (Highest derivative) that is generated through its fundamental equations that define the system. First and second order differential equations are commonly studied in Dynamic Systems courses, as they occur frequently in practice. The first example is a low-pass RC Circuit that is often used as a filter. This is modeled using a first-order differential equation. The second example is a mass-spring-dashpot system. This system is modeled with a second-order differential equation (equation of motion). To be understand the dynamics of both of these systems we are going to build models using Simulink as discussed below. You should build both models first, then run them so you can compare how each system responds to the same input. SECOND ORDER MECHANICAL SYSTEM The mass-spring-dashpot is a basic model used widely in mechanical engineering design to model real-time mechanical systems. It is represented schematically as shown in Fig. 2.4 below Fig 2.4 Second order Mechanical system Name: Rasool Bux Rajar Roll No: 17EL Score: Signature of the Lab Tutor: Date: 24 - 08 - 2020

The response of this system is governed by the equation of motion which is a second order differential equation. F(t) = m d^2 x(t)/dt^2 + b dx(t)/dt + k x(t)............................ (2.4) where m is the mass, b is the dashpot constant and k is spring constant. d 2 x(t)/dt 2 = [ F(t)/m – b/m dx(t)/dt – k/m x(t) ] ................ (2.5) SIMULATION PROCEDURE Open MATLAB and try to simulate second order differential equation. I. ( 1/mF(t) – b/m dx(t)/dt – k/m x(t) ) will utilize subtract box. II. To see the graph of X(t), the coming signal must be integrated twice, thus integrator will be used. III. X’ signal that is given to Subtractor must be taken after first integrator box. IV. X signal that is given to Subtractor must be taken after second integrator box V. Respective gains must be given to the signals at required points. VI. From Simulink library following blocks are required. Step input for F(t) (input) is taken as step of any magnitude. Gain for the B/M, K/M and 1/M. Subtractor for generating the signal ( 1/m F(t) – b/m dx(t)/dt – k/m x(t)) Integrator for integrating signal twice to get x(t) Scope for displaying the resultant output waveform. Fig 2.5 Simulation of second order system with Matlab Simulink

Simulink Model Result Figure 1 for R=1, L=1, C= FINAL CHECK LIST

  1. Make sure to save your simulated model.
  2. Save the output graph for the simulation.
  3. Submit your answers to questions, together with your data, calculations and results before the next laboratory.