Microprocessor-controlled infrared data acquisition for liquid chromatography