Software Design of a DSP+ARM+FPGA-Based Power Quality Analyzer
Software design is the core content of power quality equipment. The previous chapters detailed the algorithms for power quality parameters and verified them through simulation experiments. This chapter will combine the requirements of modern power quality monitoring equipment to implement these algorithms in actual power grids. Based on the requirements analysis of the designed power quality analyzer, the overall software design will be carried out, primarily including the overall architecture, the implementation of software functions for each part, and the communication design between the three cores, ultimately achieving high-precision measurement of power parameters and displaying and storing the results.
This paper mainly focuses on applying theoretical algorithms in practice through software design. From an application perspective, algorithms are reasonably arranged to enhance the applicability of the algorithms introduced in previous chapters.
5.2 Overall Software Design
5.2.1 Instrument Functions
Based on the software requirements of the power quality analyzer, the functions of this device can be broadly divided into the following modules:
(1) Power Quality Parameter Measurement Function
Basic power quality parameters, mainly including voltage, current, frequency, harmonics, interharmonics, sags and swells, inrush current, etc., will be implemented according to the Class A instrument standards in national regulations. Each link will be designed in detail to minimize errors, improve calculation speed, ensure high precision of the equipment, and achieve online monitoring capabilities.
The accuracy of the instrument mainly involves data acquisition, data transmission, data calculation, and data display. The data acquisition part is primarily determined by the hardware circuit, aiming to minimize