The invention provides an automatic
spectrograph debugging device and method, and the device comprises a standard
light source module which is used for providing a reference
light signal with a known characteristic
spectral line for a to-be-debugged
spectrograph; the
grating adjusting mechanism comprises an electric rotary displacement table and a
linear displacement table, the electric rotary displacement table is used for driving a
grating in the
spectrometer to rotate around a shaft so as to adjust
wavelength accuracy, and the
linear displacement table is used for translating the
grating in the light path direction so as to adjust
spectral resolution; the spectrum acquisition module is used for acquiring spectrum data processed by the
spectrograph in real time; a reference spectrum is excited through a multi-spectral-line standard
light source, the peak position and the
full width at half maximum are accurately extracted by adopting spline interpolation, an electric rotary displacement table and a
linear displacement table are driven to perform two-dimensional closed-loop adjustment on a grating, and the
wavelength-pixel non-linear mapping correction and convergence criterion are combined, so that the resolution of the grating is improved. And full-automatic high-precision calibration of
wavelength accuracy and
spectral resolution is realized.