How to scientific measurement of harmonic energy is still a problem worth exploring, determine whether the accurate measurement of harmonic energy, first harmonic generator is based on this consideration, this paper presents a design scheme of arbitrary waveform generator based on FPGA. The system takes FPGA chip EP4CE115F29C8 as the core and combines Verilog HDL hardware description language to design an arbitrary waveform generator with adjustable frequency, phase, amplitude and harmonic ratio. The digital waveform generator for IEC61850 standard meter tracing method of digital signal source, the waveform generator output signal harmonic, harmonic signal sources can be simulated in the power grid, the measurement work for digital power under the condition of harmonic energy meter provides a signal source, has a certain theoretical and practical research application value.