API for spectrometers/spectrophotometers