CN111257637B - Ultra-high harmonic measurement method and system - Google Patents

Ultra-high harmonic measurement method and system Download PDF

Info

Publication number
CN111257637B
CN111257637B CN202010109000.0A CN202010109000A CN111257637B CN 111257637 B CN111257637 B CN 111257637B CN 202010109000 A CN202010109000 A CN 202010109000A CN 111257637 B CN111257637 B CN 111257637B
Authority
CN
China
Prior art keywords
cache region
annular
channel
analyzed
monitoring system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010109000.0A
Other languages
Chinese (zh)
Other versions
CN111257637A (en
Inventor
曾幼松
刘丰
严伟诚
刘军
曾伟
赵艳
邓祥
邱文艺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CEIEC ELECTRIC TECHNOLOGY Inc
Original Assignee
CEIEC ELECTRIC TECHNOLOGY Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CEIEC ELECTRIC TECHNOLOGY Inc filed Critical CEIEC ELECTRIC TECHNOLOGY Inc
Priority to CN202010109000.0A priority Critical patent/CN111257637B/en
Publication of CN111257637A publication Critical patent/CN111257637A/en
Application granted granted Critical
Publication of CN111257637B publication Critical patent/CN111257637B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R23/00Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
    • G01R23/16Spectrum analysis; Fourier analysis
    • G01R23/165Spectrum analysis; Fourier analysis using filters
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications
    • Y04S10/52Outage or fault management, e.g. fault detection or location

Abstract

The invention provides a method and a system for measuring ultrahigh harmonic wave, wherein the method comprises the following steps: when a core module of the power quality monitoring system switches a current writing annular buffer area pointer of a sampling data annular buffer area to a next sampling data annular buffer area, a channel switching module is switched to a next sampling channel to be analyzed; after the signal passes through the channel switching module, the band-pass filter filters out signals except the ultrahigh harmonic frequency band signal to be analyzed, and the ultrahigh harmonic frequency band signal to be analyzed is input into the single-channel high-speed AD; the core module of the power quality monitoring system triggers a single-channel high-speed AD to sample and read the sampled data, then the sampled data are stored in a sampled data annular cache region, and the sampled data are analyzed and counted by the core module of the power quality monitoring system to obtain a frequency spectrum and a time-frequency diagram of ultrahigh harmonic waves. Compared with the prior art, the method reduces the measurement cost of the ultrahigh harmonic wave, and improves the cost performance and stability of the system.

Description

Ultra-high harmonic measurement method and system
Technical Field
The invention relates to the technical field of electric energy quality, in particular to a method and a system for measuring ultrahigh subharmonic with high cost performance and high precision.
Background
With the development of distributed energy, new energy power generation, micro-grid and power electronic load in the power grid, the threat of the ultra-high harmonic to the reliability of power utilization of users is increasing, and how to monitor and analyze the ultra-high harmonic belongs to the new technical field of power quality analysis at present. At present, the research on ultra-high harmonic monitoring and analyzing methods and systems at home and abroad is very little. The ultra-high harmonics are harmonic components of 2kHz to 150 kHz. According to Shannon's sampling theorem, the sampling rate at least needs to reach 300kHz to correctly analyze the 2 kHz-150 kHz ultrahigh subharmonic, and generally 4 times of sampling, namely 600kHz, is needed in engineering to accurately and reliably analyze the 2 kHz-150 kHz ultrahigh subharmonic. Because the required sampling rate is very high, the performance requirement on the system is very high, and the cost is greatly increased.
Disclosure of Invention
The invention mainly aims to provide an ultrahigh harmonic measurement method and system, and aims to reduce the ultrahigh harmonic measurement cost and improve the cost performance and stability of the system.
In order to achieve the above object, the present invention provides an ultra-high harmonic measurement method, which is applied to an ultra-high harmonic measurement system, wherein the ultra-high harmonic measurement system includes a power quality monitoring system core module, a channel switching module, a band-pass filter, and a single-channel high-speed AD, and the method includes the following steps:
when the core module of the power quality monitoring system switches the current writing annular buffer pointer of the sampling data annular buffer to the next sampling data annular buffer at set equal time intervals, the channel switching module switches to the next sampling channel to be analyzed, and the core module of the power quality monitoring system marks the next sampling data annular buffer to be analyzed with a corresponding channel label;
after the signal passes through the channel switching module, the band-pass filter filters out signals except the ultrahigh harmonic frequency band signal to be analyzed, and the ultrahigh harmonic frequency band signal to be analyzed is input into the single-channel high-speed AD;
the electric energy quality monitoring system core module triggers a high-speed single-channel AD to sample and read a sampling value, then stores the sampling value into a corresponding annular sampling cache region according to a current sampling annular cache region writing pointer, and analyzes the sampling data to obtain the frequency spectrum of the ultra-high harmonic.
A further technical solution of the present invention is that the power quality monitoring system core module includes a main processing chip and a memory, the main processing chip includes a timer, a coprocessor and a main processing core, and the step of switching a current write ring buffer pointer of a sample data ring buffer to a next sample data ring buffer at a set equal time interval by the main processing core includes:
the main processing core switches a current write annular buffer area pointer of a sampling data annular buffer area to a next sampling data annular buffer area at set equal time intervals;
the step of marking the next sampling data annular cache region to be analyzed with a corresponding channel label by the core module of the power quality monitoring system comprises the following steps:
and the main processing core marks a corresponding channel label on the next sampling data annular cache region to be analyzed.
The further technical scheme of the invention is that the step of triggering the single-channel high-speed AD to sample and read the sampled data by the core module of the power quality monitoring system comprises the following steps:
the method comprises the following steps that a core module of the power quality monitoring system reads sampling data, then the sampling data are stored in a sampling data annular cache region, the core module of the power quality monitoring system analyzes the sampling data, and the frequency spectrum of the super high harmonic wave is obtained by the following steps:
the core module of the power quality monitoring system reads the sampled data, stores the sampled data into an annular cache area designated by a pointer of the current write annular cache area according to a cyclic storage mode, and updates the position of the latest sampling point in the current write annular cache area;
querying, by the primary processing core, a read ring buffer pointer and a write ring buffer pointer in a low-priority task;
when the current annular cache region reading pointer and the current annular cache region writing pointer are not consistent, the main processing core acquires an annular cache region needing to be analyzed and processed according to the current annular cache region reading pointer and the annular cache region writing pointer, calculates and analyzes the annular cache region needing to be analyzed and processed to obtain the frequency spectrum of the super-high harmonic, and then updates the current annular cache region reading pointer to the next annular cache region of the analyzed and sampled data annular cache region.
The invention further adopts the technical scheme that the annular cache region needing analysis processing is started from the annular cache region pointed by the current annular cache region reading pointer to the previous annular cache region pointed by the current annular cache region writing pointer;
the step of performing calculation analysis on the annular cache region to be analyzed and processed to obtain the frequency spectrum of the ultra-high harmonic wave comprises the following steps:
and rearranging the storage sequence of the sampled data according to the sampling time sequence and the position of the latest sampling point in the annular cache region for the annular cache region needing to be processed.
And performing FFT calculation analysis on the rearranged annular buffer area needing to be processed to obtain the frequency spectrum of the ultra-high harmonic.
The further technical scheme of the invention is that the step of obtaining the frequency spectrum of the ultra-high harmonic by performing FFT calculation analysis on the rearranged annular buffer area needing to be processed comprises the following steps:
storing the calculation analysis result into a corresponding channel result by the main processing core according to the channel label corresponding to the annular cache region;
and updating the current annular cache region reading pointer to the next annular cache region after the processed annular cache region by the main processing core.
A further technical solution of the present invention is that, after the step of storing the calculation analysis result into the corresponding channel result by the main processing core according to the channel tag corresponding to the ring cache region, the method further includes:
and the main processing core carries out calibration compensation on the ultrahigh harmonic according to the amplitude-frequency characteristics of each channel.
The further technical scheme of the invention is that the step of calibrating and compensating the ultra-high order harmonic by the main processing core according to the amplitude-frequency characteristic of each channel further comprises the following steps:
and carrying out maximum, minimum, average and 95 value statistics on the ultrahigh-order harmonic values of all the channels in a set period of time by the main processing core.
The further technical solution of the present invention is that the step of performing statistics of maximum, minimum, average, and 95 values on the super-high order harmonic values of each channel within a set period of time by the main processing core further includes:
and respectively drawing a time-frequency graph of the maximum, minimum, average and 95 values of the ultrahigh subharmonic within one day by the main processing core, wherein the time is taken as a horizontal axis, the frequency is taken as a vertical axis, and the amplitude is displayed by colors.
In order to achieve the above object, the present invention further provides an ultra-high harmonic measurement system, which includes a power quality monitoring system core module, a channel switching module, a band-pass filter, a single-channel high-speed AD, wherein the power quality monitoring system core module further includes a memory, a processor, and an ultra-high harmonic measurement program stored in the memory chip, and the ultra-high harmonic measurement program executes the steps of the method when called by the processor.
The ultrahigh harmonic measurement method has the beneficial effects that:
1. the invention realizes the analysis of multi-channel ultra-high harmonics by using a single sampling channel;
2. the invention fully applies the resources (a timer, a coprocessor, a memory and a main processing core in a main processing chip) of the original power quality monitoring system, realizes the calculation and analysis of the ultra-high harmonic wave on the basis of only adding few modules (including a channel switching module, a band-pass filter and a single-channel high-speed AD), and completes the analysis of the ultra-high harmonic wave on the original power quality monitoring system with only little cost;
3. the design flow of the invention is completed by the coprocessor for the parts needing high-speed processing, thereby reducing the load of the main processor for ultrahigh-order harmonic analysis and improving the stability of the system.
Drawings
FIG. 1 is a schematic flow chart of a preferred embodiment of the ultra-high subharmonic measurement method of the present invention;
FIG. 2 is a system architecture diagram of an ultra-high order harmonic measurement system;
FIG. 3 is an exemplary diagram of channel switching;
FIG. 4 is a time-frequency diagram for ultra-high order harmonics.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, the present invention provides a method for measuring ultra-high order harmonics, and fig. 1 is a schematic flow chart of a preferred embodiment of the method for measuring ultra-high order harmonics.
The method is applied to the ultra-high harmonic measurement system shown in fig. 2, and the ultra-high harmonic measurement system comprises a power quality monitoring system core module, a channel switching module, a band-pass filter and a single-channel high-speed AD. The core module of the power quality monitoring system comprises a main processing chip and a memory, wherein the main processing chip comprises a timer, a coprocessor and a main processing core.
The utility model discloses a high-speed AD of coprocessor, including main processing chip, passageway switching module, band pass filter, the high-speed AD of single channel, the input of main processing chip is controlled through controlling corresponding pin the passageway switching module carries out the channel selection, the passageway switching module with band pass filter links to each other, band pass filter's output signal connects the high-speed AD of single channel, the input the clock frequency of timer is the integral multiple of sampling rate, in order to reduce the truncation error after the timer divides the frequency to the input clock is to the influence at sampling interval, the output pin of timer is connected to the input pin of coprocessor, the timer is with the frequency division signal input coprocessor notice sampling, the coprocessor passes through serial interface connection the high-speed AD of single channel, the notice the high-speed AD of single channel is sampled and is read data. The main processing core and the coprocessor share a memory access bus and can simultaneously access the memory, and the main processing core and the coprocessor carry out data interaction through the memory.
And the main processing core switches the current write annular cache region pointer of the sampling data annular cache region to the next sampling data annular cache region at equal intervals, then controls the channel switching module to switch to the next channel to be subjected to super-high order harmonic analysis, and marks the sampling data annular cache region corresponding to the current write pointer with a corresponding channel label.
The timer outputs sampling pulses to the coprocessor, and the coprocessor controls the single-channel high-speed AD to sample after receiving the sampling pulses. And the coprocessor stores the sampling data into a sampling data annular buffer zone corresponding to the current write pointer in a circular storage mode after receiving the sampling data and updates the position of the latest sampling data in the annular buffer zone.
The main processing core and the coprocessor are positioned in one chip and can access the same memory through a common bus, and the main processing core and the coprocessor carry out data interaction through a memory storage space.
The annular buffer area of the sampled data comprises a current write annular buffer area pointer, a current read annular buffer area pointer, an annular buffer area (a plurality of blocks) and corresponding channel labels thereof, and the position of a latest sampling point in the annular buffer area. The sampling coprocessor stores the sampling data into a current write ring buffer pointer specified sampling data ring buffer in a ring storage mode. And the main processing core determines a cache region needing ultrahigh-order harmonic analysis through the current annular cache region reading pointer and the current annular cache region writing pointer. The main processing core rearranges the storage positions of the annular cache regions to be analyzed according to the position of the latest sampling data in the annular cache regions according to the sampling time sequence, then performs Fourier analysis on the rearranged annular cache regions to be analyzed to obtain ultra-high harmonics, and stores the data into corresponding positions according to the channel tags of the annular cache regions.
As shown in fig. 1, in the present embodiment, the ultrahigh harmonic measurement method includes the following steps:
step S10, after the core module of the power quality monitoring system switches the current write pointer of the annular buffer of the sampled data to the next annular buffer of the sampled data at the set equal time interval, the channel switching module switches to the next sampled channel to be analyzed, and the core module of the power quality monitoring system marks the next annular buffer of the sampled data to be analyzed with a corresponding channel tag.
And step S20, after the signal passes through the channel switching module, the band-pass filter filters out signals except the ultrahigh-order harmonic frequency band signal to be analyzed, and the ultrahigh-order harmonic frequency band signal to be analyzed is input into the single-channel high-speed AD.
And step S30, triggering the single-channel high-speed AD by the core module of the power quality monitoring system to sample and read the sampled data, then storing the sampled data in a sampled data annular cache region, and analyzing and counting the sampled data by the core module of the power quality monitoring system to obtain the frequency spectrum and the time-frequency diagram of the ultrahigh harmonic wave.
The method comprises the following steps that a core module of the power quality monitoring system switches a current write annular buffer pointer of a sampling data annular buffer to a next sampling data annular buffer at set equal time intervals, wherein the step comprises the following steps:
and the main processing core switches the current write pointer of the sampling data annular buffer area to the next sampling data annular buffer area at set equal time intervals.
The step of marking the next sampling data annular cache region to be analyzed with a corresponding channel label by the core module of the power quality monitoring system comprises the following steps:
and the main processing core marks a corresponding channel label on the next sampling data annular cache region to be analyzed.
The method comprises the following steps that the power quality monitoring system core module triggers the single-channel high-speed AD to sample and read sampling data, wherein the steps comprise:
and outputting a trigger pulse to the coprocessor by the timer, and outputting the trigger pulse to the single-channel high-speed AD by the coprocessor when the coprocessor monitors the rising edge of the input pulse.
The method comprises the following steps that a core module of the power quality monitoring system reads sampling data, then the sampling data are stored in a sampling data annular cache region, the core module of the power quality monitoring system analyzes the sampling data, and the frequency spectrum of the super high harmonic wave is obtained by the following steps:
the core module of the power quality monitoring system reads the sampled data, stores the sampled data into an annular cache area designated by a pointer of the current write annular cache area according to a cyclic storage mode, and updates the position of the latest sampling point in the current write annular cache area;
inquiring a current read annular cache region pointer and a current write annular cache region pointer in a low-priority task by the main processing core;
when the current annular cache region reading pointer and the current annular cache region writing pointer are not consistent, the main processing core acquires an annular cache region needing analysis processing according to the current annular cache region reading pointer and the current annular cache region writing pointer, and carries out calculation analysis on the annular cache region needing analysis processing to obtain the frequency spectrum of the super high harmonic, and then updates the current sampling data reading pointer to the next annular cache region of the processed sampling data annular cache region.
The ring cache region needing analysis processing is from the ring cache region pointed by the current ring cache region reading pointer to the previous ring cache region of the ring cache region pointed by the current ring cache region writing pointer.
The step of performing calculation analysis on the annular cache region to be analyzed and processed to obtain the frequency spectrum of the ultra-high harmonic wave comprises the following steps:
and rearranging the storage positions of the sampled data of the annular cache region to be processed according to the position of the latest sampling point in the annular cache region and the sampling time sequence.
And performing FFT calculation analysis on the rearranged annular buffer area needing to be processed to obtain the frequency spectrum of the ultra-high harmonic.
Wherein, the step of performing FFT computational analysis on the rearranged ring buffer area to be processed to obtain the spectrum of the ultra-high harmonic wave comprises:
storing the calculation analysis result into a corresponding channel result by the main processing core according to the channel label corresponding to the annular cache region;
and updating the current annular cache region reading pointer to the next annular cache region after the processed annular cache region by the main processing core.
Wherein, the step of storing the calculation analysis result into the corresponding channel result according to the channel tag corresponding to the ring cache region by the main processing core further comprises:
and the main processing core carries out calibration compensation on the ultrahigh harmonic according to the amplitude-frequency characteristics of each channel.
The step of calibrating and compensating the ultrahigh harmonic by the main processing core according to the amplitude-frequency characteristics of each channel further comprises the following steps:
and carrying out maximum, minimum, average and 95 value statistics on the ultrahigh-order harmonic values of all the channels in a set period of time by the main processing core.
Wherein, the main processing core further comprises, after the step of performing statistics of maximum, minimum, average, and 95 values on the super-high order harmonic values of each channel within a set period of time:
and respectively drawing a time-frequency graph of the maximum value, the minimum value, the average value and the 95 value of the ultrahigh subharmonic within one day by the main processing core, wherein the time is taken as a horizontal axis, the frequency is taken as a vertical axis, and the amplitude is displayed by colors.
The ultra-high harmonic measurement method of the present invention is further described below with reference to fig. 1 to 4.
The invention provides a high-cost-performance high-precision ultrahigh harmonic measurement method and a system thereof, which comprises the following steps:
1. at a set equal interval time point, for example, every half cycle, the main processing core switches a current write ring buffer pointer of the sample data ring buffer to a next sample data ring buffer, as shown in a channel switching example diagram in fig. 3, where the current write ring buffer pointer of the sample data ring buffer points to the ring buffer 2, and the current sampling channel is UA, the main processing core modifies the current write pointer of the sample data ring buffer to 3, and modifies a channel tag of the ring buffer 3 to a next channel UB to be analyzed, and after switching of the sample data ring buffers is completed, the main processing core controls the channel switching module to switch the next sampling channel to be analyzed to the UB. And the current write pointer of the sampling data annular buffer zone and the current read pointer of the sampling data annular buffer zone move according to a circular mode.
2. After the signal passes through the channel switching module, other signals except the frequency band signal to be analyzed are filtered through the band-pass filter, the analysis bandwidth of the ultrahigh harmonic is 2 kHz-150 kHz, and the low-frequency cutoff frequency and the high-frequency cutoff frequency of-5 db of the band-pass filter are 2kHz and 150kHz respectively. After the signals are subjected to band-pass filtering of 2 kHz-150 kHz, only the signals of the frequency range of 2 kHz-150 kHz are reserved.
3. The timer outputs a trigger pulse of 1.024M frequency at equal intervals and inputs to a pin of the coprocessor. The coprocessor monitors input pulses, when the rising edges of the input pulses are monitored, the coprocessor triggers the single-channel high-speed AD and reads data from the single-channel high-speed AD, the sampled data are stored in an annular cache area appointed by a current write annular cache area pointer according to an annular storage mode, and the position of the latest sampling point in the annular storage area is updated.
4. The method comprises the steps that a main processing core inquires a current read pointer and a current write pointer of a sampling data annular cache region in a low-priority task such as a main cycle, when the current read pointer of the sampling data annular cache region is inconsistent with the current write pointer of the sampling data annular cache region, the annular cache region needing to be analyzed is calculated and analyzed, the annular cache region needing to be analyzed is from the annular cache region corresponding to a current read pointer to the previous annular cache region of the annular cache region corresponding to a current write pointer, for example, the current write pointer of the annular cache region is 8, the current read pointer of the annular cache region is 6, and then the annular cache regions needing to be analyzed are 6 and 7. 512 sample data can be stored in each ring buffer, and the coprocessor stores the sample data in the sample buffer in a ring mode. The main processing core rearranges the storage positions of the ring buffer area to be analyzed according to the position of the latest sampling point in the ring buffer area according to the sampling time, for example, the position of the latest sampling point of the ring buffer area 4 in fig. 2 is 100, the main processing core stores the 100 th point in the original ring buffer area to the position of the 1 st point, the original 99 th point is stored in the position of the 2 nd point, the original 1 st point is stored in the position of 100 th point, the original 512 point is stored in the position of 101, the original 511 point is stored in the position of 102, and so on.
And the main processing core carries out FFT analysis on the rearranged annular buffer area needing analysis processing to obtain the frequency spectrum of the ultra-high harmonic wave. The analytical formula is as follows:
Figure BDA0002389302340000091
wherein N is the number of sampling points of the analysis window, in this example, the number of sampling points 512, x in the ring buffernAt the nth point in the ring buffer, h is the frequency of the spectral component, 1 represents the spectral component of 2kHz, and h represents the spectral component of (2 × h) kHz. After the result is calculated, the analysis result is stored in the corresponding channel result according to the channel tag corresponding to the ring cache region, for example, in the example diagram of channel switching in fig. 3, if the currently analyzed ring cache region is the ring cache region 1, the analysis result is stored in the ultrahigh harmonic analysis result of UC.
5. And the main processing core carries out calibration compensation on the ultrahigh harmonic according to the amplitude-frequency characteristics of each channel. The calibration compensation formula is as follows:
X[h]phase=X[h]phase*f(h)phase
wherein, X [ h ] represents the frequency spectrum of (2X h) kHz, phase represents phase, f (h) represents the compensation coefficient at (2X h) kHz.
6. The main processing core is set to carry out maximum, minimum, average and 95 value statistics on the ultrahigh harmonic values of all channels in a period of time. For example, the main processing core switches the sampling channel once per half cycle, and performs an ultrahigh-order harmonic analysis once per half cycle, performs statistics of the maximum and minimum average 95 values of the ultrahigh-order harmonic once every 3000 cycles, and analyzes the ultrahigh-order harmonic of all three channels, i.e., UA, UB, and UC, and then 1000 analysis values of each channel need to be counted every 3000 cycles. Where h represents the harmonic order range of 1, 2, … 75, where 1 corresponds to 2 kHz.
max(h)=max(X[h]1,X[h]2……X[h]999,X[h]1000)
min(h)=min(X[h]1,X[h]2……X[h]999,X[h]1000)
avg(h)=avg(X[h]1,X[h]2……X[h]999,X[h]1000)
P95(h)=P95(X[h]1,X[h]2……X[h]999,X[kh]1000)
7. The main processing core respectively draws the maximum, minimum, average and 95 values of the ultrahigh subharmonic waves of 2 kHz-150 kHz in one day, and displays the amplitude by using time as a horizontal axis, frequency as a vertical axis and color. The ultra-high harmonic time-frequency diagram is shown in fig. 4.
The ultrahigh harmonic measurement method has the beneficial effects that:
1. the invention realizes the analysis of multi-channel ultra-high harmonics by using a single sampling channel;
2. the invention fully applies the resources (a timer, a coprocessor, a memory and a main processing core in a main processing chip) of the original power quality monitoring system, realizes the calculation and analysis of the ultra-high harmonic wave on the basis of only adding few modules (including a channel switching module, a band-pass filter and a single-channel high-speed AD), and completes the analysis of the ultra-high harmonic wave on the original power quality monitoring system with only little cost;
3. according to the design process, parts needing high-speed processing are all completed by the coprocessor, so that the load of the main processor for ultrahigh-order harmonic analysis is reduced, and the stability of the system is improved.
In order to achieve the above object, the present invention further provides an ultra-high harmonic measurement system, where the system includes an electric energy quality monitoring system core module, a channel switching module, a band-pass filter, and a single-channel high-speed AD, the electric energy quality core module includes a memory, a processor, and an ultra-high harmonic measurement program stored in the processor, and the steps of the method described in the above embodiment are executed when the ultra-high harmonic measurement program is called by the processor, which is not described herein again.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or process changes made by using the contents of the specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. The ultrahigh-order harmonic measurement method is applied to an ultrahigh-order harmonic measurement system, the ultrahigh-order harmonic measurement system comprises a power quality monitoring system core module, a channel switching module, a band-pass filter and a single-channel high-speed AD, and the method comprises the following steps:
when the core module of the power quality monitoring system switches the current writing annular buffer pointer of the sampling data annular buffer to the next sampling data annular buffer at set equal time intervals, the channel switching module switches to the next sampling channel to be analyzed, and the core module of the power quality monitoring system marks the next sampling data annular buffer to be analyzed with a corresponding channel label;
after the signal passes through the channel switching module, the band-pass filter filters out signals except the ultrahigh harmonic frequency band signal to be analyzed, and the ultrahigh harmonic frequency band signal to be analyzed is input into the single-channel high-speed AD;
the core module of the power quality monitoring system triggers the single-channel high-speed AD to sample and read the sampled data, then the sampled data is stored in a sampled data annular cache region, and the core module of the power quality monitoring system analyzes and counts the sampled data to obtain the frequency spectrum and the time-frequency diagram of the ultrahigh harmonic wave;
the power quality monitoring system core module comprises a main processing chip and a memory, wherein the main processing chip comprises a timer, a coprocessor and a main processing core, and the step of switching the current write ring buffer pointer of the sampling data ring buffer to the next sampling data ring buffer at set equal time intervals by the power quality monitoring system core module comprises the following steps:
the main processing core switches a current write annular buffer area pointer of a sampling data annular buffer area to a next sampling data annular buffer area at set equal time intervals;
the step of marking the next sampling data annular cache region to be analyzed with a corresponding channel label by the core module of the power quality monitoring system comprises the following steps:
the main processing core marks a corresponding channel label on a next sampling data annular cache region to be analyzed;
the steps of triggering the single-channel high-speed AD to sample and read the sampled data by the core module of the power quality monitoring system comprise:
outputting a trigger pulse to the coprocessor by the timer, and outputting the trigger pulse to the single-channel high-speed AD by the coprocessor when the rising edge of the trigger pulse is monitored by the coprocessor;
the method comprises the following steps that a core module of the power quality monitoring system reads sampling data, then the sampling data are stored in a sampling data annular cache region, the core module of the power quality monitoring system analyzes the sampling data, and the frequency spectrum of the super high harmonic wave is obtained by the following steps:
the core module of the power quality monitoring system reads the sampled data, stores the sampled data into an annular cache region specified by a pointer of a current write annular cache region according to a circulating storage mode, and updates the position of the latest sampled point in the current write annular cache region;
inquiring a current read annular cache region pointer and a current write annular cache region pointer in a low-priority task by the main processing core;
when the current annular cache region reading pointer and the current annular cache region writing pointer are not consistent, the main processing core acquires an annular cache region needing to be analyzed and processed according to the current annular cache region reading pointer and the current annular cache region writing pointer, calculates and analyzes the annular cache region needing to be analyzed and processed to obtain the frequency spectrum of the super-high harmonic, and then updates the current reading pointer to a next sampling data annular cache region of the analyzed sampling data annular cache region.
2. The ultraharmonic measurement method of claim 1, wherein the ring buffer to be analyzed begins with the ring buffer pointed to by the current read ring buffer pointer and ends with the previous ring buffer pointed to by the current write ring buffer pointer;
the step of performing calculation analysis on the annular cache region to be analyzed and processed to obtain the frequency spectrum of the ultra-high harmonic wave comprises the following steps:
rearranging the storage positions of the sampled data of the annular cache region to be analyzed and processed according to the position of the latest sampling point in the annular cache region and the sequence of the sampling time;
and performing FFT calculation analysis on the rearranged annular buffer area needing to be processed to obtain the frequency spectrum of the ultra-high harmonic.
3. The ultraharmonic measurement method of claim 2, wherein the step of performing FFT computational analysis on the rearranged ring buffer to be processed to obtain the frequency spectrum of the ultraharmonics comprises:
storing the calculation analysis result into a corresponding channel result by the main processing core according to the channel label corresponding to the annular cache region;
and updating the current annular cache region reading pointer to the next annular cache region after the processed annular cache region by the main processing core.
4. The ultraharmonic measurement method of claim 3, wherein the step of storing, by the primary processing core, the computed analysis result into the corresponding channel result according to the channel tag corresponding to the ring buffer further comprises, after the step of:
and the main processing core carries out calibration compensation on the ultrahigh harmonic according to the amplitude-frequency characteristics of each channel.
5. The ultrahigh harmonic measurement method of claim 4, wherein the step of calibrating and compensating the ultrahigh harmonics by the main processing core according to the amplitude-frequency characteristics of each channel further comprises:
and carrying out maximum, minimum, average and 95 value statistics on the ultrahigh-order harmonic values of all the channels in a set period of time by the main processing core.
6. The ultrahigh harmonic measurement method of claim 5, wherein the step of performing maximum, minimum, average, 95 value statistics of the ultrahigh harmonic values of each channel within a set period of time by the main processing core further comprises:
and respectively drawing a time-frequency graph of the maximum, minimum, average and 95 values of the ultrahigh subharmonic within one day by the main processing core, wherein the time is taken as a horizontal axis, the frequency is taken as a vertical axis, and the amplitude is displayed by colors.
7. An ultra-high harmonic measurement system, the system comprising a power quality monitoring system core module, a channel switching module, a band pass filter, a single channel high speed AD, the power quality monitoring system core module further comprising a memory, a processor, and an ultra-high harmonic measurement program stored on the processor, the ultra-high harmonic measurement program when invoked by the processor performing the steps of the method of any of claims 1-6.
CN202010109000.0A 2020-02-21 2020-02-21 Ultra-high harmonic measurement method and system Active CN111257637B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010109000.0A CN111257637B (en) 2020-02-21 2020-02-21 Ultra-high harmonic measurement method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010109000.0A CN111257637B (en) 2020-02-21 2020-02-21 Ultra-high harmonic measurement method and system

Publications (2)

Publication Number Publication Date
CN111257637A CN111257637A (en) 2020-06-09
CN111257637B true CN111257637B (en) 2022-05-20

Family

ID=70945710

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010109000.0A Active CN111257637B (en) 2020-02-21 2020-02-21 Ultra-high harmonic measurement method and system

Country Status (1)

Country Link
CN (1) CN111257637B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866581B (en) * 2020-07-23 2022-08-23 杭州国芯科技股份有限公司 Method for rapidly switching digital television programs
CN116593769B (en) * 2023-07-17 2023-10-27 烟台东方威思顿电气有限公司 High-precision electric energy calculation method with wide dynamic range

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002040067A (en) * 2000-07-27 2002-02-06 Nissin Electric Co Ltd Detection method for inter-order harmonics
CN102288819A (en) * 2011-08-18 2011-12-21 东北大学 FPGA (field programmable gate array)-based power harmonic analyzer
CN202256496U (en) * 2011-10-11 2012-05-30 深圳市亚特尔科技有限公司 Power harmonic analysis apparatus based on FFT (fast Fourier transform)
CN203287434U (en) * 2013-04-24 2013-11-13 南京灿能电力自动化有限公司 Module applicable to high-frequency harmonic detection of power quality
CN103983849A (en) * 2014-05-07 2014-08-13 江苏天浩达科技有限公司 Real-time high-accuracy power harmonic analysis method
CN108897700A (en) * 2018-06-26 2018-11-27 青岛海信宽带多媒体技术有限公司 A kind of data processing method of ring buffer, device and set-top box

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002040067A (en) * 2000-07-27 2002-02-06 Nissin Electric Co Ltd Detection method for inter-order harmonics
CN102288819A (en) * 2011-08-18 2011-12-21 东北大学 FPGA (field programmable gate array)-based power harmonic analyzer
CN202256496U (en) * 2011-10-11 2012-05-30 深圳市亚特尔科技有限公司 Power harmonic analysis apparatus based on FFT (fast Fourier transform)
CN203287434U (en) * 2013-04-24 2013-11-13 南京灿能电力自动化有限公司 Module applicable to high-frequency harmonic detection of power quality
CN103983849A (en) * 2014-05-07 2014-08-13 江苏天浩达科技有限公司 Real-time high-accuracy power harmonic analysis method
CN108897700A (en) * 2018-06-26 2018-11-27 青岛海信宽带多媒体技术有限公司 A kind of data processing method of ring buffer, device and set-top box

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"电力系统动态过程在线监测装置的研制与应用";韩冰等;《黑龙江电力》;20081215;第30卷(第6期);第425-428、445页 *

Also Published As

Publication number Publication date
CN111257637A (en) 2020-06-09

Similar Documents

Publication Publication Date Title
CN111257637B (en) Ultra-high harmonic measurement method and system
CN109975611A (en) A kind of Fourier's analysis method of variable sampling rate
CN103278235A (en) Novel transient oscillation signal angular domain order tracking sampling and analytical method
CN107402597A (en) A kind of data and method, apparatus of clock alignment, medium and magnetic resonance equipment
CN103018514A (en) Virtual oscilloscope device based on sound card
Li Design and realization of FIR digital filters based on MATLAB
CN103901243A (en) High-trigger-accuracy oscilloscope
CN106612084B (en) Current sample processing circuit and sampling processing method
CN105044459B (en) A kind of harmonic analysis method
CN109347395A (en) The method and structure of servo-system current sample variable-order SINC filtering
CN102932077A (en) Method for measuring frequency spectrum occupancy rate
CN101726668B (en) Scanning control method of microwave signal analysis instrument and built-in scanning controller
CN102684795B (en) Radio-frequency signal automatic acquiring and processing device and method
CN115864449B (en) New energy access system oscillation monitoring method, device, system, equipment and medium
CN202583354U (en) Network type power quality on-line monitoring device
CN110649801B (en) Bus voltage sampling method, PFC control circuit and power conversion circuit
CN107543965A (en) A kind of I/Q data analysis process system, signal analyzer and method
CN112748283A (en) Audio signal sampling method, main control chip and audio module thereof
CN112737546A (en) Signal tracking method, filtering method and device and medical equipment
CN106885932A (en) A kind of oscillograph and its ADC uniformity compensation methods
CN111740753B (en) Network communication signal acquisition system
Li et al. Design of humidity monitoring system based on virtual instrument
CN111505701A (en) Compact accelerator beam phase and position measuring system and method
CN108776259A (en) Power analyzer based on digital bandwidth restriction technologies
CN204964620U (en) Test equipment of total harmonic distortion and SNR parameter

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant