Docsity

EE 321 Analog Electronics, Fall 2013 Homework #5 solution, Lab Reports of Control Systems

Toggle sidebar
bg1
Lab Experiment # 02
Mathematical Modelling of 1st order system using Simulink
Construct Mathematical Models of 1st 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 better 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.
FIRST ORDER RC CIRCUIT
Fig 2.1 Series RC circuit
Given circuit is having only single energy storing element (Capacitor) and has first order differential
equation. Vc is the output that is to be analyzed for any input.
The circuit equations are given as:
Name: Rasool Bux Rajar Roll No: 17EL73
Score: Signature of the Lab Tutor: Date: 17-08-2020
pf3

Partial preview of the text

Download EE 321 Analog Electronics, Fall 2013 Homework #5 solution and more Lab Reports Control Systems in PDF only on Docsity!

Lab Experiment # 02

Mathematical Modelling of 1

st

order system using Simulink

Construct Mathematical Models of 1

st

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 better 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. FIRST ORDER RC CIRCUIT Fig 2.1 Series RC circuit Given circuit is having only single energy storing element (Capacitor) and has first order differential equation. Vc is the output that is to be analyzed for any input. The circuit equations are given as: Name: Rasool Bux Rajar Roll No: 17EL Score: Signature of the Lab Tutor: Date: 17 - 08 - 2020

Vs = iR + Vc ............................................... (2.1) Where i=C dvc/dt Substituting values of ‘i’ in eq: 2. Vs= RC dvc/dt + Vc .................................... (2.2) Or dvc/dt = (Vs-Vc)/ RC ....................................(2.3) SIMULATION PROCEDURE i. Open MATLAB and try to simulate first order differential equation. ii. (Vs-Vc) will utilize subtract box and the signal will have gain of 1/RC. iii. To see the graph of Vc the coming signal must be integrated, thus integrator will be used. iv. Now final signal will be given to scope to see the result. v. From Simulink library following blocks are required. Step input for Vs (input) is taken as step of any magnitude. 1/RC. Gain for the res ultant s ignal Vs - Vc will be mul tiplied with gain Subtractor for getting the difference of two signals (Vs-Vc) Scope for displaying the resultant output waveform. Integrator for getting Vc out of its derivative. Fig 2.2 Simulation from MATLAB Simulink. RESULT: Fig 2.3 Simulation results (R=1Ω, C=1F and step is taken at t =1sec with initially Vc=0)