Control & Instrumentation - Laboratory Investigation
Control & Instrumentation - Laboratory Investigation
Laboratory Investigation
Introduction
In these laboratory sessions you are to complete the tasks below which should help you
complete the assignment.
Software Required
MATLAB & SIMULINK - Can be accessed using Uni Apps or downloaded via the site below unto
your own devices.
https://uk.mathworks.com/
Useful Courses
➢ MATLAB Onramp - https://matlabacademy.mathworks.com/details/matlab-
onramp/gettingstarted
➢ Simulink Onramp - https://matlabacademy.mathworks.com/details/simulink-
onramp/simulink
➢ Control Design Onramp with Simulink -
https://matlabacademy.mathworks.com/details/control-design-onramp-with-
simulink/controls
PROCEDURE
For a simple mass-spring-damper system
The transfer function for the input force 𝐹(𝑠) and the output displacement 𝑋(𝑠) is
𝑋(𝑠) 1
=
𝐹(𝑠) 𝑚𝑠 2 + 𝑏𝑠 + 𝑘
1|Page
PUBLIC / CYHOEDDUS
Explain what is happening with the transfer function in terms of the rise time, overshoot,
steady-state error, and other control parameters. Use MATLAB Help to understand the
functions and explain these in your analysis. Use scholarly research and publications to
support your analysis.
Explain what is happening with the transfer function in terms of the rise time, overshoot,
steady-state error, and other control parameters. Use MATLAB Help to understand the
functions and explain these in your analysis. Use scholarly research and publications to
support your analysis.
Explain what is happening with the transfer function in terms of the rise time, overshoot,
steady-state error, and other control parameters. Use MATLAB Help to understand the
functions and explain these in your analysis. Use scholarly research and publications to
support your analysis.
2|Page
PUBLIC / CYHOEDDUS
Explain what is happening with the transfer function in terms of the rise time, overshoot,
steady-state error, and other control parameters. Use MATLAB Help to understand the
functions and explain these in your analysis. Use scholarly research and publications to
support your analysis.
Explain what is happening with the transfer function in terms of the rise time, overshoot,
steady-state error, and other control parameters. Use MATLAB Help to understand the
functions and explain these in your analysis. Use scholarly research and publications to
support your analysis.
Create the Simulink block below modelling for Tasks 1 to Task 5 ensuring that the system
meets the specifications.
3|Page
PUBLIC / CYHOEDDUS
ASSESSMENT BRIEF
Introduction
This coursework aims to provide hands-on experience in designing and implementing a PID
controller for a mechanical system using MATLAB and Simulink. The objective is to tune the
PID controller to achieve desired system performances below:
System Identification:
Choose any one of the following block diagrams below.
SYSTEM 1
Mass: 5kg
Damping Coefficient: 8.5 Ns/m
Spring Constant k1: 17 N/m
Spring Constant k2: 25.5 N/m
SYSTEM 2
Mass: 0.2kg
Damping Coefficient: 5 Ns/m
Spring Constant k1: 1 N/m
Spring Constant k2: 19 N/m
SYSTEM 3
Inertia: 0.6kgm2
Damping Coefficient: 3 Ns/m
Spring Constant: 10 N/m
4|Page
PUBLIC / CYHOEDDUS
Compare your chosen block diagram above with the block diagram below.
SYSTEM 4
Inertia load: 1.2kgm2
Coefficient of Viscous friction: 5 Ns/m2
Part A Individual Report Assessment (Laboratory Report) 75% (30% of total module marks)
Students are required to write a well-researched report with a clear explanation of the 2
chosen systems and their mathematical model. A detailed description of the PID controller
design and implementation in both MATLAB and Simulink. Plots of the system's response to
different PID parameter combinations for both systems. A discussion of the tuning process
and the final PID controller parameters for both systems. A critical analysis of the system's
performance and potential improvements for both systems.
Part B MATLAB & Simulink (Code Submission) 25% (10% of total module marks)
Students are required to write clear and well-structured MATLAB Live Script and Simulink
Code (submitted as a zip file) representing the systems selected and the final designed
controller. Use MATLAB & Simulink's built-in tuning tools or manual tuning techniques to
optimize the PID controller parameters. The code should show basic processing (e.g.,
calculations, comments) with evidence of successful system interfacing and data analysis.
5|Page