Controlling the height of liquid in a tank is a common industrial problem. This model shows how to construct a full non-linear model and then shows how to linerize it and extend it to a two tank model. See the .pdf attachment below for the tutorial and model description.
Tutorial and model description
Single tank nonlinear model with proportional control
Single tank linearized model with proportional control
Extended model with two tanks
Tank example parameter spreadsheet
