A magnetic resonance force microscope (MRFM) generator for producing an RF
magnetic field uniformly over the whole of a sample. A cantilever with
magnetic probe tip is self-excited. Under this condition, spins in the
sample are controlled to produce a magnetic resonance force. A frequency
demodulator measures the resonant frequency of the cantilever from the
output detection signal from a cantilever displacement-measuring
instrument based on the magnetic resonance force.