Lab 2 - Process Modelling and PID Controller Design
General
In lab 2 we return to the double water tank of lab 1. The purpose of this is to see if the mathematical tools and understanding that you have developed in the course can help you get a better result than when you were manually tuning control parameters in lab 1. It is also an opportunity for you to connect the placement of the poles of your process to the actual behavior of the process.
This lab is scheduled to weeks 4 and 5 of the course. Responsible is Johan Lindberg.
Instructions
Instructions for the lab can be found here:
Swedish Links to an external site.
English Links to an external site.
Registration
Registration is available via the sign-up link: Sign-up Links to an external site.
(that will be activated on Monday 16:00 in study week 3)
You must register for a lab session before the end of the third week of the course. Thus the deadline for signing up is the 20th of September
Preparation
Before the lab it is important that you read through the instructions. To be allowed to perform the lab you will also have to complete the preparatory exercises in the lab instructions.
Print and bring the lab manual to the lab. It will be signed when you have passed the lab. It will act as your evidence that you have done the lab.
Optional: Matlab Simulation
If you want to be extra well prepared for the lab session, or want to try out more experiments by yourself, you can use a Matlab simulation of the full lab process that is used in lab 1 and lab 2. Instructions for how to install and run it can be found here.
The file lab2_prep.m Download lab2_prep.m illustrates how you can use matlab's symbolic manipulation toolbox (as an alternative one can use the sympy toolbox in python) to solve preparation task 3.6 (PID control of lower tank) where the parameters K, Ti and Td are found from a linear equation system of order 3.
This conversation with chatGPT Download conversation with chatGPT illustrates how you can write such code, without really knowing the syntax of matlab (but also notice the mistake done...)