Electroretinography is a technique used to assess the function of the neural cells of the retina, especially the photoreceptors, be means of quantifying their electric responses to visual stimuli. The procedure is done under photopic and scotopic conditions and is commonly used to aid in the diagnosis of and monitor for progression in many retinal degenerations and dystrophies, such as retinitis pigmentosa and cone dystrophies.