CN104614586B - A kind of electrical quantity signal adaptive method of sampling based on GPS - Google Patents

A kind of electrical quantity signal adaptive method of sampling based on GPS Download PDF

Info

Publication number
CN104614586B
CN104614586B CN201510016798.3A CN201510016798A CN104614586B CN 104614586 B CN104614586 B CN 104614586B CN 201510016798 A CN201510016798 A CN 201510016798A CN 104614586 B CN104614586 B CN 104614586B
Authority
CN
China
Prior art keywords
denoted
int
sampling
clock
pps
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
CN201510016798.3A
Other languages
Chinese (zh)
Other versions
CN104614586A (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.)
SHANGHAI WESCON SYSTEM CONTROL Inc
Original Assignee
SHANGHAI WESCON SYSTEM CONTROL 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 SHANGHAI WESCON SYSTEM CONTROL Inc filed Critical SHANGHAI WESCON SYSTEM CONTROL Inc
Priority to CN201510016798.3A priority Critical patent/CN104614586B/en
Publication of CN104614586A publication Critical patent/CN104614586A/en
Application granted granted Critical
Publication of CN104614586B publication Critical patent/CN104614586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A kind of electrical quantity signal adaptive method of sampling based on GPS, in rated frequency of the required sample rate close to chip, the degree that the dispersion of the dispersion and each sampling section width that effectively inhibit each sampling interval width increases, when making to improve sample rate in the case where the rated frequency of chip can not improve, the acquisition precision decline degree for also reducing electrical quantity is possibly realized.The present invention can predict rapidly next second clock frequency according to the variation tendency of clock frequency before, with stronger anti-interference, will not significantly it change because of the unstable generation sample frequency of pulse per second (PPS) of input, the difference especially adjusted allows more than the width of 1 sampled point, expands application range.

Description

