To perform spectral analysis of a source, monochromatic light at every wavelength would be needed to create a spectrum response of the illuminant. A monochromator is used to sample wavelengths from the source and essentially produce a monochromatic signal. It is essentially a variable filter, selectively separating and transmitting a specific wavelength or band of wavelengths from the full spectrum of measured light and excluding any light that falls outside that region.
A typical monochromator achieves this through the use of entrance and exit slits, collimating and focus optics, and a wavelength-dispersing element such as a diffraction grating or prism. Modern monochromators are manufactured with diffraction gratings, and diffraction gratings are used almost exclusively in spectroradiometric applications. Diffraction gratings are preferable due to their versatility, low attenuation, extensive wavelength range, lower cost, and more constant dispersion. Single or double monochromators can be used depending on application, with double monochromators generally providing more precision due to the additional dispersion and baffling between gratings.