patents.google.com

CN117353463B - Synchronous sampling method and related device for multipath alternating current electric quantity - Google Patents

  • ️Tue Mar 19 2024
Synchronous sampling method and related device for multipath alternating current electric quantity Download PDF

Info

Publication number
CN117353463B
CN117353463B CN202311640337.4A CN202311640337A CN117353463B CN 117353463 B CN117353463 B CN 117353463B CN 202311640337 A CN202311640337 A CN 202311640337A CN 117353463 B CN117353463 B CN 117353463B Authority
CN
China
Prior art keywords
sampling
synchronous
channel
signal
pulse width
Prior art date
2023-12-04
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
CN202311640337.4A
Other languages
Chinese (zh)
Other versions
CN117353463A (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.)
Zhongshan Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
Zhongshan Power Supply Bureau of Guangdong Power Grid Co Ltd
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.)
2023-12-04
Filing date
2023-12-04
Publication date
2024-03-19
2023-12-04 Application filed by Zhongshan Power Supply Bureau of Guangdong Power Grid Co Ltd filed Critical Zhongshan Power Supply Bureau of Guangdong Power Grid Co Ltd
2023-12-04 Priority to CN202311640337.4A priority Critical patent/CN117353463B/en
2024-01-05 Publication of CN117353463A publication Critical patent/CN117353463A/en
2024-03-19 Application granted granted Critical
2024-03-19 Publication of CN117353463B publication Critical patent/CN117353463B/en
Status Active legal-status Critical Current
2043-12-04 Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00001Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by the display of information or by user interaction, e.g. supervisory control and data acquisition systems [SCADA] or graphical user interfaces [GUI]
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/25Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00032Systems characterised by the controlled or operated power network elements or equipment, the power network elements or equipment not otherwise provided for
    • H02J13/00034Systems characterised by the controlled or operated power network elements or equipment, the power network elements or equipment not otherwise provided for the elements or equipment being or involving an electric power substation
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K7/00Modulating pulses with a continuously-variable modulating signal
    • H03K7/08Duration or width modulation ; Duty cycle modulation
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • H03M1/124Sampling or signal conditioning arrangements specially adapted for A/D converters
    • H03M1/1245Details of sampling arrangements or methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Supply And Distribution Of Alternating Current (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

The application discloses a synchronous sampling method of multipath alternating current electric quantity and a related device, wherein the method comprises the following steps: acquiring the power grid frequency of an alternating current power supply system of a transformer substation; inputting the power grid frequency into an internal timer to generate a pulse width modulation signal, triggering a multi-channel sampling device to perform sampling through the rising edge of the pulse width modulation signal to complete synchronous interruption, and obtaining first sampling data; and carrying out single-channel synchronous processing on the first sampling data by a sampling time adjustment method to obtain synchronous sampling data. The method and the device can achieve the purpose of period synchronization, improve the precision of synchronous sampling, and can be widely applied to the technical field of synchronous sampling.

Description

Synchronous sampling method and related device for multipath alternating current electric quantity

Technical Field

The application relates to the technical field of synchronous sampling, in particular to a synchronous sampling method and a related device for multipath alternating current electric quantity.

Background

In an electric power system, alternating current is widely applied, and particularly, a transformer substation alternating current power supply system needs to synchronously sample multiple paths of alternating current electric quantity for data analysis and fault judgment. In the related art, a software synchronous sampling method is generally adopted for synchronous sampling, specifically, the period of a measured signal and the number of sampling points are measured to obtain a sampling interval, the count value of a timer is determined, and the synchronous sampling is realized in a timing interruption mode. The method omits a hardware link, has a simple structure, but can not accurately measure the period because the frequency of the signal is changed in a certain range, and can not synchronize with the period of the actual signal after sampling for a plurality of times according to the sampling interval calculated by the inaccurate period, namely, synchronization errors exist. In view of the foregoing, there is a need for solving the technical problems in the related art.

Disclosure of Invention

The application provides a synchronous sampling method and a related device for multipath alternating current electric quantity, which are used for reducing synchronous errors and improving sampling efficiency.

In view of this, the first aspect of the present application provides a method for synchronously sampling multiple ac electric voltages, the method comprising:

acquiring the power grid frequency of an alternating current power supply system of a transformer substation;

inputting the power grid frequency into an internal timer to generate a pulse width modulation signal, triggering a multi-channel sampling device to perform sampling through the rising edge of the pulse width modulation signal to complete synchronous interruption, and obtaining first sampling data;

storing the first sampling data through a direct memory access controller; stopping acquisition of a plurality of analog-to-digital converters in the multi-channel sampling device to finish synchronous interruption; after the calculation, display and serial port data transmission are completed, carrying out synchronous adjustment on the sampling period; and stopping the synchronous interruption and reactivating the multipath analog-to-digital converter to sample so as to obtain synchronous sampling data.

Optionally, the obtaining the grid frequency of the ac power supply system of the substation includes:

performing level timing processing on an input square wave of the transformer substation alternating current power supply system to obtain a period value of an input signal;

and performing first-order inertial digital filtering processing on the period value to obtain the power grid frequency.

Optionally, the inputting the grid frequency into an internal timer generates a pulse width modulation signal, including:

synchronizing a time source of an internal timer according to the power grid frequency to obtain a synchronizing signal;

and generating a corresponding pulse width modulation signal according to the synchronous signal.

Optionally, the triggering the multi-path sampling device to perform sampling by the rising edge of the pulse width modulation signal to complete synchronization interruption, to obtain first sampling data includes:

starting sampling by starting a plurality of analog-digital converters;

generating a pulse width modulation signal to a high-precision timer in the singlechip according to a starting signal as a synchronous signal, and triggering the multi-channel analog-to-digital converter to sample by using the rising edge of the pulse width modulation signal;

and carrying out channel synchronous compensation processing on the multipath analog-to-digital converter to obtain first sampling data.

Optionally, the performing channel synchronization compensation processing on the multipath analog-to-digital converter to obtain first sampling data includes:

subtracting the measured data of the same measured signal period of the first channel and the second channel in the multipath analog-to-digital converter to obtain a signal average value;

carrying out unwrapping fitting on the signals measured by the second channel to obtain an unwrapping fitting slope;

dividing the average value by the unwrapped fitting slope to obtain an average sampling time difference of two channels;

and carrying out channel synchronous compensation processing on the multipath analog-to-digital converter according to the average sampling time difference of the two channels to obtain first sampling data.

Optionally, the performing single-channel synchronous processing on the first sampling data by using a sampling time adjustment method to obtain synchronous sampling data includes:

and storing the first sampling data through a direct memory access controller, exiting the synchronous interruption and reactivating the multi-path sampling device to sample so as to obtain synchronous sampling data.

Optionally, the storing the first sampled data by the direct memory access controller, exiting the synchronization interrupt and reactivating the multi-path sampling device to sample, so as to obtain synchronous sampled data, including:

storing the first sampling data through a direct memory access controller;

stopping acquisition of the multipath analog-to-digital converter to finish synchronous interruption;

after the calculation, display and serial port data transmission are completed, carrying out synchronous adjustment on the sampling period;

and stopping the synchronous interruption and reactivating the multipath analog-to-digital converter to sample so as to obtain synchronous sampling data.

A second aspect of the present application provides a multiple ac electric quantity synchronous sampling system, the system comprising:

the first module is used for acquiring the power grid frequency of the transformer substation alternating current power supply system;

the second module is used for inputting the power grid frequency into an internal timer to generate a pulse width modulation signal, triggering a multi-path sampling device to perform sampling through the rising edge of the pulse width modulation signal to complete synchronous interruption, and obtaining first sampling data;

a third module, configured to store the first sampled data through a direct memory access controller; stopping acquisition of a plurality of analog-to-digital converters in the multi-channel sampling device to finish synchronous interruption; after the calculation, display and serial port data transmission are completed, carrying out synchronous adjustment on the sampling period; and stopping the synchronous interruption and reactivating the multipath analog-to-digital converter to sample so as to obtain synchronous sampling data.

Optionally, the first module is specifically configured to:

performing level timing processing on an input square wave of the transformer substation alternating current power supply system to obtain a period value of an input signal;

and performing first-order inertial digital filtering processing on the period value to obtain the power grid frequency.

Optionally, the second module is specifically configured to:

synchronizing a time source of an internal timer according to the power grid frequency to obtain a synchronizing signal;

generating a corresponding pulse width modulation signal according to the synchronous signal;

starting sampling by starting a plurality of analog-digital converters;

generating a pulse width modulation signal to a high-precision timer in the singlechip according to a starting signal as a synchronous signal, and triggering the multi-channel analog-to-digital converter to sample by using the rising edge of the pulse width modulation signal;

and carrying out channel synchronous compensation processing on the multipath analog-to-digital converter to obtain first sampling data.

A third aspect of the present application provides a multi-channel ac electric quantity synchronous sampling device, the device comprising a processor and a memory:

the memory is used for storing program codes and transmitting the program codes to the processor;

the processor is configured to execute the steps of the method for synchronously sampling multiple ac electric voltages according to the instructions in the program code.

A fourth aspect of the present application provides a computer readable storage medium storing program code for performing the multi-channel ac electric quantity synchronous sampling method according to the first aspect.

From the above technical scheme, the application has the following advantages:

the application provides a synchronous sampling method for multipath alternating current electric quantity, which is used for acquiring the power grid frequency of an alternating current power supply system of a transformer substation; inputting the power grid frequency into an internal timer to generate a pulse width modulation signal, triggering a multi-channel sampling device to perform sampling through the rising edge of the pulse width modulation signal to complete synchronous interruption, and obtaining first sampling data; and carrying out single-channel synchronous processing on the first sampling data by a sampling time adjustment method to obtain synchronous sampling data. The method compensates the acquisition time errors of the multiple channels by improving the interpolation method, so that the synchronous sampling efficiency and the synchronous rate of the multiple channels of alternating current electric quantity are improved; the scheme also adjusts the acquisition time of each channel, thereby achieving the aim of period synchronization, better acquisition effect and improving synchronous sampling precision.

Drawings

Fig. 1 is a schematic flow chart of a method for synchronously sampling multiple ac electric quantities provided in an embodiment of the present application;

fig. 2 is a schematic structural diagram of a synchronous sampling system for multiple ac electric voltages according to an embodiment of the present application.

Detailed Description

In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.

It should be noted that, in the power system, the application of ac is very wide, and especially, the ac power system of the transformer substation needs to synchronously sample multiple paths of ac electric quantities for data analysis and fault judgment. At present, the alternating current sampling mode mainly comprises three modes of hardware synchronous sampling, software synchronous sampling and asynchronous sampling. The hardware synchronization is realized by the hardware synchronization circuit to interrupt the CPU. Hardware synchronization circuits come in a variety of forms, such as phase locked loop synchronization circuits and the like. The traditional technology generally adopts a software synchronous sampling method to carry out synchronous sampling, and specifically obtains a sampling interval by measuring the period and the sampling point number of a detected signal, determines the count value of a timer and realizes synchronous sampling in a timing interruption mode.

The existing method omits a hardware link, has a simple structure, but can not accurately measure the period because the frequency of the signal is changed in a certain range, and can not synchronize with the period of the actual signal after sampling for a plurality of times according to the sampling interval calculated by the inaccurate period, namely, synchronization errors exist.

In view of this, the embodiment of the application provides a method for synchronously sampling multiple ac electric voltages of a transformer substation ac power system, which can be applied to a terminal, a server, software running in the terminal or the server, and the like. The terminal may be, but is not limited to, a tablet computer, a notebook computer, a desktop computer, etc. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms.

Referring to fig. 1, a method for synchronously sampling multiple ac electric quantities provided in an embodiment of the present application includes:

step 101, acquiring the power grid frequency of an alternating current power supply system of a transformer substation;

102, inputting the frequency of a power grid into an internal timer to generate a pulse width modulation signal, triggering a multi-channel sampling device to perform sampling through the rising edge of the pulse width modulation signal to complete synchronous interruption, and obtaining first sampling data;

step 103, storing and processing the first sampling data through a direct memory access controller; stopping acquisition of a plurality of analog-digital converters in the multi-channel sampling device to finish synchronous interruption; after the calculation, display and serial port data transmission are completed, carrying out synchronous adjustment on the sampling period; and (5) exiting the synchronous interruption and reactivating the multipath analog-to-digital converter to sample so as to obtain synchronous sampling data.

Further as an optional implementation manner, the obtaining the grid frequency of the ac power supply system of the transformer substation includes:

performing level timing processing on an input square wave of the transformer substation alternating current power supply system to obtain a period value of an input signal;

and performing first-order inertial digital filtering processing on the period value to obtain the power grid frequency.

Further as an alternative embodiment, the inputting the grid frequency into an internal timer generates a pulse width modulated signal, including:

synchronizing a time source of an internal timer according to the power grid frequency to obtain a synchronizing signal;

and generating a corresponding pulse width modulation signal according to the synchronous signal.

Further as an optional implementation manner, the triggering the multi-path sampling device to perform sampling by the rising edge of the pulse width modulation signal to complete synchronization interruption, to obtain first sampling data, includes:

starting sampling by starting a plurality of analog-digital converters;

generating a pulse width modulation signal to a high-precision timer in the singlechip according to a starting signal as a synchronous signal, and triggering the multi-channel analog-to-digital converter to sample by using the rising edge of the pulse width modulation signal;

and carrying out channel synchronous compensation processing on the multipath analog-to-digital converter to obtain first sampling data.

Further as an optional implementation manner, the performing channel synchronization compensation processing on the multipath analog-to-digital converter to obtain first sampling data includes:

subtracting the measured data of the same measured signal period of the first channel and the second channel in the multipath analog-to-digital converter to obtain a signal average value;

carrying out unwrapping fitting on the signals measured by the second channel to obtain an unwrapping fitting slope;

dividing the average value by the unwrapped fitting slope to obtain an average sampling time difference of two channels;

and carrying out channel synchronous compensation processing on the multipath analog-to-digital converter according to the average sampling time difference of the two channels to obtain first sampling data.

In a feasible embodiment, the electronic transformer is applied to the intelligent substation and comprises a multichannel acquisition and amplification circuit, a singlechip, a memory and the like, and multichannel signals are transmitted to the singlechip for processing and finally stored in the memory through the multichannel acquisition and amplification circuit, but obvious delay exists in the process, so that the improvement is carried out by the following method on the basis of the device:

acquiring the power grid frequency of an alternating current power supply system of a transformer substation;

inputting the power grid frequency into an internal timer to generate a pulse width modulation signal, triggering a multi-channel sampling device to perform sampling through the rising edge of the pulse width modulation signal to complete synchronous interruption, and obtaining first sampling data;

and carrying out single-channel synchronous processing on the first sampling data by a sampling time adjustment method to obtain synchronous sampling data.

The method is specifically characterized by comprising the following steps of: the method comprises the steps of timing high-low level time of an input square wave of a power grid in an intelligent substation by an internal capture function of a singlechip to obtain a period of an input signal, filtering sampling data by adopting first-order inertial digital filtering, and finally calculating to obtain the frequency of the power grid. And synchronizing the time source of the singlechip according to the power grid frequency.

After the synchronization of the time sources of the protection device and the interval merging unit is completed, the sampling is started by starting the multi-channel ADC, a starting signal adopts a high-precision timer in the singlechip to generate PWM waves, and the rising edge of the PWM waves is used for triggering the sampling of the multi-channel ADC. And subtracting the measured data of the same measured signal period of the first channel and the later channel in the multipath ADC to obtain the average value. Then, carrying out unwrapping fitting on the signals measured by the rear channel by utilizing Matlab to obtain an unwrapping fitting slope; and obtaining the average sampling time difference of the two channels when the average value is at the slope, and analogizing the average sampling time difference of the two channels, and synchronously compensating each channel.

After synchronous compensation is carried out on the multipath acquisition channels, the synchronization of the sampling device is finished by a sampling time adjustment method for each channel, specifically, the ADC acquisition is stopped after one-time alternating current sampling is finished, after the calculation, display and serial port data transmission are finished, the sampling period is synchronously adjusted, then the ADC sampling is activated again, the alternating current sampling synchronously collects voltage and current signals by the double ADCs, and the DMA carries the data after the ADC conversion to a cache.

The above is a multi-channel ac electric quantity synchronous sampling method provided in the embodiments of the present application, and the following is a multi-channel ac electric quantity synchronous sampling system provided in the embodiments of the present application.

Referring to fig. 2, a multi-path ac electric quantity synchronous sampling system provided in an embodiment of the present application includes:

a first module 201, configured to obtain a grid frequency of a transformer substation ac power supply system;

the second module 202 is configured to input the power grid frequency into an internal timer to generate a pulse width modulation signal, and trigger the multi-path sampling device to perform sampling to complete synchronous interruption through a rising edge of the pulse width modulation signal, so as to obtain first sampling data;

a third module 203, configured to store the first sampled data through a direct memory access controller; stopping acquisition of a plurality of analog-digital converters in the multi-channel sampling device to finish synchronous interruption; after the calculation, display and serial port data transmission are completed, carrying out synchronous adjustment on the sampling period; and (5) exiting the synchronous interruption and reactivating the multipath analog-to-digital converter to sample so as to obtain synchronous sampling data.

Further, in the embodiment of the present application, there is also provided a multi-path ac electric quantity synchronous sampling device, where the device includes a processor and a memory:

the memory is used for storing program codes and transmitting the program codes to the processor;

the processor is configured to execute the steps of the method for synchronously sampling multiple ac electric voltages according to the instructions in the program code.

Further, in the embodiments of the present application, there is also provided a computer readable storage medium for storing a program code for executing the method described in the above method embodiments.

It will be clear to those skilled in the art that, for convenience and brevity of description, the specific working procedures of the above-described system and unit may refer to the corresponding procedures in the foregoing method embodiments, which are not repeated here.

The terms "first," "second," "third," "fourth," and the like in the description of the present application and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be capable of operation in sequences other than those illustrated or described herein, for example. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

It should be understood that in this application, "at least one" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.

In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.

The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.

The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.

The above embodiments are merely for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (7)

1. The synchronous sampling method for the multipath alternating current electric quantity is characterized by comprising the following steps of:

acquiring the power grid frequency of an alternating current power supply system of a transformer substation;

inputting the power grid frequency into an internal timer to generate a pulse width modulation signal, triggering a multi-channel sampling device to perform sampling through the rising edge of the pulse width modulation signal to complete synchronous interruption, and obtaining first sampling data;

storing the first sampling data through a direct memory access controller; stopping acquisition of a plurality of analog-to-digital converters in the multi-channel sampling device to finish synchronous interruption; after the calculation, display and serial port data transmission are completed, carrying out synchronous adjustment on the sampling period; the synchronous interruption is exited, and the multipath analog-to-digital converter is restarted to sample, so that synchronous sampling data are obtained;

the step of triggering the multi-path sampling device to perform sampling through the rising edge of the pulse width modulation signal to complete synchronous interruption, so as to obtain first sampling data, including:

starting sampling by starting a plurality of analog-digital converters;

generating a pulse width modulation signal to a high-precision timer in the singlechip according to a starting signal as a synchronous signal, and triggering the multi-channel analog-to-digital converter to sample by using the rising edge of the pulse width modulation signal;

subtracting the measured data of the same measured signal period of the first channel and the second channel in the multipath analog-to-digital converter to obtain a signal average value;

carrying out unwrapping fitting on the signals measured by the second channel to obtain an unwrapping fitting slope;

dividing the average value by the unwrapped fitting slope to obtain an average sampling time difference of two channels;

and carrying out channel synchronous compensation processing on the multipath analog-to-digital converter according to the average sampling time difference of the two channels to obtain first sampling data.

2. The method for synchronously sampling multiple ac electric quantities according to claim 1, wherein the step of obtaining the grid frequency of the ac power supply system of the substation comprises:

performing level timing processing on an input square wave of the transformer substation alternating current power supply system to obtain a period value of an input signal;

and performing first-order inertial digital filtering processing on the period value to obtain the power grid frequency.

3. The method of claim 1, wherein inputting the grid frequency into an internal timer to generate a pulse width modulated signal comprises:

synchronizing a time source of an internal timer according to the power grid frequency to obtain a synchronizing signal;

and generating a corresponding pulse width modulation signal according to the synchronous signal.

4. A synchronous sampling system for multiple ac electric quantities, comprising:

the first module is used for acquiring the power grid frequency of the transformer substation alternating current power supply system;

the second module is used for inputting the power grid frequency into an internal timer to generate a pulse width modulation signal, triggering a multi-path sampling device to perform sampling through the rising edge of the pulse width modulation signal to complete synchronous interruption, and obtaining first sampling data;

the step of triggering the multi-path sampling device to perform sampling through the rising edge of the pulse width modulation signal to complete synchronous interruption, so as to obtain first sampling data, including:

starting sampling by starting a plurality of analog-digital converters;

generating a pulse width modulation signal to a high-precision timer in the singlechip according to a starting signal as a synchronous signal, and triggering the multi-channel analog-to-digital converter to sample by using the rising edge of the pulse width modulation signal;

subtracting the measured data of the same measured signal period of the first channel and the second channel in the multipath analog-to-digital converter to obtain a signal average value;

carrying out unwrapping fitting on the signals measured by the second channel to obtain an unwrapping fitting slope;

dividing the average value by the unwrapped fitting slope to obtain an average sampling time difference of two channels;

carrying out channel synchronous compensation processing on the multipath analog-to-digital converter according to the average sampling time difference of the two channels to obtain first sampling data;

a third module, configured to store the first sampled data through a direct memory access controller; stopping acquisition of a plurality of analog-to-digital converters in the multi-channel sampling device to finish synchronous interruption; after the calculation, display and serial port data transmission are completed, carrying out synchronous adjustment on the sampling period; and stopping the synchronous interruption and reactivating the multipath analog-to-digital converter to sample so as to obtain synchronous sampling data.

5. The multiple ac electric quantity synchronous sampling system according to claim 4, wherein the first module is specifically configured to:

performing level timing processing on an input square wave of the transformer substation alternating current power supply system to obtain a period value of an input signal;

and performing first-order inertial digital filtering processing on the period value to obtain the power grid frequency.

6. A multi-channel ac electric quantity synchronous sampling device, comprising a processor and a memory:

the memory is used for storing program codes and transmitting the program codes to the processor;

the processor is configured to execute the multi-channel ac electric quantity synchronous sampling method according to any one of claims 1-3 according to instructions in the program code.

7. A computer readable storage medium storing program code for performing the multi-channel ac electric quantity synchronous sampling method of any one of claims 1-3.

CN202311640337.4A 2023-12-04 2023-12-04 Synchronous sampling method and related device for multipath alternating current electric quantity Active CN117353463B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311640337.4A CN117353463B (en) 2023-12-04 2023-12-04 Synchronous sampling method and related device for multipath alternating current electric quantity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311640337.4A CN117353463B (en) 2023-12-04 2023-12-04 Synchronous sampling method and related device for multipath alternating current electric quantity

Publications (2)

Publication Number Publication Date
CN117353463A CN117353463A (en) 2024-01-05
CN117353463B true CN117353463B (en) 2024-03-19

Family

ID=89355997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311640337.4A Active CN117353463B (en) 2023-12-04 2023-12-04 Synchronous sampling method and related device for multipath alternating current electric quantity

Country Status (1)

Country Link
CN (1) CN117353463B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004096815A (en) * 2002-08-29 2004-03-25 Fuji Electric Holdings Co Ltd Method of synchronizing carriers in pwm control action, and pwm controller
CN102116796A (en) * 2010-12-10 2011-07-06 天津凯发电气股份有限公司 eTPU-based synchronous sampling and frequency measuring device for alternating-current signals and working method thereof
CN102495912A (en) * 2011-10-26 2012-06-13 电子科技大学 A multi-channel high-speed data acquisition system with synchronous correction function
CN103795790A (en) * 2014-01-23 2014-05-14 国电南瑞科技股份有限公司 Distributed synchronous sampling and control system and method based on communication
CN108717398A (en) * 2018-04-10 2018-10-30 中国舰船研究设计中心 A kind of pulse signal synchronization system and method suitable for USB interface
CN111896802A (en) * 2020-06-30 2020-11-06 成都四威功率电子科技有限公司 Frequency self-adaptive sampling method
CN112968691A (en) * 2021-02-10 2021-06-15 西南电子技术研究所(中国电子科技集团公司第十研究所) Pulse time delay precision self-adaptive synchronization method
CN114740260A (en) * 2022-04-07 2022-07-12 贵州电网有限责任公司 Power-specific synchronous acquisition method for real-time detection and adjustment of crystal oscillator output frequency

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004096815A (en) * 2002-08-29 2004-03-25 Fuji Electric Holdings Co Ltd Method of synchronizing carriers in pwm control action, and pwm controller
CN102116796A (en) * 2010-12-10 2011-07-06 天津凯发电气股份有限公司 eTPU-based synchronous sampling and frequency measuring device for alternating-current signals and working method thereof
CN102495912A (en) * 2011-10-26 2012-06-13 电子科技大学 A multi-channel high-speed data acquisition system with synchronous correction function
CN103795790A (en) * 2014-01-23 2014-05-14 国电南瑞科技股份有限公司 Distributed synchronous sampling and control system and method based on communication
CN108717398A (en) * 2018-04-10 2018-10-30 中国舰船研究设计中心 A kind of pulse signal synchronization system and method suitable for USB interface
CN111896802A (en) * 2020-06-30 2020-11-06 成都四威功率电子科技有限公司 Frequency self-adaptive sampling method
CN112968691A (en) * 2021-02-10 2021-06-15 西南电子技术研究所(中国电子科技集团公司第十研究所) Pulse time delay precision self-adaptive synchronization method
CN114740260A (en) * 2022-04-07 2022-07-12 贵州电网有限责任公司 Power-specific synchronous acquisition method for real-time detection and adjustment of crystal oscillator output frequency

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
交流采样同步方法的分析与改进;黄纯, 何怡刚, 江亚群, 彭建春;中国电机工程学报(第09期);第38-42页 *

Also Published As

Publication number Publication date
CN117353463A (en) 2024-01-05

Similar Documents

Publication Publication Date Title
CN106253902B (en) 2019-01-25 Multi-channel parallel acquisition system with multi-device synchronous reset recognition and correction function
CN105549379B (en) 2017-10-13 A kind of synchronous measuring apparatus triggered based on split-second precision benchmark and method
CN108710026B (en) 2020-05-05 Frequency stability measuring method and system based on high-precision phase frequency analysis
JP2006313162A (en) 2006-11-16 System and method for calibrating time interleaved timing of data converter
CN107656151B (en) 2020-12-29 A measurement and control method for realizing synchronous sampling and processing of full-sequence power grid measurement data
EP2898418B1 (en) 2017-08-16 Branch circuit monitoring
EP3117226B1 (en) 2019-12-11 Digital frequency response analysis system and method useful for power supplies
CN106772185B (en) 2020-03-10 Signal interval or period detection method and device for oscilloscope
Loschmidt et al. 2012 Highly Accurate Timestamping for Ethernet‐Based Clock Synchronization
Romano et al. 2014 An enhanced interpolated-modulated sliding DFT for high reporting rate PMUs
CN104155517B (en) 2017-03-08 A kind of non-integer-period sampled error compensating method of digitalized electrical energy meter and system
KR101665903B1 (en) 2016-10-12 Signal processing apparatus
CN102638339B (en) 2014-12-24 Method and device for realizing precision time synchronization
WO2014155706A1 (en) 2014-10-02 Signal processing device
CN117353463B (en) 2024-03-19 Synchronous sampling method and related device for multipath alternating current electric quantity
KR101423653B1 (en) 2014-08-01 Measuring apparatus and measuring method
CN107104674B (en) 2022-01-21 Noise power estimation device in electric parameter measurement process
CN108449088B (en) 2022-03-01 Multichannel high-speed sampling synchronization method and device
CN113985251A (en) 2022-01-28 Delay deviation measuring method and device of digital channel and electronic device
Ong et al. 2004 Jitter spectral extraction for multi-gigahertz signal
CN114285514B (en) 2024-04-23 Clock synchronization method and device
CN115796291A (en) 2023-03-14 Signal synchronization method, signal synchronization device, electronic equipment and computer readable storage medium
CN114745775A (en) 2022-07-12 Frequency offset estimation method and device in wireless communication system
CN118377748B (en) 2024-09-17 Dynamic sampling data synchronization method and system
CN109387697A (en) 2019-02-26 Wireless phase measurement device, method for synchronizing time and wireless Method for Phase Difference Measurement

Legal Events

Date Code Title Description
2024-01-05 PB01 Publication
2024-01-05 PB01 Publication
2024-01-23 SE01 Entry into force of request for substantive examination
2024-01-23 SE01 Entry into force of request for substantive examination
2024-03-19 GR01 Patent grant
2024-03-19 GR01 Patent grant