Lab 2
Questions or help needed concerning lab 2?
Contact: jonas.hansson@control.lth.se
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 for weeks 4 and 5 of the course.
Instructions
Instructions for the lab can be found here:
Swedish Links to an external site.
English Links to an external site.
You need to bring a lab manual to the lab! You can use a digital version (as long as you can make notes in it during the lab)
Registration
Registration starts 1 week before the first lab session, i.e. in course week 3. You register here:
Sign-up link Links to an external site. (Now open)
You must have registered during course week 3 (Friday, February 7th, before 16:00)!
Preparation
To be allowed to perform the lab you must also have completed the preparatory exercises in the lab instructions. To get help with this, especially the needed calculations, visit the exercise where this will be treated. You might also find the material below useful:
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 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. As an alternative you could use the sympy toolbox in python.
This conversation with chatGPT illustrates how you can write such code, without really knowing the syntax of matlab (but also notice the mistake first done...)
These are the resulting equations: