This invention provides an active
electron microscope demagnetization method, apparatus, and
system based on FFT
harmonic suppression feedback. The method includes the following steps: acquiring real-time time-domain signals of interfering magnetic fields along the X, Y, and Z axes to obtain three-axis discrete-time sequences; performing
Fast Fourier Transform (FFT) on each of the three-axis discrete-time sequences to convert the signals from the
time domain to the
frequency domain, obtaining three-axis frequency-domain signals; decomposing the corresponding time-domain signals into at least six
harmonic components based on the three-axis frequency-domain signals, and extracting the amplitude and phase parameters of each
harmonic component; generating a compensation
signal with the same amplitude but opposite direction to the interfering
magnetic field based on the amplitude and phase parameters of each harmonic component; and determining the
driving current required to drive the three-axis coils through a
constant current source based on the compensation
signal, so as to generate a dynamic compensation
magnetic field with the same amplitude but opposite direction to the spatial
magnetic field in real time. This invention enables real-time acquisition, frequency-
domain analysis, and precise cancellation of environmental magnetic fields.