CN107154802A - A kind of method and device of correcting measuring data - Google Patents

A kind of method and device of correcting measuring data Download PDF

Info

Publication number
CN107154802A
CN107154802A CN201610124865.8A CN201610124865A CN107154802A CN 107154802 A CN107154802 A CN 107154802A CN 201610124865 A CN201610124865 A CN 201610124865A CN 107154802 A CN107154802 A CN 107154802A
Authority
CN
China
Prior art keywords
data
correction coefficient
module
output voltage
filtering
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
Application number
CN201610124865.8A
Other languages
Chinese (zh)
Other versions
CN107154802B (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.)
Shenzhen Goodix Technology Co Ltd
Original Assignee
Shenzhen Huiding Technology 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.)
Filing date
Publication date
Application filed by Shenzhen Huiding Technology Co Ltd filed Critical Shenzhen Huiding Technology Co Ltd
Priority to CN201610124865.8A priority Critical patent/CN107154802B/en
Publication of CN107154802A publication Critical patent/CN107154802A/en
Application granted granted Critical
Publication of CN107154802B publication Critical patent/CN107154802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/10Calibration or testing
    • H03M1/1009Calibration

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Indication And Recording Devices For Special Purposes And Tariff Metering Devices (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

The invention discloses a kind of method and device of correcting measuring data, this method includes:When receiving the startup order of master controller, enable ADC and analogue measurement data are converted into numerical data, and the numerical data is divided into the multiple segment data scope of preset quantity, and according to the known normal voltage for inputting the ADC, and corresponding theoretical output voltage values and the actual output voltage value of the known normal voltage, correction coefficient corresponding with per segment data scope is obtained, and the numerical data is corrected according to the correction coefficient.The present invention carries out the division of multistage linear data area by the data exported to ADC, and calculating obtains the corresponding correction parameter of every segment data scope, corrects the nonlinearity erron that ADC is exported, the measurement accuracy to improve ADC according to correction parameter afterwards.

Description

A kind of method and device of correcting measuring data
Technical field
The invention belongs to electronic technology field, more particularly to a kind of method and device of correcting measuring data.
Background technology
Analog-digital converter (Anolog Digital Converter, ADC) is the component commonly used in circuit design, Its effect is that continuous analog quantity is converted to discrete data signal, and preferable ADC designs the defeated of circuit It is consistent and linear change to enter value with theoretical output voltage values, but due to component error, system noise And the reason such as device aging, there is larger mistake with theoretical output voltage values in ADC actual output voltage value Difference, and whole input is with being in nonlinear change in output area, therefore in high-precision analog signal measurement, ADC output valve need to be corrected.
In the prior art, mainly there are following two modes for improving the method for ADC measurement accuracy:
First way is analog correction, that is, increases extra circuit and go to control ADC devices, analog correction Method need to increase extra hardware resource, so as to add testing cost;
The second way is figure adjustment, i.e., the data after being gathered to ADC are corrected with algorithm, it is adaptable to ADC Linearly change in whole input and output area, but when the scope is non-linear, what correction calculation went out As a result larger error also can therefore occur, cause correction to fail.
The content of the invention
The present invention provides a kind of method and device of correcting measuring data, by entering to the data that ADC is exported The division of row multistage linear data area, and calculating obtains the corresponding correction parameter of every segment data scope, afterwards The data that ADC is exported, the measurement accuracy to improve ADC are corrected according to correction parameter.
A kind of method for correcting measuring data that the present invention is provided, including:
When receiving the startup order of master controller, enable analog-digital converter and be converted to analogue measurement data Numerical data, the numerical data is divided into the multiple segment data scope of preset quantity, and according to input The known normal voltage of analog-digital converter, and the known corresponding theoretical output voltage values of normal voltage and Actual output voltage value, obtains correction coefficient corresponding with data area every section described;It is according to the correction The number correction numerical data.
A kind of device for correcting measuring data that the present invention is provided, including:
Module is enabled, will be simulated for when receiving the startup order of master controller, enabling analog-digital converter Measurement data is converted to numerical data;Division module, for the numerical data to be divided into preset quantity Multiple segment data scope;Computing module, for according to the known normal voltage for inputting the analog-digital converter, with And corresponding theoretical output voltage values and the actual output voltage value of the known normal voltage, obtain and every section of institute State the corresponding correction coefficient of data area;Correction module, for correcting the numeral according to the correction coefficient Data.
It was found from the embodiments of the present invention, analogue measurement data are converted to by numerical data by ADC, The numerical data that ADC is exported carries out the division of multistage linear data area, by ADC output nonlinears Data area differential is multistage approximately linear data area, and calculating obtains the corresponding correction of every segment data scope Parameter, corrects the data that ADC is exported according to correction parameter afterwards, and the non-linear of ADC outputs is corrected with this The error of data, improves the precision of ADC output signal, so as to further improve ADC measurement accuracy. On the basis of equipment cost is not increased, the error correction effect in the prior art to nonlinear data is solved Poor the problem of.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to implementing The accompanying drawing used required in example or description of the prior art is briefly described, it should be apparent that, describe below In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying On the premise of going out creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the application scenarios schematic diagram of the method for correcting measuring data in the embodiment of the present invention;
Fig. 2 is the implementation process schematic diagram of the method for the correcting measuring data that first embodiment of the invention is provided;
Fig. 3 is the implementation process schematic diagram of the method for the correcting measuring data that second embodiment of the invention is provided;
Fig. 4 is the schematic diagram of coefficient memory units storage correction coefficient in the embodiment of the present invention;
Fig. 5 is the structural representation of the device for the correcting measuring data that third embodiment of the invention is provided;
Fig. 6 is the structural representation of the device for the correcting measuring data that fourth embodiment of the invention is provided.
Embodiment
, below will knot to enable goal of the invention, feature, the advantage of the present invention more obvious and understandable The accompanying drawing in the embodiment of the present invention is closed, the technical scheme in the embodiment of the present invention is clearly and completely retouched State, it is clear that described embodiment is only a part of embodiment of the invention, and not all embodiments.Base Embodiment in the present invention, what those skilled in the art were obtained under the premise of creative work is not made Every other embodiment, belongs to the scope of protection of the invention.
The method of correcting measuring data provided in an embodiment of the present invention, can be applied to correction analog-digital converter output Error of the nonlinear data relative to theoretical output data, referring to Fig. 1, master controller 10 and correction fill 20 are put by USB (USB, Universal Serial Bus) mode, WIFI modes, or Other are wired, be wirelessly connected, and data exchange can be carried out therebetween.Likewise, means for correcting 20 are connected with ADC30, can carry out data exchange.
Wherein, master controller 10, are ordered for starting to start to means for correcting 20, so that means for correcting 20 Start working, the ADC30 data exported are corrected.
Means for correcting 20, for when receiving the startup order of master controller 10, enabling ADC30 by mould Intend measurement data and be converted to numerical data, and the numerical data is filtered, to filter out in the numerical data Noise data, can be specifically to filter out high frequency noise data therein, and by the data obtained after filtering draw Be divided into the multiple segment data scope of preset quantity, further according to input the analog-digital converter known normal voltage, with And corresponding theoretical output voltage values and the actual output voltage value of the known normal voltage, obtain and every section of number According to the corresponding correction coefficient of scope, further, the data obtained after filtering are corrected according to the correction coefficient, And pass the data obtained after correction back master controller 10, obtained after the correction is shown on master controller 10 Data.
Specifically, means for correcting 20 can be further divided into multiple modules, including data acquisition module, number According to filtration module, address generating module, pretreatment module, coefficient memory module, computing unit module etc..
The data acquisition module, the data changed available for collection through ADC30;The data filtering module, It is filtered available for by the data;Address generating module, is produced available for according to the data obtained after filtering Correction coefficient storage address;Pretreatment module, available for producing correction coefficient, and is deposited into the coefficient and deposits Store up module;The coefficient memory module, available for storage correction coefficient;The computing unit module, is additionally operable to obtain Get after the data obtained after correction coefficient and filtering, the data obtained after filtering are corrected according to correction coefficient.
ADC30, the instruction for receiving means for correcting 20 turns the simulation test data for inputting ADC30 Numerical data is changed to, that is, analog test signal is converted into data signal.
What above-mentioned main control 10, means for correcting 20 and ADC30 realized above-mentioned functions implements process, Refer to the description of following each embodiments.
Referring to Fig. 2, the realization of the method for the correcting measuring data that Fig. 2 provides for first embodiment of the invention Schematic flow sheet, can be applied in the means for correcting 20 shown in Fig. 1, mainly includes the following steps that:
201st, when receiving the startup order of master controller, enable analog-digital converter and turn analogue measurement data It is changed to numerical data;
Means for correcting receives the startup order for carrying out autonomous controller, and according to the startup command triggers to ADC The data of output are corrected.
When receiving the startup order of master controller, the analogue measurement number that ADC will input the ADC is enabled According to being converted to numerical data.In the present embodiment, ADC bit wides are N-bit, ADC conversions are enabled, by mould Intend measurement data to be converted to after numerical data, according to the interface protocol that system is prespecified, from preassigned ADC interface reads back the numerical data.If the ADC interface is universal serial bus, for example, Serial Peripheral is set Standby interface (SPI, Serial Peripheral Interface) bus, then need that the numerical data is gone here and there and turned Change, finally give the numerical data of N-bit.
The 202nd, the numerical data is divided into the multiple segment data scope of preset quantity, and is turned according to the modulus is inputted The known normal voltage of parallel operation and theoretical output voltage values corresponding with the known normal voltage and reality output Magnitude of voltage, obtains correction coefficient corresponding with the data per segment data scope;
Numerical data after ADC is changed fine is divided into the multiple segment data scope of preset quantity so that Multiple segment data scope after division is approximately linear curve.Data are divided into multistage linear data, Zhi Houzai Segmentation correspondence correction is carried out, the purpose for improving correction accuracy can be reached.
According to the known normal voltage for inputting the ADC, and theory corresponding with the known normal voltage is defeated Go out magnitude of voltage and actual output voltage value, obtain correction coefficient corresponding with the data per segment data scope, school Positive coefficient is divided into two groups, therefore, data two groups of correction coefficient of correspondence per segment data scope.
204th, the numerical data is corrected according to correction coefficient.
According to the corresponding correction coefficient of data of every segment data scope, the numerical data after the conversion is corrected, and Pass the data obtained after correction back the master controller, the data after correction are shown on master controller, or Data after the display device display correction connected by master controller.
In the embodiment of the present invention, analogue measurement data are converted to by numerical data by ADC, ADC is defeated The numerical data gone out carries out the division of multistage linear data area, by ADC output nonlinear data areas Differential is multistage approximately linear data area, and calculating obtains the corresponding correction parameter of every segment data scope, it The data that ADC is exported are corrected according to correction parameter afterwards, with the mistake of this nonlinear data for correcting ADC outputs Difference, improves the precision of ADC output signal, then further improves ADC measurement accuracy.Do not increasing On the basis of equipment cost, the problem of solving poor to the error correction effect of nonlinear data in the prior art.
Referring to Fig. 3, the realization of the method for the correcting measuring data that Fig. 3 provides for second embodiment of the invention Schematic flow sheet, can be applied in the means for correcting 20 shown in Fig. 1, comprises the following steps:
301st, when receiving the startup order of master controller, enable analog-digital converter and turn analogue measurement data It is changed to numerical data;
302nd, the numerical data is filtered, to filter out the noise data in the numerical data;
Filtering is realized usually using low pass filter.Conventional low pass filter includes:There is limit for length's unit impulse Respond (FIR, Finite Impulse Response) wave filter and unlimited long impulse response (IIR, Infinite Impulse Response) wave filter.For from performance, iir filter can use relatively low filter order Higher filter effect is obtained, memory cell used is few, economic and efficiency high, but this high efficiency is With the non-linear for cost of phase.Opposite, FIR filter can but obtain strict linear phase, Limit yet with FIR filter transfer function is fixed on origin, so can only be reached with higher exponent number High filter effect.Depending on wave filter selection herein can be according to system design considerations, for example, collection signal It is indifferent to phase relation (such as direct current signal) and system resource is more nervous, iir filter can be selected, It is on the contrary then FIR filter can be selected.
Numerical data, is filtered by the preferred FIR filter of the embodiment of the present invention by FIR filter, with Filter out the high frequency noise data in numerical data.By filtering, result of calculation may be had influence on by further filtering out Hash, so as to improve the precision of Data correction.
303rd, the data obtained after filtering are divided into 2mSegment data scope;
The data obtained after filtering are nonlinear data, are divided into 2mAfter segment data scope so that divide Afterwards 2mSegment data scope is all approximately linear data scope.That is, nonlinear data is divided into multistage linear Data, carry out being segmented correspondence correction afterwards again, to reach the purpose for improving correction accuracy.
304th, from the known normal voltage of input input of the analog-digital converter;
According to input ADC known normal voltage Vi and theoretical output voltage values X corresponding with Vi and Actual output voltage value Y, obtains correction coefficient corresponding with the data per segment data scope.Known standard electric Pressing Vi is set according to ADC maximum input voltage, and the maximum input voltage is given value.
Specifically, the known normal voltage is represented with Vi, Vi and ADC maximum input voltage Vref Relevant, then known normal voltage Vi and ADC maximum input voltage Vref relation is:
Vi=Vref/2m(2m-n)
Wherein, 0≤n≤2m, n initial value is 2m;M > 0.
When n initial value is 2mWhen, Vi=0, n values are gradually successively decreased, and work as n=2mWhen, Vi=Vref.
305th, according to the desired performance parameters of the analog-digital converter, calculating obtains corresponding with the known normal voltage The analog-digital converter theoretical output voltage values, and, read the AfD converter output output with The corresponding actual output voltage value of the known normal voltage;
The desired performance parameters of the ADC, refer to that ADC is converted to analogue data after numerical data, the number Digital data does not have error.
According to ADC desired performance parameters and the known normal voltage, calculating is obtained and the known standard electric Press corresponding theoretical output voltage values X.
Read the actual output voltage value Y corresponding with the known normal voltage of ADC output ends output.
Relation between above-mentioned Vi, Vref, X, Y refers to following table:
306th, according to theoretical output voltage values and actual output voltage value, calculated respectively according to Predistribution Algorithm with Per the corresponding correction coefficient of segment data scope;
The theoretical output voltage values X obtained according to calculating the and actual output voltage value Y read, according to pre- Put algorithm and calculate correction coefficient corresponding with per segment data scope respectively, the correction coefficient includes the first correction Coefficient A and the second correction coefficient B.
The calculating formula of the Predistribution Algorithm is as follows:
Wherein, m > 0.
The data obtained after filtering are nonlinear data, and it is fine divided into 2mSegment data scope so that Multiple segment data scope after division is approximately linear curve.That is, nonlinear data is divided into multistage linear number According to carrying out being segmented correspondence correction again afterwards, to reach the purpose for improving correction accuracy.
It should be noted that the pretreatment module in means for correcting 20 can store the correction coefficient calculated In coefficient memory module, storage address is produced by address generating module, is stored in after the storage address, is calculated Unit module also reads correction coefficient from the storage address.The storage address need to be produced before correction coefficient is calculated It is raw.
Specifically, according to high m of the data obtained after filtering, the address for reading correction coefficient is produced, and Correction coefficient is read from the address.
Wherein, the total bit wide of data obtained after filtering is represented with N, total bit wide can be divided into high-order and status, High m in a high position produce the address for reading correction coefficient, and correction coefficient, m tables are read from this address Show the address bit wide of the reading correction coefficient, 0 < m < N, then the address bit wide of the reading correction coefficient and filter The relation of the total bit wide of data obtained after ripple is:
address(m-1:0)=data (N-1:N-m)
Preferably, N=16, m=4, then address (4-1:0)=data (16-1:16-4).
Referring to Fig. 4, coefficient memory units can be divided into the first coefficient memory units and the second coefficient memory units, First coefficient memory units, for storing first correction coefficient A, second coefficient memory units are used In storage second correction coefficient B.Every group of 2m correction of first correction coefficient A and the second correction coefficient B Coefficient, the reading address in coefficient memory units is identical.Computing unit module, can be simultaneously from the reading address Read first correction coefficient and second correction coefficient.
307th, the data obtained after filtering are corrected according to the correction coefficient.
It is added after the data obtained after filtering are multiplied with the first correction coefficient A with the second correction coefficient B, with Correct the data obtained after the filtering.
The data D obtained after filteringLWith the data D obtained after correctionRRelation be:
DR=DL×A+B
The form that the data obtained after correction can be recognized with master controller passes the master controller back, in master control Show that the data obtained after correction, or the display device connected by master controller are shown after correction on device processed Obtained data.
In the embodiment of the present invention, analogue measurement data are converted to by numerical data by ADC, ADC is defeated The numerical data gone out is divided into 2 after being filteredmSection linear data scope, so that ADC is exported into non-thread Property data area differential be multistage approximately linear data area, and calculate and obtain every segment data scope corresponding two Group correction parameter, corrects the data that ADC is exported according to correction parameter afterwards, ADC is preferably corrected with this The error of the nonlinear data of output, improves the precision of ADC output signal, then further improves ADC Measurement accuracy.On the basis of equipment cost is not increased, solve in the prior art to nonlinear data The problem of error correction effect is poor.
Refering to Fig. 5, Fig. 5 is that the structure of the device for the correcting measuring data that third embodiment of the invention is provided is shown It is intended to, for convenience of description, illustrate only the part related to the embodiment of the present invention.The correction of Fig. 5 examples The device of measurement data can be the method for the correcting measuring data that earlier figures 2 and embodiment illustrated in fig. 3 are provided Executive agent, such as means for correcting 20 or one of control module.The correcting measuring data of Fig. 5 examples Device, including:Enable module 501, division module 502, computing module 503 and correction module 504.
Each functional module describes in detail as follows above:
Wherein, module 501 is enabled, is turned for when receiving the startup order of master controller, enabling modulus Analogue measurement data are converted to numerical data by parallel operation.
Division module 502, the multiple segment data scope for the numerical data to be divided into preset quantity.
Computing module 503, for the known normal voltage according to the input analog-digital converter, and this is known Corresponding theoretical output voltage values and the actual output voltage value of normal voltage, is obtained and every section of data area pair The correction coefficient answered.
Correction module 504, for correcting the numerical data according to the correction coefficient.
The details of the present embodiment not to the greatest extent, refers to earlier figures 1 to the description of embodiment illustrated in fig. 3, herein not Repeat again.
It should be noted that in the embodiment of the device of the correcting measuring data of figure 5 above example, each work( The division of energy module is merely illustrative of, can be as needed in practical application, such as the configuration of corresponding hardware It is required that or software realization convenient consideration, and above-mentioned functions are distributed and completed by different functional modules, The internal structure of the device of correcting measuring data is divided into different functional modules, to complete above description All or part of function.Moreover, in practical application, corresponding functional module in the present embodiment can be with It is to be realized by corresponding hardware, corresponding software can also be performed by corresponding hardware and completed.This specification is carried Each embodiment supplied can all apply foregoing description principle, repeat no more below.
In the embodiment of the present invention, analogue measurement data are converted to by numerical data by ADC, ADC is defeated The numerical data gone out carries out the division of multistage linear data area, by ADC output nonlinear data areas Differential is multistage approximately linear data area, and calculating obtains the corresponding correction parameter of every segment data scope, it The data that ADC is exported are corrected according to correction parameter afterwards, with the mistake of this nonlinear data for correcting ADC outputs Difference, improves the precision of ADC output signal, then further improves ADC measurement accuracy.Do not increasing On the basis of equipment cost, the problem of solving poor to the error correction effect of nonlinear data in the prior art.
Referring to Fig. 6, the structural representation of the device for the correcting measuring data that fourth embodiment of the invention is provided, The device of the correcting measuring data of Fig. 6 examples can be the correction that earlier figures 2 and embodiment illustrated in fig. 3 are provided The executive agent of the method for measurement data, such as means for correcting 20 or one of control module.Device master Including:Enable module 601, filtration module 602, division module 603, computing module 604, input mould Block 6041, the first calculating sub module 6042, read module 6043, the second calculating sub module 6044, correction Module 605 and address generating module 606.Each functional module describes in detail as follows above:
Wherein, module 601 is enabled, is turned for when receiving the startup order of master controller, enabling modulus Analogue measurement data are converted to numerical data by parallel operation.
Filtration module 602, for the numerical data to be filtered, to filter out the noise in the numerical data Data.Filtration module 602, specifically for by having limit for length's unit impulse response wave filter by the numerical data It is filtered, to filter out the high frequency noise data in the numerical data.
Division module 603, the multiple segment data scope for the data obtained after filtering to be divided into preset quantity;
Computing module 604, for the known normal voltage according to the input analog-digital converter, and this is known Corresponding theoretical output voltage values and the actual output voltage value of normal voltage, is obtained and every section of data area pair The correction coefficient answered.
Correction module 605, for correcting the data obtained after filtering according to the correction coefficient.
The device can also further include sending module, for passing the data obtained after correction back the master Controller.
Further, division module 603, the data for being additionally operable to obtain after filtering are divided into 2mSegment data model Enclose.
Computing module 604 can further include:
Input module 6041, for the known normal voltage of input input from the analog-digital converter;
First calculating sub module 6042, for the desired performance parameters according to the analog-digital converter, calculating is obtained The theoretical output voltage values of the analog-digital converter corresponding with the known normal voltage;
Read module 6043, for read the AfD converter output output with the known normal voltage pair The actual output voltage value answered;
Second calculating sub module 6044, for according to the theoretical output voltage values and the actual output voltage value, Calculate correction coefficient corresponding with per segment data scope respectively according to Predistribution Algorithm;
Further, input module 6041, are marked specifically for the input input from the analog-digital converter is known Quasi- voltage Vi, the known normal voltage Vi and the analog-digital converter maximum input voltage Vref relation is:
Vi=Vref/2m(2m-n)
Wherein, 0≤n≤2m, n initial value is 2m;M > 0;
Second calculating sub module 6044, specifically for according to the theoretical output voltage values X and reality output electricity Y is pressed, correction coefficient corresponding with per segment data scope, the correction coefficient is calculated respectively according to Predistribution Algorithm Including:First correction coefficient A and the second correction coefficient B;
Wherein, the calculating formula of the Predistribution Algorithm is:
The device is further comprised:
Address generating module 606, for high m according to the data obtained after the filtering, produces and reads school The address of positive coefficient;
Wherein, N represents the total bit wide of data obtained after the filtering, and m represents the address of the reading correction coefficient Bit wide, 0 < m < N, then the relation of the address bit wide of the reading correction coefficient and the total bit wide of the data be:
address(m-1:0)=data (N-1:N-m)
Further, correction module 605, be specifically for the data and the first correction obtained after this is filtered Number A is added after being multiplied with the second correction coefficient B, to correct the data obtained after the filtering.
The details of the present embodiment not to the greatest extent, refers to earlier figures 2 to the description of embodiment illustrated in fig. 3, herein not Repeat again.
In the embodiment of the present invention, analogue measurement data are converted to by numerical data by ADC, ADC is defeated The numerical data gone out is divided into 2 after being filteredmSection linear data scope, so that ADC is exported into non-thread Property data area differential be multistage approximately linear data area, and calculate and obtain every segment data scope corresponding two Group correction parameter, corrects the data that ADC is exported according to correction parameter afterwards, ADC is preferably corrected with this The error of the nonlinear data of output, improves the precision of ADC output signal, then further improves ADC Measurement accuracy.On the basis of equipment cost is not increased, solve in the prior art to nonlinear data The problem of error correction effect is poor.
In multiple embodiments provided herein, it should be understood that disclosed system, device and side Method, can be realized by another way.For example, device embodiment described above is only schematic , for example, the division of the module, only a kind of division of logic function, can there is another when actually realizing Outer dividing mode, such as multiple module or components can combine or be desirably integrated into another system, or Some features can be ignored, or not perform.Another, shown or discussed coupling or straight each other Connect coupling or communication linkage can be the INDIRECT COUPLING or communication linkage of device or module by some interfaces, Can be electrical, machinery or other forms.
The module illustrated as separating component can be or may not be it is physically separate, as The part that module is shown can be or may not be physical module, you can with positioned at a place, or It can also be distributed on multiple mixed-media network modules mixed-medias.It can select according to the actual needs therein some or all of Module realizes the purpose of this embodiment scheme.
In addition, each functional module in each embodiment of the invention can be integrated in a processing module, Can also be that modules are individually physically present, can also two or more modules be integrated in a module In.Above-mentioned integrated module can both be realized in the form of hardware, it would however also be possible to employ software function module Form is realized.
If the integrated module realized using in the form of software function module and as independent production marketing or In use, can be stored in a computer read/write memory medium.Understood based on such, the present invention The part that is substantially contributed in other words to prior art of technical scheme or the technical scheme whole or Part can be embodied in the form of software product, and the computer software product is stored in a storage medium In, including some instructions to cause a computer equipment (can be personal computer, server, or Person's network equipment etc.) perform all or part of step of each of the invention embodiment methods described.And it is foregoing Storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), Random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with The medium of store program codes.
It should be noted that for foregoing each method embodiment, for simplicity description, therefore it is all stated For a series of combination of actions, but those skilled in the art should know, the present invention is not by described The limitation of sequence of movement, because according to the present invention, some steps can use other orders or carry out simultaneously. Secondly, those skilled in the art should also know, embodiment described in this description belongs to be preferable to carry out Example, necessary to involved action and module might not all be the present invention.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without detailed in some embodiment The part stated, may refer to the associated description of other embodiments.
It is the description to the method and device of correcting measuring data provided by the present invention above, for this area Technical staff, according to the embodiment of the present invention thought, have in specific embodiments and applications Change part, to sum up, this specification content should not be construed as limiting the invention.

Claims (14)

1. a kind of method of correcting measuring data, it is characterised in that methods described includes:
When receiving the startup order of master controller, enable analog-digital converter and analogue measurement data are converted into numerical data;
The numerical data is divided into the multiple segment data scope of preset quantity, and according to the known normal voltage for inputting the analog-digital converter, and corresponding theoretical output voltage values and the actual output voltage value of the known normal voltage, obtain correction coefficient corresponding with data area every section described;
The numerical data is corrected according to the correction coefficient.
2. according to the method described in claim 1, it is characterised in that described when receiving the startup order of master controller, enabling after analogue measurement data are converted to numerical data by analog-digital converter includes:
The numerical data is filtered, to filter out the noise data in the numerical data;
Then, the multiple segment data scope that the numerical data is divided into preset quantity includes:The data obtained after filtering are divided into the multiple segment data scope of the preset quantity;
It is described to include according to the correction coefficient correction numerical data:The data obtained after the filtering are corrected according to the correction coefficient.
3. method according to claim 2, it is characterised in that described to be filtered the numerical data, is included with filtering out the noise data in the numerical data:
By there is limit for length's unit impulse response wave filter to be filtered the numerical data, to filter out the high frequency noise data in the numerical data.
4. method according to claim 3, it is characterized in that, the multiple segment data scope that the data obtained after filtering are divided into preset quantity, and according to the known normal voltage for inputting the analog-digital converter, and corresponding theoretical output voltage values and the actual output voltage value of the known normal voltage, obtaining correction coefficient corresponding with data area every section described includes:
The data obtained after filtering are divided into 2mSegment data scope;
From the known normal voltage of the input of analog-digital converter input, and according to the desired performance parameters of the analog-digital converter, the theoretical output voltage values for obtaining the analog-digital converter corresponding with the known normal voltage are calculated;
The actual output voltage value corresponding with the known normal voltage for reading AfD converter output output;
According to the theoretical output voltage values and the actual output voltage value, correction coefficient corresponding with data area every section described is calculated respectively according to Predistribution Algorithm.
5. method according to claim 4, it is characterised in that include from the known normal voltage of input input of the analog-digital converter:
From the known normal voltage Vi of input input of the analog-digital converter, the relation of known the normal voltage Vi and the analog-digital converter maximum input voltage Vref are:
Vi=Vref/2m(2m-n)
Wherein, 0≤n≤2m, n initial value is 2m;M > 0.
6. method according to claim 5, it is characterised in that described according to the theoretical output voltage values and the actual output voltage value, calculating correction coefficient corresponding with data area every section described respectively according to Predistribution Algorithm includes:
According to the theoretical output voltage values X and actual output voltage Y, correction coefficient corresponding with data area every section described is calculated respectively according to Predistribution Algorithm, the correction coefficient includes:First correction coefficient A and the second correction coefficient B;
Wherein, the calculating formula of the Predistribution Algorithm is:
7. method according to claim 6, it is characterised in that it is described the data obtained after filtering are divided into the multiple segment data scope of preset quantity before also include:
According to high m of the data obtained after the filtering, the address for reading correction coefficient is produced;
Wherein, N represents the total bit wide of data obtained after the filtering, and m represents the address bit wide of the reading correction coefficient, 0 < m < N, then the relation of the address bit wide and the total bit wide of the data for reading correction coefficient is:
address(m-1:0)=data (N-1:N-m) .
8. method according to claim 7, it is characterised in that the data obtained after the filtering that corrected according to correction coefficient include:
It is added after the data obtained after the filtering are multiplied with the first correction coefficient A with the second correction coefficient B, to correct the data obtained after the filtering.
9. a kind of device of correcting measuring data, it is characterised in that described device includes:
Module is enabled, analogue measurement data are converted into numerical data for when receiving the startup order of master controller, enabling analog-digital converter;
Division module, the multiple segment data scope for the numerical data to be divided into preset quantity;
Computing module, for according to the known normal voltage for inputting the analog-digital converter, and corresponding theoretical output voltage values and the actual output voltage value of the known normal voltage, obtaining correction coefficient corresponding with data area every section described;
Correction module, for correcting the numerical data according to the correction coefficient.
10. device according to claim 9, it is characterised in that described device also includes:
Filtration module:For the numerical data to be filtered, to filter out the noise data in the numerical data;
The division module, the data for being additionally operable to will to obtain after filtering are divided into the multiple segment data scope of the preset quantity;
The correction module, is additionally operable to correct the data obtained after the filtering according to the correction coefficient.
11. device according to claim 10, it is characterised in that the filtration module, specifically for by there is limit for length's unit impulse response wave filter to be filtered the numerical data, to filter out the high frequency noise data in the numerical data.
12. device according to claim 11, it is characterised in that
The division module, the data for being additionally operable to obtain after filtering are divided into 2mSegment data scope;
The computing module also includes:
Input module, for the known normal voltage of input input from the analog-digital converter;
First calculating sub module, for the desired performance parameters according to the analog-digital converter, calculates the theoretical output voltage values for obtaining the analog-digital converter corresponding with the known normal voltage;
Read module, for the actual output voltage value corresponding with the known normal voltage that reads AfD converter output output;
Second calculating sub module, for according to the theoretical output voltage values and the actual output voltage value, calculating correction coefficient corresponding with data area every section described respectively according to Predistribution Algorithm;
The input module, specifically for inputting known normal voltage Vi from the input of the analog-digital converter, the relation of known the normal voltage Vi and the analog-digital converter maximum input voltage Vref are:
Vi=Vref/2m(2m-n)
Wherein, 0≤n≤2m, n initial value is 2m;M > 0;
Second calculating sub module, specifically for according to the theoretical output voltage values X and actual output voltage value Y, calculating correction coefficient corresponding with data area every section described respectively according to Predistribution Algorithm, the correction coefficient includes:First correction coefficient A and the second correction coefficient B;
Wherein, the calculating formula of the Predistribution Algorithm is:
13. device according to claim 12, it is characterised in that described device also includes:
Address generating module, for high m according to the data obtained after the filtering, produces the address for reading correction coefficient;
Wherein, N represents the total bit wide of data obtained after the filtering, and m represents the address bit wide of the reading correction coefficient, 0 < m < N, then the relation of the address bit wide and the total bit wide of the data for reading correction coefficient is:
address(m-1:0)=data (N-1:N-m) .
14. device according to claim 13, it is characterised in that the correction module, specifically for being added after the data obtained after the filtering are multiplied with the first correction coefficient A with the second correction coefficient B, to correct the data obtained after the filtering.
CN201610124865.8A 2016-03-04 2016-03-04 Method and device for correcting measurement data Active CN107154802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610124865.8A CN107154802B (en) 2016-03-04 2016-03-04 Method and device for correcting measurement data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610124865.8A CN107154802B (en) 2016-03-04 2016-03-04 Method and device for correcting measurement data

Publications (2)

Publication Number Publication Date
CN107154802A true CN107154802A (en) 2017-09-12
CN107154802B CN107154802B (en) 2021-02-02

Family

ID=59791939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610124865.8A Active CN107154802B (en) 2016-03-04 2016-03-04 Method and device for correcting measurement data

Country Status (1)

Country Link
CN (1) CN107154802B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021196088A1 (en) * 2020-04-01 2021-10-07 深圳市汇顶科技股份有限公司 Analog-to-digital conversion method, apparatus, and chip, electronic device, and storage medium
CN114062824A (en) * 2021-11-19 2022-02-18 河北新大长远电力科技股份有限公司 Power quality monitoring method and device based on power distribution room

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051339A (en) * 2012-04-27 2013-04-17 深圳市正弦电气股份有限公司 Correcting method and system of AD (Analogue to Digital) sampling value
CN103986471A (en) * 2009-11-12 2014-08-13 英特赛尔美国股份有限公司 Integrated non-linearity (INL) and differential non-linearity (DNL) correction techniques for digital-to-analog converters (DACS)
US8922401B1 (en) * 2013-09-25 2014-12-30 Raytheon Company Methods and apparatus for interference canceling data conversion
CN104779954A (en) * 2015-04-13 2015-07-15 浙江大学 Successive approximation type analog-to-digital converter and error code detection based digital correction method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986471A (en) * 2009-11-12 2014-08-13 英特赛尔美国股份有限公司 Integrated non-linearity (INL) and differential non-linearity (DNL) correction techniques for digital-to-analog converters (DACS)
CN103051339A (en) * 2012-04-27 2013-04-17 深圳市正弦电气股份有限公司 Correcting method and system of AD (Analogue to Digital) sampling value
US8922401B1 (en) * 2013-09-25 2014-12-30 Raytheon Company Methods and apparatus for interference canceling data conversion
CN104779954A (en) * 2015-04-13 2015-07-15 浙江大学 Successive approximation type analog-to-digital converter and error code detection based digital correction method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021196088A1 (en) * 2020-04-01 2021-10-07 深圳市汇顶科技股份有限公司 Analog-to-digital conversion method, apparatus, and chip, electronic device, and storage medium
CN114062824A (en) * 2021-11-19 2022-02-18 河北新大长远电力科技股份有限公司 Power quality monitoring method and device based on power distribution room
CN114062824B (en) * 2021-11-19 2023-12-26 河北新大长远电力科技股份有限公司 Power quality monitoring method and device based on distribution room

Also Published As

Publication number Publication date
CN107154802B (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN103278686B (en) A kind of frequency analysis filtering system and intelligent selection harmonic detecting method
CN105390520A (en) Parameter configuration method for memristor intersection array
CN107154802A (en) A kind of method and device of correcting measuring data
CN115236392A (en) Multi-characteristic-quantity electric energy metering method and device, terminal and storage medium
CN103944537A (en) Variable clock DDS arbitrary waveform signal source output frequency control method and realization device
CN102279824B (en) Input interface expanding circuit and control device
Eid et al. Equivalence of Laguerre-based model order reduction and moment matching
CN101976448A (en) Drawing method and device
CN110032830B (en) Three-time nonlinear magnetic control memristor simulator based on current transmitter
CN100566107C (en) Digital pure sine wave inverter and inverse method thereof
CN111222248B (en) Hysteresis determination method and device for piezoceramic actuator
CN104682752A (en) Method and device for modulating space vector pulse
CN209708000U (en) A kind of circuit of programmable modulated voltage signal raising and lowering slope
CN107707178A (en) Filtering method, low pass filter and the servo-driver of low pass filter
CN106598911B (en) A kind of column write method of circuit network state equation
CN102735923B (en) Electric energy metering on-chip system and operation method thereof
CN107291981B (en) Simulation method and device of power transmission line
CN116742700B (en) New energy collection node optimization method, system, equipment and medium
CN102868385A (en) Digital filter capable of configuring coefficient and implementation method
CN112003459B (en) Current control method and system of staggered parallel topology
CN109004645B (en) Power system simulation method and device
CN107300862A (en) One kind becomes rank fractional calculus frequency-domain analysis method
CN105425194B (en) A kind of setting method of the meter constant of electric instrument
CN114156864A (en) Photovoltaic inverter configuration method, device, terminal and storage medium
CN108228550A (en) Statistical line losses applied to electric power system calculate automatically and report preparing system

Legal Events

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