A kind of electrical quantity signal adaptive method of sampling based on GPS
Technical field
The invention belongs to electric system observation and control technology fields, are specifically exactly to be related to a kind of electrical quantity signal based on GPS Adaptively sampled method.
Background technique
With the further expansion of electric system scale, various types of power supplys and load are linked into system, make electricity The control of Force system becomes more complicated.In order to guarantee the safe and stable operation of system, the frequency to Current Voltage, width are needed Value, harmonic wave, phase angle, the electrical quantity such as electric flux carry out high-precision measurement.In order to obtain high-precision electrical quantities measurement value, handing over It needs to control the number of interior sampled point per second not only when stream sampling to guarantee the precision of sample rate, but also needs to improve each sampling Point interval uniformity coefficient.In electrical quantity acquisition and calculating process, the sampled data needs sequence of each second and comparably distribute It is calculated to the AC sampling of number wheel, for example, need to carry out the calculating of 50 wheel electric voltage frequencies each second, sample rate 3200Hz, then 3200 point datas of each second need sequentially to evenly distribute to be calculated to this 50 wheel frequency, needed for each round calculates in other words 64 total sampling widths of sampled point, the width of referred to as sampling section is also required to as identical as possible here.Therefore in order to improve each round Calculated result precision, not only need to reduce the mutual dispersion of 3200 sampling intervals, and be also required to reduce 50 The mutual dispersion of section width is sampled, the sampling section of narrower width otherwise will be made to calculate the measured value of the a-c cycle obtained It is bigger than normal, and the measured value that the sampling section of wider width calculates the a-c cycle obtained is less than normal.
Chinese patent 201410173291.4 discloses a kind of high-precision pulse per second (PPS) based on FPGA and occurs frequently again sampling pulse Method, be denoted as method 1 below.This method compares actual synchronization pulse per second (PPS) count value and ideal synchronisation pulse per second (PPS) count value Compared with, deviation and sample frequency are subjected to accumulation calculating, judge whether pulse counter is corrected according to accumulation calculating result, from And reach and the total deviation of actual synchronization pulse per second (PPS) is evenly distributed in actual samples pulse, the error of sampling pulse is reduced, Relatively reliable stable sampling pulse signal is provided for signal acquisition.But method 1 haves the defects that several aspects, first, The deterministic process of judgement and actual samples the pulse output of accumulation amount during accumulation calculating can introduce time delay;Second, this is adopted Quadrat method needs the premise of a hypothesis: the frequency variation of crystal oscillator is very small, but the frequency of actually crystal oscillator can be with environment Temperature and device inside state consecutive variations, the sample effect that the effect of method 1 can be generated than practical crystal oscillator frequency postpone one second It appears above;Third, jamproof robustness is not strong, such as when the synchronization pulse per second (PPS) of input is unstable, such as along occurring once in a while A little earlier or a little later, that will lead to actual samples interval and also broaden together narrow, and reality is caused still to be not allowed with measurement result Really;4th, which may be only available for the factor of difference 4,8 equal 4000, and the difference adjusted can not be more than 1 sampling The width count value of point, makes application range have limitation.
In conclusion the existing electrical quantity signal sampling method scope of application is narrow, as semiconductor chip frequency reaches Physics limit, and need to further increase sample rate to obtain high resolution measurement, therefore the sample rate that will lead to is further Close to chip rated frequency when, the dispersion of sampling interval width and the dispersion for sampling section width can become larger rapidly.
Summary of the invention
The purpose of the present invention is for existing electrical quantity signal sampling method, that there are the scope of applications is narrow, measurement numerical value is still So have the defects that large error with actual value, a kind of electrical quantity signal adaptive method of sampling based on GPS is provided, is expanded The scope of application of sampling effectively inhibits point of each sampling interval width in rated frequency of the required sample rate close to chip The degree that the dispersion of scattered and each sampling section width increases, makes the raising sampling in the case where the rated frequency of chip can not improve When rate, the acquisition precision decline degree for also reducing electrical quantity is possibly realized.
Technical solution
In order to achieve the above technical purposes, the present invention designs a kind of electrical quantity signal adaptive method of sampling based on GPS, It is characterized in that, it including the following steps:
The first step receives standard pulse per second (PPS), with the clock number between the pulse per second (PPS) of clock counter continuous counter and pulse per second (PPS) It is denoted as C0
Second step is denoted as C using the clock number between pulse per second (PPS) recently three times0, C-1And C-2, predict the second next time Clock number between pulse, is denoted as C1
Third step, sample rate are denoted as S=3200 point/second, and basic interval clock number is denoted as B1=int (C1/ S), once share equally Remainder is denoted as G1=C1%S, if G1It is zero, then the sampling interval is all equal to B1, the 6th step is jumped directly to, otherwise more than sample rate Number scale is F1=S%G1, into the 4th step;
4th step, if F1It is zero, the sampled point space-number once shared equally is denoted as D1=int (S/G1), first sampled point A sampled point basic interval clock number in [0,3199] later is B1, in D1-1,2D1-1,…,mD1In -1 sampling interval Add the delay of 1 clock, and once sharing number scale is m=[1, int (S/D1)], jump to the 6th step;If F1Be not zero then into Enter the 5th step;
5th step, D1=int (S/G1)+1, the secondary sampled point space-number shared equally is denoted as D2=int (S/R2), it is secondary remaining Number scale is R2=G1-int(S/D1), [0,3199] after first sampled point a sampled point basic interval clock number is B1, In D1-1,2D1-1,…,mD1Add the delay of 1 clock, and m=[1, int (S/D in -1 sampling interval1)], in D2-1, 2D2-1,…,pD2Add the delay of 1 clock in -1 sampling interval, it is secondary to share number, it is denoted as p=[1, R2], into the 6th step;
6th step is sampled according to sample rate S according to the sampling interval of generation, jumps to second step.
Further, work as C in the second step0, C-1And C-2When being initialized as 0, then C is needed-2It is received in after actual value, It can carry out sampling action.
Further, in the second step 2, if external pulse per second (PPS) is unstable, C is calculated using equalization method1=int ((C0+C-1+C-2)/3);C is calculated by slope if crystal oscillator often changes with temperature1=int ((C0+2C-1-C-2)/2)。
Beneficial effect
A kind of electrical quantity signal adaptive method of sampling based on GPS provided by the invention, expands the applicable model of sampling It encloses, in rated frequency of the required sample rate close to chip, effectively inhibits the dispersion and each sampling of each sampling interval width The degree that the dispersion of Duan Kuandu increases also reduces when making to improve sample rate in the case where the rated frequency of chip can not improve The acquisition precision decline degree of electrical quantity is possibly realized.The present invention can be pre- rapidly according to the variation tendency of clock frequency before Survey next second clock frequency, have stronger anti-interference, will not because of input the unstable generation sample frequency of pulse per second (PPS) it is big The variation of amplitude, the difference especially adjusted allow more than the width of 1 sampled point, expand application range.
Detailed description of the invention
Attached drawing 1 is operational flowchart of the invention.
Specific embodiment
With reference to the accompanying drawings and examples, the present invention will be further described.
Embodiment
As shown in Fig. 1, with the clock count value C of actual standard pulse per second (PPS)0=2500020, C-1=2500014, C-2= 2500018, sample rate S=3200 point/second, for every wheel calculates 64 sampled points of needs,
The first step receives standard pulse per second (PPS), with the clock number between the pulse per second (PPS) of clock counter continuous counter and pulse per second (PPS) C0, C-1, C-2
Second step predicts the count value C at next pulse per second (PPS) interval1=int ((C0+C-1+C-2)/3)=2500017;
Third step, every theoretical total linear spacing for taking turns 64 sampled points in calculating cycle are C1* 64/S=50000.34clocks; Basic interval clock number B1=int (C1/ S)=781;Once share remainder G equally1=C1%S=817;Because of G1It is not zero, then F1= S%G1=749, into the 4th step,
4th step, if F1It is not zero, into the 5th step;
5th step, D1=int (S/G1)+1=4, D2=int (S/R2)=188, R2=G1-int(S/D1)=17;First 0~3199 sampled point basic interval after a sampled point is all 781 clocks;Because of D1=4, so the 3rd, Add the delay of 1 clock, and m=1~int (S/D in the sampling interval of 7 ..., 4m-1,31991);Because of D2=188, so Add the delay of 1 clock, p=1~R in the sampling interval of 187th, 375 ..., 188p-1,31952
6th step carries out 3200 point samplings according to the sampling interval of generation, jumps second step.
With 64 sampled points in every wheel calculating cycle, there is the calculating of 50 wheels in 3200 points, it is every to take turns practical total linear spacing and theory Being worth mean error is 0.0009%, and specific evaluation is as follows:
Invention which is intended to be protected is not limited only to the technical solution that above-described embodiment is related to, any by skill of the invention The enlightenment of art scheme should all fall into protection scope of the present invention.

