CN102004186A - High-accuracy sinusoidal signal measuring method and device for removing frequency spectrum leakage - Google Patents
High-accuracy sinusoidal signal measuring method and device for removing frequency spectrum leakage Download PDFInfo
- Publication number
- CN102004186A CN102004186A CN201010538457XA CN201010538457A CN102004186A CN 102004186 A CN102004186 A CN 102004186A CN 201010538457X A CN201010538457X A CN 201010538457XA CN 201010538457 A CN201010538457 A CN 201010538457A CN 102004186 A CN102004186 A CN 102004186A
- Authority
- CN
- China
- Prior art keywords
- signal
- beta
- frequency
- sin
- alpha
- 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.)
- Granted
Links
Images
Landscapes
- Measurement Of Resistance Or Impedance (AREA)
Abstract
The invention discloses a high-accuracy sinusoidal signal measuring device for removing frequency spectrum leakage, comprising an analog signal pre-processing unit, a data acquisition unit, a digital signal processing unit, a measuring result display unit, and a communication interface unit, wherein the analog signal pre-processing unit is connected with the data acquisition unit through multipath signal wires, and the digital signal processing unit is connected with the data acquisition unit, the measuring result display unit and the communication interface unit respectively through an SPI (Serial Peripheral Interface) bus. The measuring method comprises the steps of: 1, continuously sampling a signal to be measured to obtain sequences S1 and S2; 2, carrying out fast Fourier transform on the S1, extracting a peak frequency spectrum and obtaining the peak frequency spectrum of the S2 through recursion; 3, calculating the frequency of the signal to be measured by applying the peak frequency spectrums of the S1 and the S2; 4, calculating the phase of the signal to be measured according to the phase angle information of the peak frequency spectrums of the S1 and S2; 5, solving an equation set relevant to positive and negative frequency spectrum amplitudes to obtain the measured value of the amplitude of the signal to be measured; and 6, removing the influence of the frequency spectrum leakage to obtain the accurate measured valve of a direct-current component.
Description
One, technical field
The present invention relates to a kind of method for measuring sine signal with high accuracy and device of eliminating spectrum leakage, belong to the signal measurement technique field.
Two, background technology
In industrial circles such as electrotechnical measurement, power network monitoring, vibration noise measurement, Audio Processing and Radar Signal Processing, often need each parameter of offset of sinusoidal signal to carry out high-acruracy survey.The amplitude that needs accurately to measure sinusoidal signal as the electric energy metrical of precision, the frequency jitter of monitoring electrical network needs accurately to measure in real time sinusoidal wave frequency, flow and radar precision ranging with the Coriolis flowmeter tracer liquid need the accurately phase differential of measurement sinusoidal signal, and the loss of calculating transformer direct current needs the DC component in the measuring-signal.
Method for measuring sine signal can be divided into hardware mensuration and software measurement method.Traditional measuring method and device mainly realize that by hardware circuit its measuring accuracy depends on the performance of metering circuit.The software measurement method is with computing machine digital signal to be handled after analog signal conversion is become digital signal, and it is the new development trend of current input, and its measuring accuracy and performance depend primarily on digital signal processing algorithm.
1, the subject matter of traditional sinusoidal signal measurement mechanism
Mainly there is following problem in the traditional measurement device that is used to detect the sinusoidal signal parameter:
(1) the traditional measurement device mainly realizes that by hardware circuit be vulnerable to noise, measuring accuracy is lower, can not satisfy more and more higher commercial measurement requirement.
(2) the traditional measurement device is big to the hardware-dependent degree, and clock stability, device have seriously restricted the measuring accuracy of traditional measurement device to the ardware features such as delay of signal.
(3) traditional measurement plant automation degree is low, and is poor to the input signal amplitude adaptive faculty, can not be according to the automatic conditioning signal Amplifier Gain coefficient of the size of measured signal.When signal amplitude is big, may exceed measurement range, shown in Fig. 4 a and Fig. 4 b; When the signal amplitude signal quantization error that hour sampling obtains bigger, shown in Fig. 5 a and Fig. 5 b.
2, the present main sinusoidal signal Measurement Algorithm and the problem of existence thereof
Signal processing algorithm among the present invention belongs to the category of Spectral Analysis Method.The most basic principle of Spectral Analysis Method is that signal is carried out discrete Fourier transform (DFT) (DFT), obtains the parameter information of signal from frequency field.Discrete Fourier transform (DFT) has ripe fast algorithm FFT, i.e. fast fourier transform already.Under non-integer-period sampled condition, directly use the FFT method can produce spectrum leakage, the frequency spectrum of gained is the frequency content of reflected signal truly, short scope is leaked and long scope is leaked two parts error but comprised, shown in Fig. 6 b and Fig. 6 d.
It is because the discrete spectrum peak value that is obtained by the continuous frequency spectrum sampling under the non-integer-period sampled condition not at the crest frequency place of continuous spectrum, has caused the spectrum amplitude distortion that short scope is leaked.The main method that overcomes short scope leakage at present has two kinds: frequency spectrum interpolation and windowing intercepting.Long scope leakage is that the negative frequency composition in the frequency spectrum causes, and the error that it causes under following two kinds of situations be can not ignore.The first, when measured signal frequency during much smaller than sample frequency or near Nyquist frequency (half of sample frequency); The second, when sampling number hour.The main method that overcomes long scope leakage at present has the method for approximation of simplification and analytical method.These two kinds of errors have had a strong impact on the measuring accuracy of FFT method.
Utilization interpolation method and windowing intercept method can overcome the influence that short scope is leaked.In the Korean Patent database, the patent No. is KR20030089995A, name is called the patent and document " based on the high precision FFT frequency analysis of the bimodal spectral line of the windowing " [Liu Min of " adopting frequency and phase shift interpolation to improve the method for discrete Fourier transform (DFT) or fast fourier transform precision " (METHOD FOR INTERPOLATING FREQUENCY AND PHASE OFFSET TO IMPROVE RESOLUTION OF DFT OR FFT), Wang Keying .[J]. electrical measurement and instrument, 2006,43 (4): 20-23] all adopt the method for bimodal spectral line interpolation to overcome the influence that short scope is leaked, but all ignored the negative frequency composition, thereby can't overcome the influence that long scope is leaked.Although the latter adopts window adding technology to suppress the influence of negative frequency to frequency spectrum, measuring accuracy is higher than the former, but still can't fundamentally eliminate the influence of negative frequency, especially when the measured signal frequency during much smaller than sample frequency or near the Nyquist frequency measuring error more obvious.And the precision of windowed interpolation method depends primarily on window function, and when the measured signal parameter changed, the parameter of window function also needed to change thereupon, need determine the parameter of window function according to signal parameter, and implementation method is complicated.
It is the bottleneck of restriction sinusoidal signal measuring accuracy that long scope is leaked.In the Inpadoc, the patent No. is WO03058261A1, name is called the influence that " method of eliminating non-integer-period sampled signal discrete Fourier transform spectrum leakage " (DFT LEAKAGE REMOVAL FOR NON-COHERENTLY SAMPLED SIGNALS) considered negative frequency, has provided the accurate measurement method of sinusoidal signal amplitude when accurately predicting the measured signal frequency.But it is inapplicable fully under measured signal frequency condition of unknown.
In the United States Patent (USP) database, the patent No. is US6965068B2, the patent that name is called " system and method that input signal spectrum is estimated " (SYSTEM AND METHOD FOR ESTIMATING TONES IN AN INPUT SIGNAL) has adopted iterative algorithm, at first ignoring the amplitude that three spectral line approximate evaluations that utilize frequency spectrum under the situation of negative frequency influence go out sinusoidal signal, frequency, phase parameter, then according to the parameter reconstruct negative frequency composition frequency spectrum that estimates, the negative frequency frequency spectrum that deducts reconstruct from former frequency spectrum obtains new frequency spectrum, estimate the parameter of sinusoidal signal again with three frequency spectrums, iterate, till the precision that reaches setting.There is following shortcoming in said method: the first, and iterative process needs the frequency spectrum of reconstruct negative frequency repeatedly, and calculated amount is bigger.The second, need use three spectral lines and just can measure, thereby can't tell the signal of frequency between first and the 3rd spectral line, reduced the frequency resolution of algorithm.
Document " improving the frequency domain interpolation method of phase measurement " [Dusan Agrez.[J]. measure, 2008,41 (2): 151-159] (" Interpolation in the frequency domain to improve phase measurement " [Dusan Agrez.[J] .Measurement, 2008,41 (2): 151-159]) proposed under the situation of considering negative frequency, to utilize three spectral lines to be similar to the method for interpolation, can overcome the influence that short scope is leaked and long scope is leaked, improve measuring accuracy.But the method has following shortcoming: the first, and need use three spectral lines and just can measure, thereby can't tell the signal of frequency between first and the 3rd spectral line respective frequencies point, reduced the frequency resolution of algorithm.The second, the method is an approximate data, only is applicable to the situation that sampling number is bigger, when sampling number more after a little while, Algorithm Error is bigger.
The present invention adopts a kind of analytic method that is easy to realize, can eliminate the influence that short scope is leaked and long scope is leaked fully, has fundamentally solved non-integer-period and has blocked the spectrum leakage problem that causes.The digital sequence of N point of continuous sampling is carried out FFT obtain spectrum peak, obtain postponing the spectrum peak of signal after the sampling interval by one step of simple algebraic operation recursion, utilize two spectrum peaks and flip-flop frequency spectrum to parse amplitude, frequency, phase place and the DC component of sinusoidal signal accurately.
Name is called " sinusoidal signal four parameters testing method and virtual instrument signal supervisory instrument ", the patent No. is that the Chinese patent of ZL200810101338.0 discloses a kind of simplification approximate measure method of considering short scope leakage and long scope leakage contribution simultaneously, and the method that proposes with the present invention has following difference.The first, above-mentioned patent is that the digital sequence of 2N-1 point is split into two sections, carries out FFT respectively, in fact will carry out the FFT that twice N ordered, and the present invention only need carry out N point FFT one time.The second, above-mentioned patent has adopted simplifies approximate method, is exact method and the present invention adopts, and without simplification, thereby the measurement result precision is higher than foregoing invention, sees Table 1.The 3rd, it is that sampling number N is bigger that foregoing invention is simplified approximate precondition, and the present invention is not subjected to this condition restriction.N is big more, and the operand of FFT is also just big more.In addition, foregoing invention will be carried out twice FFT computing, and calculated amount is about twice of the present invention.The 4th, one of foregoing invention feature is sampling number " N gets 2 positive integer time power ", and the sampling number in this method does not have this restriction.
Name is called " method for measuring sine signal with high accuracy ", and application number is that 200910089315.7 Chinese patent also discloses and a kind ofly considers that simultaneously short scope is leaked and the measuring method of long scope leakage contribution, and measuring process also is similar to simplification.But tangible difference is arranged with the present invention.First, one of feature of above-mentioned patent is " described be sampled as non-integer-period sampled, promptly sampling period and sinusoidal signal are not integral multiple relation between the cycle ", and that the present invention both had been applicable to was integer-period sampled, be applicable to non-integer-period sampledly again, be not subjected to the restriction of above-mentioned measuring condition.The second, above-mentioned patented method utilization be maximum and time two big spectral lines of amplitude in the frequency spectrum, thereby can't tell the signal of frequency between these two spectral line respective frequencies points, reduced the frequency resolution of algorithm.And utilization of the present invention is two peaks spectrum of same discrete point in frequency, can not reduce the Measurement Resolution to signal frequency.The 3rd, measure low frequency signal with above-mentioned patented method, when sampling number is low, can occur unusual, cause data to be overflowed, parameter that can't measuring-signal, and this type of unusual situation can not appear in this method, still can keep high accuracy, shown in table 2a, table 2b and table 2c.The 4th, above-mentioned patented method does not provide the measuring method of DC component, and utilization the inventive method can obtain the pin-point accuracy measured value of whole four parameters of sinusoidal signal.
Name is called " high-efficiency measurement method of the sinusoidal signal frequency under owing to sample and device ", and the Chinese patent of application number 201010162687.0 discloses a kind of method of owing to measure under the sampling condition sinusoidal signal frequency.Said method and the inventive method have following difference.The first, one of said method feature is to be applicable to owe sampling condition, does not promptly satisfy the situation of sampling thheorem, and the inventive method is applicable to the situation that satisfies sampling thheorem.The second, said method only provides the measuring method of sinusoidal signal frequency, and the inventive method energy measurement goes out the whole parameter of sinusoidal signal; The 3rd, said method another feature is " with long convolution window Wc for (2N-1) the individual data of center sampling point x (0) forward and backward (2N-1) being weighted; the data that will be spaced apart N are then carried out overlap-add in twos; again the data behind the overlap-add are carried out DFT ", and the inventive method does not need data are carried out windowing process, directly the N point data is done the FFT computing.The 4th, reach same frequency resolution, the data length of the required sampling of the inventive method is less than said method.For example, when sample frequency all is fs, reach the frequency resolution of fs/128, said method 255 point data of need sampling, 129 point data and the inventive method only need be sampled.
Three, summary of the invention
1, purpose: at the deficiency that has method for measuring sine signal and device both at home and abroad now, the purpose of this invention is to provide a kind of method for measuring sine signal with high accuracy and device of eliminating spectrum leakage, it can realize the measurement of offset of sinusoidal signal amplitude, frequency, phase place and DC component pin-point accuracy.
2, technical scheme:
(1) a kind of sine signal with high accuracy measurement mechanism of eliminating spectrum leakage of the present invention, it is made up of simulating signal pretreatment unit, data acquisition unit, digital signal processing unit, measurement result display unit, communications interface unit, as shown in Figure 1.Position annexation between them is: connect by the multiple signals line between simulating signal pretreatment unit and the data acquisition unit, digital signal processing unit is connected with data acquisition unit, measurement result display unit, communications interface unit respectively by spi bus.
Described simulating signal pretreatment unit is made up of buffer circuit and filtering circuit, is connected by the multiple signals line between its buffer circuit and the filtering circuit; This buffer circuit adopts accurate isolated amplifier ISO124, and it realizes the isolation of input stage and output stage signal by the isolation capacitance that is encapsulated in device inside; This filtering circuit adopts continuous time filter MAX274, the high frequency noise that its function produces when being filtering process buffer circuit; This unit mainly isolates and low-pass filtering simulating signal.
Described data acquisition unit is made up of multi-channel analog selector switch, programmable gain amplifier, Programmable Logic Controller CPLD and AD converter.The multiple signals line that multi-channel analog selector switch input termination filtering circuit comes out, output terminal is one road signal wire, is connected to the programmable gain amplifier input end, the programmable gain amplifier output terminal is connected to AD converter by one road signal wire.This multi-channel analog selector switch adopts DG201, is used for the signal that will sample from the multichannel analog signals selection; This programmable gain amplifier adopts AD256 to realize, it can change the Amplifier Gain coefficient according to the control code that Programmable Logic Controller is sent here; This Programmable Logic Controller CPLD is used to finish the function of controlling of sampling and adjusting, controls the gain coefficient of programmable gain amplifier according to the range of each input; This AD converter adopts AD677, is used for pretreated simulating signal is converted into digital signal.
Described digital signal processing unit adopts dsp chip TMS320C5402, and signalization process of measurement in the built-in RAM of DSP mainly comprises FFT computing and a spot of algebraic operation, is used to realize signal measurement algorithm proposed by the invention.
Described measurement result display unit, adopting model is liquid crystal display displays signal waveform and the measurement result of LCM320240.
Described communications interface unit adopts asynchronous communication interface chip 16C550, and measurement mechanism is communicated by RS232 bus interface and PC, realizes the debugging to measurement mechanism, also signal measurement data and result can be delivered to PC from measurement mechanism.
A kind of sine signal with high accuracy measurement mechanism of eliminating spectrum leakage, its course of work is as follows:
Multiple signals to be measured are delivered to isolator by the multiple signals line and are carried out the external noise isolation, through the high frequency noise jamming in the wave filter filtered signal, deliver to the multi-channel analog selector switch then.Programmable Logic Controller CPLD and AD677 carry out exchanges data by spi bus and dsp chip.The CPLD sending controling instruction is to multi-channel analog selector switch and AD converter, make the multiple signals of AD converter with fixed sampling frequency sampling input, AD converter is delivered to the data of sampling among the DSP by solidifying the multichannel buffered serial port McBSP that is provided with in spi bus and the DSP then.DSP calculates suitable amplifier gain coefficient according to the magnitude range that receives data, send to CPLD by spi bus, CPLD produces steering order and delivers to programmable gain amplifier, changes its gain coefficient, and CPLD delivers to DSP with amended gain coefficient by spi bus simultaneously.The resulting measurement result of dsp operation signal processing algorithm is delivered to LCD through spi bus and is shown, simultaneously can pass through RS232 asynchronous communication interface chip 16C550, signal measurement data and result are delivered to PC via standard serial interface, carry out visualization processing and demonstration.
(2) a kind of method for measuring sine signal with high accuracy of eliminating spectrum leakage of the present invention, adopt a kind of analytic method that is easy to realize, can eliminate the influence that short scope is leaked and long scope is leaked fully, fundamentally solve non-integer-period and blocked the spectrum leakage problem that causes.It at first carries out FFT to the digital sequence of N point of continuous sampling and obtains spectrum peak, the spectrum peak of signal utilized the geometric vector method to parse amplitude, frequency, phase place and the DC component of sinusoidal signal accurately according to two spectrum peaks again after one step, recursion obtained postponing a sampling period by simple algebraic operation then.As shown in Figure 2, the concrete steps of this method are as follows:
Step 1: continuous sampling to measured signal, obtain the digital sequence S1 of N point, and the Serial No. S2 after it is postponed a sampling period;
N is a sampling number, and f is a sinusoidal signal frequency, and T is the sampling period,
Be sample frequency.
Be the normalization numerical frequency.
The Nyquist sampling thheorem is satisfied in sampling.Wherein [] represents integral part.
Step 2: sequence S1 is carried out fast Fourier transform (FFT), extract peaks spectrum, and obtain the peaks spectrum of sequence S2 through a step recursion;
The frequency spectrum of S1
Following formula can be write as
Wherein: first is positive frequency composition frequency spectrum; Second is negative frequency composition frequency spectrum; Third part
Be the DC component frequency spectrum.Preceding two frequency spectrums that constitute alternating component jointly.
The alternating component peaks spectrum is
The peaks spectrum X of S2
2(q) do not need sequence S2 is done the FFT computing, only need utilize the peaks spectrum X of S1
1(q) obtain through a step recursion
S1 peak values of ac frequency spectrum with positive and negative frequency content frequency spectrum designation is
X
1(q)=A
1·exp(jα
1)+A
2·exp(-jβ
1) (4)
Wherein positive and negative frequency content spectral magnitude is respectively A
1, A
2, corresponding phase place is α respectively
1, (β
1).
S2 peak values of ac frequency spectrum with positive and negative frequency content frequency spectrum designation is
X
2(q)=A
1·exp(jα
2)+A
2·exp(-jβ
2) (5)
Wherein positive and negative frequency content spectral magnitude is respectively A
1, A
2, corresponding phase angle is α respectively
2, (β
2).
α
2=α
1+ω
β
2=β
1+ω
By on can get
When the spectrum peak subscript was determined, λ was a known quantity.
Step 3: the amplitude of integrated use S1 and S2 peaks spectrum and the coupled relation between the phase angle accurately calculate the frequency of measured signal;
Not independent of each other between the amplitude of S1 and the positive and negative frequency content of S2 and the phase angle, but have coupled relation.
Order
Then S1 is had
In like manner, S2 is had
Obtain by formula (7) and formula (9)
By
Can be with formula (11) arrangement
Order
Formula (13) is
Can get
Step 4: accurately calculate the phase place of measured signal according to the peaks spectrum phase angle information of S1 and S2 with the geometric vector method, as shown in Figure 3;
Note δ
1=Arg[X
1(q)], δ
2=Arg[X
2(q)], then
By formula (19) and formula (20), cancellation k
A
sin(2α
1+λ+ω)sin(δ
2-δ
1)=sin(δ
1+δ
2+λ)sinω (21)
Promptly
Following formula has disclosed the phase angle of S1 and S2 AC compounent spectrum peak and the frequency of signal, the relation of phase place.
Step 5: utilization geometric vector method, by separating the accurate measured value that obtains the measured signal amplitude about the linear equation in two unknowns group of positive and negative frequency spectrum amplitude;
By (4) Shi Kede
Solve
The phase angle accurate Calculation value of positive and negative frequency content is in the peaks spectrum
The accurate measured value of AC compounent amplitude
Step 6: remove the influence of spectrum leakage, obtain the accurate measured value of DC component to the DC component frequency spectrum;
Consider by (1) formula
The accurate measured value of DC component
(3) advantage and effect:
A kind of method for measuring sine signal with high accuracy and device of eliminating spectrum leakage of the present invention has following advantage:
1) measuring method can be measured whole four parameters of amplitude, frequency, phase place and DC component of sinusoidal signal under the condition of the complete the unknown of measured signal.
2) measuring method precision height, antijamming capability is strong.
3) the measuring method calculated amount is little.Measuring method does not have iterative process, only need carry out FFT and a spot of algebraic operation.Wherein topmost calculated amount is the FFT computing, and ripe fast algorithm has been arranged, and can realize dynamic real-time measurement through this Measurement Algorithm of practice test.
4) measuring condition is loose, and measuring method is good to signal parameter adaptability.
5) will reach identical frequency resolution, the data volume of the required sampling of this method is few.
In sample frequency all is f
S, the frequency resolution of algorithm all is f
SUnder/128 the condition, the data volume of existing method and the required sampling of this method is compared.In the United States Patent (USP) database, the patent No. is US6965068B2, and name is called the patent of " input signal spectrum estimate system and method " (SYSTEM AND METHOD FOR ESTIMATING TONES IN AN INPUT SIGNAL) need be to signal sampling 384 points.Application number is that 200910089315.7 the disclosed method of Chinese patent " method for measuring sine signal with high accuracy " need be to signal sampling 256 points.The patent No. is that the disclosed method of Chinese patent " sinusoidal signal four parameters testing method and virtual instrument signal supervisory instrument " of ZL200810101338.0 need be to signal sampling 255 points.The disclosed method of the Chinese patent of application number 201010162687.0 " high-efficiency measurement method of the sinusoidal signal frequency under owing to sample and device " need be to data 255 points of sampling.And this method only need be to signal sampling 129 points.
6) the measurement mechanism cost is low, the cost performance height.
7) the anti-external noise interference performance of measurement mechanism is strong.
8) measurement mechanism automaticity height can be according to the automatic conditioning signal Amplifier Gain coefficient of the size of measured signal, and good to input signal amplitude adaptability, quantization error is little.
The amplifier gain of traditional measurement device can not be regulated automatically, may exceed measurement range when signal amplitude is big, shown in Fig. 4 a and Fig. 4 b; When the signal amplitude signal quantization error that hour sampling obtains is bigger, distorted signals is serious, shown in Fig. 5 a and Fig. 5 b.And adopt this measurement device can be according to the automatic conditioning signal Amplifier Gain coefficient of the size of measured signal, good to input signal amplitude adaptability, quantization error is little.
Four, description of drawings
Fig. 1 is that the hardware of measurement mechanism is formed structural drawing
Fig. 2 is the Measurement Algorithm structural representation of measurement mechanism
Fig. 3 is each composition phase plane synoptic diagram of peaks spectrum
Fig. 4 a is the traditional measurement device to signals sampling oscillogram significantly
Fig. 4 b is apparatus of the present invention to signals sampling oscillogram significantly
Fig. 5 a is the sample waveform figure of traditional measurement device to small amplitude signal
Fig. 5 b is the sample waveform figures of apparatus of the present invention to small amplitude signal
Fig. 6 a is a continuous frequency spectrum under the integer-period sampled condition
Fig. 6 b is a continuous frequency spectrum under the non-integer-period sampled condition
Fig. 6 c is a discrete spectrum under the integer-period sampled condition
Fig. 6 d is a discrete spectrum under the non-integer-period sampled condition
Symbol description is as follows among the figure:
The FFT fast fourier transform;
The Re real;
The imaginary part of Im plural number;
The phase angle of δ spectrum peak vector
The phase angle of positive frequency composition vector in the α spectrum peak
The opposite number of negative frequency composition vector phase angle in the β spectrum peak
Five, embodiment
The present invention is further illustrated below in conjunction with accompanying drawing and listed examples.
(1) sees Fig. 1, a kind of sine signal with high accuracy measurement mechanism of eliminating spectrum leakage of the present invention, it is made up of simulating signal pretreatment unit, data acquisition unit, digital signal processing unit, measurement result display unit, communications interface unit, as shown in Figure 1.Position annexation between them is: connect by the multiple signals line between simulating signal pretreatment unit and the data acquisition unit, digital signal processing unit is connected with data acquisition unit, measurement result display unit, communications interface unit respectively by spi bus.
Described simulating signal pretreatment unit is made up of buffer circuit and filtering circuit, is connected by the multiple signals line between its buffer circuit and the filtering circuit; This buffer circuit adopts accurate isolated amplifier ISO124, and it realizes the isolation of input stage and output stage signal by the isolation capacitance that is encapsulated in device inside; This filtering circuit adopts continuous time filter MAX274, the high frequency noise that its function produces when being filtering process buffer circuit; This unit mainly isolates and low-pass filtering simulating signal.
Described data acquisition unit is made up of multi-channel analog selector switch, programmable gain amplifier, Programmable Logic Controller CPLD and AD converter.The multiple signals line that multi-channel analog selector switch input termination filtering circuit comes out, output terminal is one road signal wire, is connected to the programmable gain amplifier input end, the programmable gain amplifier output terminal is connected to AD converter by one road signal wire.This multi-channel analog selector switch adopts DG201, is used for the signal that will sample from the multichannel analog signals selection; This programmable gain amplifier adopts AD256 to realize, it can change the Amplifier Gain coefficient according to the control code that Programmable Logic Controller is sent here; This Programmable Logic Controller CPLD is used to finish the function of controlling of sampling and adjusting, controls the gain coefficient of programmable gain amplifier according to the range of each input; This AD converter adopts AD677, is used for pretreated simulating signal is converted into digital signal.
Described digital signal processing unit adopts dsp chip TMS320C5402, and signalization process of measurement in the built-in RAM of DSP mainly comprises FFT computing and a spot of algebraic operation, is used to realize signal measurement algorithm proposed by the invention.
Described measurement result display unit, adopting model is liquid crystal display displays signal waveform and the measurement result of LCM320240.
Described communications interface unit adopts asynchronous communication interface chip 16C550, and measurement mechanism is communicated by RS232 bus interface and PC, realizes the debugging to measurement mechanism, also signal measurement data and result can be delivered to PC from measurement mechanism.
(2) see Fig. 2, a kind of method for measuring sine signal with high accuracy of eliminating spectrum leakage of the present invention, these method concrete steps are as follows:
Step 1: continuous sampling to measured signal, obtain the digital sequence S1 of N point, and the Serial No. S2 after it is postponed a sampling period;
N is a sampling number, and f is a sinusoidal signal frequency, and T is the sampling period,
Be sample frequency.
Be the normalization numerical frequency.
The Nyquist sampling thheorem is satisfied in sampling.Wherein [] represents integral part.
Step 2: sequence S1 is carried out fast Fourier transform (FFT), extract peaks spectrum, and obtain the peaks spectrum of sequence S2 through a step recursion;
The frequency spectrum of S1 is X
1(k), k=0,1 ... N-1.Its peaks spectrum is X
1(q), q is the subscript of peaks spectrum correspondence.
The peaks spectrum of S2
Step 3: the frequency that the amplitude of integrated use S1 and S2 peaks spectrum and phase angle information accurately calculate measured signal;
Order
Step 4: accurately calculate the phase place of measured signal according to the peaks spectrum phase angle information of S1 and S2 with the geometric vector method, as Fig. 3;
X
1(k) phase angle δ
1=Arg[X
1(q)]
X
2(k) phase angle δ
2=Arg[X
2(q)]
Step 5: utilization geometric vector method, by separating the accurate measured value that obtains the measured signal amplitude about the linear equation in two unknowns group of positive and negative frequency spectrum amplitude;
The phase angle of positive and negative frequency content is respectively α in the peaks spectrum
1, (β
1)
The accurate measured value of AC compounent amplitude
Step 6: remove the influence of spectrum leakage, obtain the accurate measured value of DC component to the DC component frequency spectrum;
(3) measuring method of the present invention and existing method measurement effect are relatively
Under the condition of not considering noise and AD quantization error, sample frequency is 500Hz, sampling number is 512 points, signal x (n)=5cos (50.3t+160 °)+1 is detected, is that the measurement result of the disclosed method of Chinese patent " sinusoidal signal four parameters testing method and virtual instrument signal supervisory instrument " of ZL200810101338.0 compares with the inventive method with the patent No., and the said method measuring accuracy is 10
-4Magnitude, this method measuring accuracy are 10
-14Magnitude is higher than said method far away, illustrates that this method is a kind of accurate measurement method.Constant when other condition, when sampling number was reduced at 32, the said method measuring accuracy was reduced to 10
-2Magnitude, and this method measuring accuracy is 10
-13Magnitude illustrates that this method measuring accuracy can not reduce with the minimizing of sampling number.If consider that noise and AD quantization error and other condition are constant, sampling number is 512 points, and signal to noise ratio (S/N ratio) is 20dB, under 12 AD conversion accuracy conditions above-mentioned signal is detected, and said method amplitude measurement precision is 0.03, and this method is 0.005; The said method frequency measurement accuracy is 0.0004Hz, and this method is 0.0002Hz; 0.1 ° of said method phase measurement accuracy, this method are 0.08 °; Said method DC component measuring accuracy is 0.003, and this method is 0.0005.Explanation is in the actual measurement process, and the antijamming capability of this method is better than said method
Table 1 is the measurement result that has method and this method under the different measuring condition
Table 1
Under the condition of not considering noise and AD quantization error, sample frequency is 1000Hz, sampling number from 8 to 128, signal x (n)=10cos (44.75t+30 °)+2 is detected, and is that the measurement result of 200910089315.7 the disclosed method of Chinese patent " method for measuring sine signal with high accuracy " compares with this method and application number.When sampling number more than or equal to 32 the time, said method is suitable with this method precision; But when sampling number less than 32 the time, said method occurs unusual, can not measure signal parameter, and this method still can be carried out high-acruracy survey to signal.
Table 2a is the amplitude measurement result who has method and this method under the different mining number of samples condition
Table 2b is the frequency measurement that has method and this method under the different mining number of samples condition
Table 2c is the phase measurement that has method and this method under the different mining number of samples condition
Table 2a
Table 2b
Table 2c
Claims (2)
1. sine signal with high accuracy measurement mechanism of eliminating spectrum leakage, it is characterized in that: it is made up of simulating signal pretreatment unit, data acquisition unit, digital signal processing unit, measurement result display unit, communications interface unit, connect by the multiple signals line between simulating signal pretreatment unit and the data acquisition unit, digital signal processing unit is connected with data acquisition unit, measurement result display unit, communications interface unit respectively by spi bus;
Described simulating signal pretreatment unit is made up of buffer circuit and filtering circuit, is connected by the multiple signals line between its buffer circuit and the filtering circuit; This buffer circuit adopts accurate isolated amplifier ISO124, and it realizes the isolation of input stage and output stage signal by the isolation capacitance that is encapsulated in device inside; This filtering circuit adopts continuous time filter MAX274, the high frequency noise that its function produces when being filtering process buffer circuit; This unit mainly isolates and low-pass filtering simulating signal;
Described data acquisition unit is made up of multi-channel analog selector switch, programmable gain amplifier, Programmable Logic Controller CPLD and AD converter, the multiple signals line that multi-channel analog selector switch input termination filtering circuit comes out, output terminal is one road signal wire, be connected to the programmable gain amplifier input end, the programmable gain amplifier output terminal is connected to AD converter by one road signal wire; This multi-channel analog selector switch adopts DG201, is used for the signal that will sample from the multichannel analog signals selection; This programmable gain amplifier adopts AD256 to realize, it can change the Amplifier Gain coefficient according to the control code that Programmable Logic Controller is sent here; This Programmable Logic Controller CPLD is used to finish the function of controlling of sampling and adjusting, controls the gain coefficient of programmable gain amplifier according to the range of each input; This AD converter adopts AD677, is used for pretreated simulating signal is converted into digital signal;
Described digital signal processing unit adopts dsp chip TMS320C5402, and signalization process of measurement in the built-in RAM of DSP mainly comprises FFT computing and algebraic operation, is used to realize the signal measurement algorithm;
Described measurement result display unit, adopting model is liquid crystal display displays signal waveform and the measurement result of LCM320240;
Described communications interface unit adopts asynchronous communication interface chip 16C550, and measurement mechanism is communicated by RS232 bus interface and PC, realizes the debugging to measurement mechanism, and it also can deliver to PC from measurement mechanism with signal measurement data and result.
2. method for measuring sine signal with high accuracy of eliminating spectrum leakage, it is characterized in that: these method concrete steps are as follows:
Step 1: continuous sampling to measured signal, obtain the digital sequence S1 of N point, and the Serial No. S2 after it is postponed a sampling period;
N is a sampling number, and f is a sinusoidal signal frequency, and T is the sampling period,
Be sample frequency;
Be the normalization numerical frequency;
The Nyquist sampling thheorem is satisfied in sampling; Wherein [] represents integral part;
Step 2: it is FFT that sequence S1 is carried out fast fourier transform, extracts peaks spectrum, and obtains the peaks spectrum of sequence S2 through a step recursion;
The frequency spectrum of S1
Following formula can be write as
Wherein: first is positive frequency composition frequency spectrum; Second is negative frequency composition frequency spectrum; Third part
Be the DC component frequency spectrum, preceding two frequency spectrums that constitute alternating component jointly;
The alternating component peaks spectrum is
The peaks spectrum X of S2
2(q) do not need sequence S2 is done the FFT computing, only need utilize the peaks spectrum X of S1
1(q) obtain through a step recursion
S1 peak values of ac frequency spectrum with positive and negative frequency content frequency spectrum designation is
X
1(q)=A
1·exp(jα
1)+A
2·exp(-jβ
1) (4)
Wherein positive and negative frequency content spectral magnitude is respectively A
1, A
2, corresponding phase place is α respectively
1, (β
1);
S2 peak values of ac frequency spectrum with positive and negative frequency content frequency spectrum designation is
X
2(q)=A
1·exp(jα
2)+A
2·exp(-jβ
2) (5)
Wherein positive and negative frequency content spectral magnitude is respectively A
1, A
2, corresponding phase angle is α respectively
2, (β
2);
α
2=α
1+ω
β
2=β
1+ω
By on can get
When the spectrum peak subscript was determined, λ was a known quantity;
Step 3: the amplitude of integrated use S1 and S2 peaks spectrum and the coupled relation between the phase angle accurately calculate the frequency of measured signal;
Not independent of each other between the amplitude of S1 and the positive and negative frequency content of S2 and the phase angle, but have coupled relation;
Order
Then S1 is had
In like manner, S2 is had
Obtain by formula (7) and formula (9)
By
Can be with formula (11) arrangement
Order
Formula (13) is
Can get
The accurate measured value of θ then
Step 4: the phase place that accurately calculates measured signal according to the peaks spectrum phase angle information of S1 and S2 with the geometric vector method;
Note δ
1=Arg[X
1(q)], δ
2=Arg[X
2(q)], then
By formula (19) and formula (20), cancellation k
A
sin(2α
1+λ+ω)sin(δ
2-δ
1)=sin(δ
1+δ
2+λ)sinω (21)
Promptly
Following formula has disclosed the phase angle of S1 and S2 AC compounent spectrum peak and the frequency of signal, the relation of phase place;
The accurate measured value of sinusoidal signal phase place
Step 5: utilization geometric vector method, by separating the accurate measured value that obtains the measured signal amplitude about the linear equation in two unknowns group of positive and negative frequency spectrum amplitude;
By (4) Shi Kede
Solve
The phase angle accurate Calculation value of positive and negative frequency content is in the peaks spectrum
By
Can get
The accurate measured value of AC compounent amplitude
Step 6: remove the influence of spectrum leakage, obtain the accurate measured value of DC component to the DC component frequency spectrum;
Consider by (1) formula
The accurate measured value of DC component
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010538457 CN102004186B (en) | 2010-11-08 | 2010-11-08 | High-accuracy sinusoidal signal measuring method for removing frequency spectrum leakage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010538457 CN102004186B (en) | 2010-11-08 | 2010-11-08 | High-accuracy sinusoidal signal measuring method for removing frequency spectrum leakage |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102004186A true CN102004186A (en) | 2011-04-06 |
CN102004186B CN102004186B (en) | 2013-07-03 |
Family
ID=43811712
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010538457 Expired - Fee Related CN102004186B (en) | 2010-11-08 | 2010-11-08 | High-accuracy sinusoidal signal measuring method for removing frequency spectrum leakage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102004186B (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102435844A (en) * | 2011-11-01 | 2012-05-02 | 南京磐能电力科技股份有限公司 | Sinusoidal signal phasor calculating method being independent of frequency |
CN104407197A (en) * | 2014-11-27 | 2015-03-11 | 湖南大学 | Signal phasor measurement method based on trigonometric function iteration |
CN106645942A (en) * | 2016-07-26 | 2017-05-10 | 北京东方计量测试研究所 | Low cost and high precision embedded type signal collection and analysis system and method |
CN106772265A (en) * | 2015-11-24 | 2017-05-31 | Trw有限公司 | Transceiver circuit |
CN106802609A (en) * | 2017-03-28 | 2017-06-06 | 河北工业大学 | The device and method of SVPWM is produced based on PC/104 buses and CPLD |
CN107192877A (en) * | 2017-05-19 | 2017-09-22 | 上海航天控制技术研究所 | A kind of phase interpretation method based on Fast Fourier Transform (FFT) |
CN108718199A (en) * | 2018-07-24 | 2018-10-30 | 广东电网有限责任公司 | Antenna self-adaptive impedance matching box and matching process |
CN108900453A (en) * | 2018-06-13 | 2018-11-27 | 上海晟矽微电子股份有限公司 | DC component acquisition device and method |
CN109782074A (en) * | 2019-02-28 | 2019-05-21 | 浙江中控研究院有限公司 | A kind of low-frequency sine quick response population parameter estimation method and device |
CN111289797A (en) * | 2020-02-17 | 2020-06-16 | 华北电力大学 | Alternating current signal single interference data identification method and system |
CN113988144A (en) * | 2021-12-27 | 2022-01-28 | 中国空气动力研究与发展中心设备设计与测试技术研究所 | Coriolis flowmeter natural frequency obtaining method |
CN115270893A (en) * | 2022-09-26 | 2022-11-01 | 中国空气动力研究与发展中心设备设计与测试技术研究所 | High-precision Coriolis flowmeter digital signal processing method |
CN117076933A (en) * | 2023-10-16 | 2023-11-17 | 锦浪科技股份有限公司 | Training of arc judgment model, photovoltaic direct current arc detection method and computing equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040122608A1 (en) * | 2001-12-31 | 2004-06-24 | Levin Harold J. | DFT leakage removal for non-coherently sampled signals |
US6965068B2 (en) * | 2000-12-27 | 2005-11-15 | National Instruments Corporation | System and method for estimating tones in an input signal |
CN101251556A (en) * | 2008-03-04 | 2008-08-27 | 北京航空航天大学 | Sinusoidal signal four parameters testing method and virtual apparatus signal detection device |
-
2010
- 2010-11-08 CN CN 201010538457 patent/CN102004186B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6965068B2 (en) * | 2000-12-27 | 2005-11-15 | National Instruments Corporation | System and method for estimating tones in an input signal |
US20040122608A1 (en) * | 2001-12-31 | 2004-06-24 | Levin Harold J. | DFT leakage removal for non-coherently sampled signals |
CN101251556A (en) * | 2008-03-04 | 2008-08-27 | 北京航空航天大学 | Sinusoidal signal four parameters testing method and virtual apparatus signal detection device |
Non-Patent Citations (2)
Title |
---|
韩洋等: "基于ATmega128的低频正弦信号相位差测量系统", 《中国仪器仪表》 * |
韩洋等: "高精度低频正弦信号相位差测量", 《国外电子测量技术》 * |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102435844A (en) * | 2011-11-01 | 2012-05-02 | 南京磐能电力科技股份有限公司 | Sinusoidal signal phasor calculating method being independent of frequency |
CN104407197A (en) * | 2014-11-27 | 2015-03-11 | 湖南大学 | Signal phasor measurement method based on trigonometric function iteration |
CN104407197B (en) * | 2014-11-27 | 2017-06-27 | 湖南大学 | A kind of method of the signal phasor measurement based on trigonometric function iteration |
CN106772265A (en) * | 2015-11-24 | 2017-05-31 | Trw有限公司 | Transceiver circuit |
CN106772265B (en) * | 2015-11-24 | 2022-01-14 | Trw有限公司 | Transceiver circuit |
CN106645942A (en) * | 2016-07-26 | 2017-05-10 | 北京东方计量测试研究所 | Low cost and high precision embedded type signal collection and analysis system and method |
CN106645942B (en) * | 2016-07-26 | 2020-02-18 | 北京东方计量测试研究所 | Low-cost high-precision embedded signal acquisition and analysis system and method |
CN106802609A (en) * | 2017-03-28 | 2017-06-06 | 河北工业大学 | The device and method of SVPWM is produced based on PC/104 buses and CPLD |
CN107192877B (en) * | 2017-05-19 | 2019-08-02 | 上海航天控制技术研究所 | A kind of phase interpretation method based on Fast Fourier Transform (FFT) |
CN107192877A (en) * | 2017-05-19 | 2017-09-22 | 上海航天控制技术研究所 | A kind of phase interpretation method based on Fast Fourier Transform (FFT) |
CN108900453A (en) * | 2018-06-13 | 2018-11-27 | 上海晟矽微电子股份有限公司 | DC component acquisition device and method |
CN108900453B (en) * | 2018-06-13 | 2021-02-09 | 上海晟矽微电子股份有限公司 | Direct current component acquisition device and method |
CN108718199B (en) * | 2018-07-24 | 2023-09-15 | 广东电网有限责任公司 | Antenna self-adaptive impedance matcher and matching method |
CN108718199A (en) * | 2018-07-24 | 2018-10-30 | 广东电网有限责任公司 | Antenna self-adaptive impedance matching box and matching process |
CN109782074A (en) * | 2019-02-28 | 2019-05-21 | 浙江中控研究院有限公司 | A kind of low-frequency sine quick response population parameter estimation method and device |
CN111289797A (en) * | 2020-02-17 | 2020-06-16 | 华北电力大学 | Alternating current signal single interference data identification method and system |
CN113988144A (en) * | 2021-12-27 | 2022-01-28 | 中国空气动力研究与发展中心设备设计与测试技术研究所 | Coriolis flowmeter natural frequency obtaining method |
CN113988144B (en) * | 2021-12-27 | 2022-03-08 | 中国空气动力研究与发展中心设备设计与测试技术研究所 | Coriolis flowmeter natural frequency obtaining method |
CN115270893A (en) * | 2022-09-26 | 2022-11-01 | 中国空气动力研究与发展中心设备设计与测试技术研究所 | High-precision Coriolis flowmeter digital signal processing method |
CN115270893B (en) * | 2022-09-26 | 2022-12-06 | 中国空气动力研究与发展中心设备设计与测试技术研究所 | High-precision Coriolis flowmeter digital signal processing method |
CN117076933A (en) * | 2023-10-16 | 2023-11-17 | 锦浪科技股份有限公司 | Training of arc judgment model, photovoltaic direct current arc detection method and computing equipment |
CN117076933B (en) * | 2023-10-16 | 2024-02-06 | 锦浪科技股份有限公司 | Training of arc judgment model, photovoltaic direct current arc detection method and computing equipment |
Also Published As
Publication number | Publication date |
---|---|
CN102004186B (en) | 2013-07-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102004186B (en) | High-accuracy sinusoidal signal measuring method for removing frequency spectrum leakage | |
CN100561162C (en) | A kind of virtual oscillating table detection signal processing method and equipment thereof | |
CN103869162B (en) | Dynamic signal phasor measurement method based on time domain quasi-synchronization | |
Santamaria-Caballero et al. | Improved procedures for estimating amplitudes and phases of harmonics with application to vibration analysis | |
CN101441233A (en) | Base wave and harmonic detecting method based on Kaiser window double-line spectrum insert value FFT | |
CN101261292A (en) | Base wave and harmonic detection method based on fiver item Rife-Vincent(1)window double spectral line interpolation FFT | |
CN102435844A (en) | Sinusoidal signal phasor calculating method being independent of frequency | |
CN102353500B (en) | Extraction method of unbalanced signal for dynamic balance measurement | |
CN102043091B (en) | Digitized high-precision phase detector | |
CN110133564B (en) | Synchronous testing method and device for phase characteristics of current sensor | |
US20030030426A1 (en) | System for determining the phase and magnitude of an incident signal relative to a cyclical reference signal | |
CN103983849A (en) | Real-time high-accuracy power harmonic analysis method | |
CN104200118A (en) | Automatic balancing machine vibration signal processing method | |
CN106018956A (en) | Power system frequency calculation method of windowing spectral line interpolation | |
Liu et al. | Improved processing of harmonics and interharmonics by time-domain averaging | |
CN106645942B (en) | Low-cost high-precision embedded signal acquisition and analysis system and method | |
CN103969508A (en) | Real-time high-precision power harmonic analysis method and device | |
CN107179439A (en) | Electric energy gauging method based on five peak interpolations of Cosine Window FFT tri- | |
CN109669072A (en) | A kind of adaptive synchronicity Phasor Measurements method of power distribution network | |
CN103543331B (en) | A kind of method calculating electric signal harmonic wave and m-Acetyl chlorophosphonazo | |
CN105242111A (en) | Frequency-response function measurement method employing pulse-like excitation | |
CN101832803A (en) | Coriolis mass flow meter digital signal processing device based on synchronous modulation and method thereof | |
CN104502626A (en) | High-dynamic-response oil flow rate measuring device and measuring method | |
Zhou et al. | Research on rough and detailed combination spectrum analysis of electromagnetic signals based on complex modulation ZoomFFT | |
CN106772193A (en) | A kind of current transformer frequency characteristic measurement devices and methods therefor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130703 Termination date: 20151108 |
|
EXPY | Termination of patent right or utility model |