The diffraction grating of a spectrometer partially determines the optical resolution that can be achieved by the spectrometer and also determines the wavelength range. Selecting the correct grating ...
Diffraction gratings are curious things. Score a series of equally spaced tiny lines in a surface, and it will cause reflected or transmitted light to bend and separate into its component wavelengths.