Recording an NMR spectrum requires working through a series of steps, one of which is "locking", but what exactly is locking? Locking is monitoring one of the NMR signals in a sample so that any fluctuations in the strength of the magnetic field can be compensated for.