Method for automatically determining measurement time in detection of energy spectrometer

The present invention discloses a method of automatically determining the measuring time in the spectrometer detection, comprising the steps of: (1) a test sample of the real-time tracking and monitoring spectrometer data acquisition and measurement buffer; (2) step (1) the spectral data in the track buffer, pretreated transactions; (3) (2) in the treated spectrum data acquiring stability parameter from the spectral data of the current track and a step; (4) stabilized judgment, determines whether the current line is automatically satisfies the stability condition acquisition; if the condition is satisfied, automatically stops the sample measurement samples, if the condition is not satisfied, continues to measure the sample line and track data. The present invention enables the spectrometer to the sample measurement, the measurement time is determined automatically, effectively improve the measurement efficiency of the sample, effectively reduce the impact of environmental changes on the measurement results, the measurement time while reducing human uncertainty determination.