Computer controlled rapid scanning stopflow spectrometer