| Nowadays,with the continuous progress of power electronics technology,electronic measuring instruments have become a hot topic in scientific research.And the power analyzer occupies an important position in the field of electronic measuring instruments with the advantages of measuring signals such as voltage、 current、power、harmonics and power consumption.In this project,the power analyzer adopts the basic architecture of acquisition board+FPGA+DSP and industrial control computer.Based on this architecture,the corresponding functions are studied,and the functions of power parameter collection,processing,analysis,calculation,and display are achieved.The main purpose of this article is to design and achieve the software driver and the secondary development of the software for the power analyzer.The main research content of this paper is as follows:(1)In this thesis,the Power analyzer’s driver program conforming to IVI specification is designed.Aiming at the power analyzer A,B,C type board card and the process card used for measuring speed and torque,the special driver and the class driver are designed.The problem that different types of instrument boards that could not be automatically recognized after replacing card slots is solved,and the corresponding control functions of the acquisition board channel module,trigger module,and acquisition module are studied and achieved.(2)In this thesis,the PCIe driver from DSP and FPGA to industrial computer on the data processing board of the power analyzer are designed.Aiming at the data transmission between the FPGA and the host computer,the PIO mode transmission of control instructions and the transmission of DMA mode is designed.On this basic,the XDMA transmission mode is designed.Aiming at the transmission problem from DSP to the host computer,the PIO mode of control instructions and the DMA transmission mode of big data is designed,which realize the data transmission of single instructions and ordinary scenarios.(3)In this thesis,the hybrid operation feature editor is designed.Aiming at the current problem of insufficient measurement parameter types for power analyzers that could not meet testing needs.The hybrid operation function has been designed and implemented,enabling the power analyzer to calculate design formulas for different channels and signals,and realize the calculation function of derived parameters generated by traditional parameters,and optimizing the parameter calculation ability of the power analyzer.(4)In this thesis,the test kits for harmonic and flicker testing and corresponding program-controlled instructions are designed.In order to realize the analysis and calculation function of power analyzer for harmonic and flicker parameters,a test suite for harmonic and flicker analysis is designed and achieved;In order to increase the automatic testing function of the power analyzer,a program control function based on SCPI instructions has been designed and achieved,which enables remote control of the power analyzer through program control instructions on the PC end for harmonic and flicker parameter testing. |