Claims (3)

1. a kind of electrical quantity signal adaptive method of sampling based on GPS, which is characterized in that it including the following steps:
(I) standard pulse per second (PPS) is received, is denoted as C with the clock number between the pulse per second (PPS) of clock counter continuous counter and pulse per second (PPS)0
(II) using the clock number between pulse per second (PPS) recently three times, it is denoted as C0, C-1And C-2, predict between pulse per second (PPS) next time Clock number, be denoted as C1
(III) sample rate is denoted as S=3200 point/second, and basic interval clock number is denoted as B1=int (C1/ S), once share remainder equally, It is denoted as G1=C1%S, if G1It is zero, then the sampling interval is all equal to B1, step (VI) is jumped directly to, otherwise sample rate remainder It is denoted as F1=S%G1, enter step (IV);
(IV) if F1It is zero, the sampled point space-number once shared equally is denoted as D1=int (S/G1), after first sampled point [0,3199] a sampled point basic interval clock number is B1, in D1-1,2D1-1,…,mD1Add 1 in -1 sampling interval The delay of clock, and once sharing number scale is m=[1, int (S/D1)], go to step (VI);
If F1It is not zero, enters step (V);
(V)D1=int (S/G1)+1, the secondary sampled point space-number shared equally is denoted as D2=int (S/R2), quadratic remainder is denoted as R2= G1-int(S/D1), [0,3199] after first sampled point a sampled point basic interval clock number is B1, in D1-1, 2D1-1,…,mD1Add the delay of 1 clock, and m=[1, int (S/D in -1 sampling interval1)], in D2-1,2D2-1,…, pD2Add the delay of 1 clock in -1 sampling interval, it is secondary to share number, it is denoted as p=[1, R2], enter step (VI);
(VI) it is sampled according to the sampling interval of generation according to sample rate S, go to step (II).
2. a kind of electrical quantity signal adaptive method of sampling based on GPS as described in claim 1, it is characterised in that: described Work as C in step (II)0, C-1And C-2When being initialized as 0, then C is needed-2It is received in after actual value, can just carry out sampling action.
3. a kind of electrical quantity signal adaptive method of sampling based on GPS as described in claim 1, it is characterised in that: described In step (II), if external pulse per second (PPS) is unstable, C is calculated using equalization method1=int ((C0+C-1+C-2)/3);If Crystal oscillator often changes with temperature, calculates C by slope1=int ((C0+2C-1-C-2)/2)。
CN201510016798.3A 2015-01-13 2015-01-13 A kind of electrical quantity signal adaptive method of sampling based on GPS Active CN104614586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510016798.3A CN104614586B (en) 2015-01-13 2015-01-13 A kind of electrical quantity signal adaptive method of sampling based on GPS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510016798.3A CN104614586B (en) 2015-01-13 2015-01-13 A kind of electrical quantity signal adaptive method of sampling based on GPS

