In this paper we present a description of a modified optoacoustic CO2-laser-based spectrometer. This instrument can be used for studying gas exchange of vegetation (especially of CO2) under varying temperature and pressure in a real time scale. We also discuss the measurement technique and some preliminary results of such investigations.