An automatic system for beta-ray spectrometer control