Measuring the energy budget of a plant in a closed system