Measurement of chamber volumes and their function