Publications (2)

Publication Number Publication Date
CN104614586A CN104614586A (en) 2015-05-13
CN104614586B true CN104614586B (en) 2019-01-18

Family

ID=53149122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510016798.3A Active CN104614586B (en) 2015-01-13 2015-01-13 A kind of electrical quantity signal adaptive method of sampling based on GPS

Country Status (1)

Country Link
CN (1) CN104614586B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6271773B1 (en) * 1999-07-13 2001-08-07 Teratec Corporation Coherent sampling method and apparatus
CN100520419C (en) * 2003-07-11 2009-07-29 Nxp股份有限公司 Improved frequency determination
CN101719765A (en) * 2009-11-25 2010-06-02 中兴通讯股份有限公司 Method and device for generating low-jitter clock
CN101762742A (en) * 2009-12-16 2010-06-30 南京弘毅电气自动化有限公司 Sampling value correcting method based on fixed-frequency sampling sequence
CN101848076A (en) * 2010-05-10 2010-09-29 新邮通信设备有限公司 Clock signal holding method and device
CN102354108A (en) * 2011-06-09 2012-02-15 国网电力科学研究院 Method for realizing dynamic sampling rate adjustment by oversampling
CN202256483U (en) * 2011-10-26 2012-05-30 江西省电力公司超高压分公司 GPS (Global Positioning System) second-based real-time self-adaptive evenly-spaced sampling synchronous data acquisition device
CN102778606A (en) * 2012-07-26 2012-11-14 南京邮电大学 Digital measurement method for instantaneous phase of alternating current
CN103018555A (en) * 2012-12-24 2013-04-03 电子科技大学 High-precision electric power parameter software synchronous sampling method
CN103185837A (en) * 2013-03-25 2013-07-03 华中科技大学 Method for measuring frequency of power system
CN103713552A (en) * 2013-12-23 2014-04-09 国电南瑞科技股份有限公司 Self-adaptive dynamic synchronous sampling control device and method based on pulse per second
CN103941622A (en) * 2014-04-28 2014-07-23 国家电网公司 Method for adopting high-accuracy pulse per second frequency multiplication to produce sampling pulse based on FPGA

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6271773B1 (en) * 1999-07-13 2001-08-07 Teratec Corporation Coherent sampling method and apparatus
CN100520419C (en) * 2003-07-11 2009-07-29 Nxp股份有限公司 Improved frequency determination
CN101719765A (en) * 2009-11-25 2010-06-02 中兴通讯股份有限公司 Method and device for generating low-jitter clock
CN101762742A (en) * 2009-12-16 2010-06-30 南京弘毅电气自动化有限公司 Sampling value correcting method based on fixed-frequency sampling sequence
CN101848076A (en) * 2010-05-10 2010-09-29 新邮通信设备有限公司 Clock signal holding method and device
CN102354108A (en) * 2011-06-09 2012-02-15 国网电力科学研究院 Method for realizing dynamic sampling rate adjustment by oversampling
CN202256483U (en) * 2011-10-26 2012-05-30 江西省电力公司超高压分公司 GPS (Global Positioning System) second-based real-time self-adaptive evenly-spaced sampling synchronous data acquisition device
CN102778606A (en) * 2012-07-26 2012-11-14 南京邮电大学 Digital measurement method for instantaneous phase of alternating current
CN103018555A (en) * 2012-12-24 2013-04-03 电子科技大学 High-precision electric power parameter software synchronous sampling method
CN103185837A (en) * 2013-03-25 2013-07-03 华中科技大学 Method for measuring frequency of power system
CN103713552A (en) * 2013-12-23 2014-04-09 国电南瑞科技股份有限公司 Self-adaptive dynamic synchronous sampling control device and method based on pulse per second
CN103941622A (en) * 2014-04-28 2014-07-23 国家电网公司 Method for adopting high-accuracy pulse per second frequency multiplication to produce sampling pulse based on FPGA

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于GPS授时的脉冲峰值采集系统;杨启勇等;《测控技术》;20081031;第27卷(第10期);33-35

Also Published As

Publication number Publication date
CN104614586A (en) 2015-05-13

Similar Documents

Publication Publication Date Title
Yao et al. A novel method for phasor measurement unit sampling time error compensation
Fortier et al. Precision atomic spectroscopy for improved limits on variation of the fine structure constant and local position invariance
CN109283864B (en) Time synchronization and calibration method and system for data sampling
CN106026919B (en) The punctual compensation method of crystal oscillator
CN103941622B (en) Occur frequently again the method for sampling pulse based on the high accuracy pulse per second (PPS) of FPGA
CN109428598B (en) Calibration method and system for data sampling
CN102118007B (en) Electronic mutual inductor synchronization method based on PPS
CN109425844B (en) Calibration method and system for data sampling
Romano et al. A high-performance, low-cost PMU prototype for distribution networks based on FPGA
Brennan et al. Tearing mode stability studies near ideal stability boundaries in DIII-D
CN106932642B (en) Electric Power Harmonic Analysis method
CN102902879A (en) Synchronous phasor calculation method based on discrete Fourier transform (DFT) recursion of field programmable gate array (FPGA) hardware
CN104614586B (en) A kind of electrical quantity signal adaptive method of sampling based on GPS
CN102170143A (en) Microcomputer automatic quasi-synchronization paralleling realization method
Wu et al. Optimal pmu design based on sampling model and sensitivity analysis
CN103152041B (en) The system of a kind of fine-structure constant variation measuring method and application the method
Rybaniec et al. Real-time estimation of superconducting cavities parameters
Qi et al. On-chip real-time correction for a 20-ps wave union time-to-digital converter (TDC) in a field-programmable gate array (FPGA)
CN102721861A (en) Alternating current power measurement method
CN105572554B (en) The online Insulation monitoring frequency self-adapting measuring method of wireless sense network
CN109120260A (en) A kind of clock module high-precision phase demodulation system and method based on ASIC-TDC
Baron et al. Jitter impact on clock distribution in LHC experiments
CN103401534B (en) Based on the method for the final voltage fast prediction of RC circuit discharge and recharge
Teodorescu et al. Improving time measurement precision in embedded systems with a hybrid measuring method
Jiang et al. Study on time scale algorithm of hydrogen maser based on minimum error theory

Legal Events

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