when the sample to be tested rotates in the magnetic shielding cylinder of the digital rotating magnetometer close to the fluxgate sensor, a signal is generated on the fluxgate sensor. After the signal is put on the magnetometer circuit, it is converted into the corresponding value on the computer and can be stored. When the sample is rotated for six times, the computer automatically calculates the average values of magnetic declination, magnetic inclination and magnetic moment of the sample. In the process of rotation, the computer can automatically control the best electric gain and the most suitable rotation time of the circuit to achieve the required test accuracy.