[General information about using the models]
Mathematical model:
Below is a link to the mathematical model of two coupled liquid tanks with a discrete-time Kalman-filter (of predictor-corrector type) for estimation of the level of the upper based on the measurement of the lower tank. The system is described in Problem 9.16 in the exercise-book for the text-book Regulering av dynamiske systemer, bind 2 (in Norwegian). The total system is simulated using Eulers method implemented in a for-loop in a MATLAB-script.
Both the real (or measured) level and the estimated level of both the upper tank (tank 1) and the lower tank (tank 2) is simulated and plotted in real-time on the screen. The upper level is estimated with a Kalman-filter using the measurement of the level of the lower tank.
Here is the MATLAB-script implementing the system.
Updated July 17 1998 by Finn Haugen (e-mail: TechTeach@online.no).