Diagram of an undulator cross-section. An undulator period is measured from one winding to the next of the same polarity. An electron beam passes down the axis of the series of magnets, undulating as a result of the alternating polarities. The direction of the arrows in the undulator gap show the direction of the magnetic field seen by the electrons. Image: Yury Ivanyushenkov