We start by placing a sample in a magnetic field. Then the frequency at which resonance peaks occur are needed to calculate an element of the g-tensor. After that the direction of the magnetic field should be changed to repeat the process and obtain another element of the g-tensor.