Docsity

Lab Experiment # 01: Understanding MATLAB Simulink through Temperature Conversion Model, Lab Reports of Control Systems

Toggle sidebar
bg1
1
Lab Experiment # 01
Introduction to MATLAB Simulink
Operate and practice different models in MATLAB Simulink and sketch various graphs
for system response.
PERFORMANCE OBJECTIVE
Upon successful completion of this experiment, the student will be able to:
(i)
Understand the working of MATLAB Simulink.
(ii)
Convert Mathematical equations in SIMULINK.
(iii)
Sketch various graphs for system response.
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
In Simulink, it is very straightforward to represent and then simulate a mathematical model
representing a physical system. Models are represented graphically in Simulink as block diagrams.
One of the primary advantages of employing Simulink (and simulation in general) for the analysis
of dynamic systems is that it allows us to quickly analyze the response of complicated systems that
may be prohibitively difficult to analyze analytically. Simulink is able to numerically approximate
the solutions to mathematical models that we are unable to, or don't wish to, solve "by hand."
In general, the mathematical equations representing a given system that serve as the basis for a
Simulink model can be derived from physical laws.
SIMULATION PROCEDURE
(i)
Open MATLAB and try to simulate an algebraic equation for temperature conversion.
(ii)
Algebraic equation for temperature conversion is T(oF)= 1.8* T(oC)+32
(iii)
From Simulink library following blocks are required.
Constant Block for values of Temperature in oC and constant value of 32.
Gain for multiplying 1.8 with the values of T(oC).
Adder for adding a constant value of 32 and 1.8* T(oC)
Display for showing the converted value in T(oF)
Fig 1.1 Simulation from MATLAB Simulink.
Name: Rasool Bux Rajar Roll No: 17EL73
Score: Signature of the Lab Tutor: Date: 10-08-2020
pf2

Partial preview of the text

Download Lab Experiment # 01: Understanding MATLAB Simulink through Temperature Conversion Model and more Lab Reports Control Systems in PDF only on Docsity!

1

Lab Experiment # 01

Introduction to MATLAB Simulink

Operate and practice different models in MATLAB Simulink and sketch various graphs for system response. PERFORMANCE OBJECTIVE Upon successful completion of this experiment, the student will be able to: (i) Understand the working of MATLAB Simulink. (ii) Convert Mathematical equations in SIMULINK. (iii) Sketch various graphs for system response. 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 In Simulink, it is very straightforward to represent and then simulate a mathematical model representing a physical system. Models are represented graphically in Simulink as block diagrams. One of the primary advantages of employing Simulink (and simulation in general) for the analysis of dynamic systems is that it allows us to quickly analyze the response of complicated systems that may be prohibitively difficult to analyze analytically. Simulink is able to numerically approximate the solutions to mathematical models that we are unable to, or don't wish to, solve "by hand." In general, the mathematical equations representing a given system that serve as the basis for a Simulink model can be derived from physical laws. SIMULATION PROCEDURE (i) Open MATLAB and try to simulate an algebraic equation for temperature conversion. (ii) Algebraic equation for temperature conversion is T( o F)= 1.8* T( o C)+ (iii) From Simulink library following blocks are required. Constant Block for values of Temperature in o C and constant value of 32. Gain for multiplying 1.8 with the values of T(oC). Adder for adding a constant value of 32 and 1.8 T( o C)* Display for showing the converted value in T( o F) Fig 1.1 Simulation from MATLAB Simulink. Name: Rasool Bux Rajar Roll No: 17EL Score: Signature of the Lab Tutor: Date: 10 - 08 - 2020

1

OBSERVATIONS / GRAPH PLOTTING

(i) Measure following values. T ( o F) = 32 and 459.4 for T ( o C)= 0 o C and - 273 o C (ii) For what value of T (oC) becomes equal to T (oF), find out from simulation. T =…………………………- 40 …………………. REVIEW QUESTIONS

  1. Paste the simulation model for equation of line i.e. y = 2x + 1. [HINT: For varying input take Ramp input signal, rather than constant.]
  2. Paste the output graph taken from above equation. [HINT: Take scope for output rather than display block.] FINAL CHECK LIST
  3. Make sure to save your simulated model.
  4. Save the output graph for the simulation.
  5. Submit your answers to questions, together with your data, calculations and results before the next laboratory.