CN111521236A - Automatic error correction algorithm for electronic water gauge measurement - Google Patents
Automatic error correction algorithm for electronic water gauge measurement Download PDFInfo
- Publication number
- CN111521236A CN111521236A CN202010638786.5A CN202010638786A CN111521236A CN 111521236 A CN111521236 A CN 111521236A CN 202010638786 A CN202010638786 A CN 202010638786A CN 111521236 A CN111521236 A CN 111521236A
- Authority
- CN
- China
- Prior art keywords
- resistance
- water gauge
- electronic water
- interval
- contact
- 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
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01F—MEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
- G01F23/00—Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm
- G01F23/22—Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by measuring physical variables, other than linear dimensions, pressure or weight, dependent on the level to be measured, e.g. by difference of heat transfer of steam or water
- G01F23/24—Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by measuring physical variables, other than linear dimensions, pressure or weight, dependent on the level to be measured, e.g. by difference of heat transfer of steam or water by measuring variations of resistance of resistors due to contact with conductor fluid
- G01F23/241—Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by measuring physical variables, other than linear dimensions, pressure or weight, dependent on the level to be measured, e.g. by difference of heat transfer of steam or water by measuring variations of resistance of resistors due to contact with conductor fluid for discrete levels
Landscapes
- Physics & Mathematics (AREA)
- Thermal Sciences (AREA)
- Fluid Mechanics (AREA)
- General Physics & Mathematics (AREA)
- Measurement Of Levels Of Liquids Or Fluent Solid Materials (AREA)
Abstract
The invention discloses an automatic error correction algorithm for electronic water gauge measurement, which comprises the following steps: step 1: calibrating a contact and a resistance interval of the electronic water gauge; step 2: sequentially detecting the resistance value of each resistance interval from low to high from the electronic water gauge, and recording and storing; and step 3: analyzing the resistance value in the stored detection data; and 4, step 4: and reading the water level value at a high contact of the resistance interval at the highest position. Through the mode, the automatic error correction algorithm for the electronic water gauge measurement can correct the failure data caused by the failure of the contact of the electronic water gauge and the connection of two adjacent contacts above the water surface by sundries, reduce the error of the detection data and improve the data accuracy under the failure condition.
Description
Technical Field
The invention relates to the field of water level sensors, in particular to an automatic error correction algorithm for electronic water gauge measurement.
Background
The electronic water gauge is a common means for measuring water level used in water conservancy automatic monitoring, and the principle of the electronic water gauge is as follows: the water is provided with a resistor, so that a fixed resistor is connected with the water in series, and the divided voltage of the water can be measured to further calculate the resistance value.
The resistance measurement mode between the contact of current electron water gauge only measures the resistance between two adjacent contacts, produces the error easily, for example: the middle contact is broken, and two adjacent contacts above the water surface are connected by leaves with water.
Disclosure of Invention
The invention mainly solves the technical problem of providing an automatic error correction algorithm for electronic water gauge measurement.
In order to solve the technical problems, the invention adopts a technical scheme that:
the automatic error correction algorithm for the electronic water gauge measurement is provided, and comprises the following steps:
step 1: calibrating a contact and a resistance interval of the electronic water gauge;
step 1.1: calibrating each contact, and sequentially calibrating according to the sequence of the electronic water gauge from low to high;
step 1.2: according to the calibrated contacts, a resistance interval is formed between every two adjacent contacts, and each resistance interval is sequentially calibrated according to the sequence from low to high of the electronic water gauge;
step 2: sequentially detecting the resistance value of each resistance interval from low to high, and recording and storing;
and step 3: analyzing the resistance value in the stored detection data;
step 3.1: if the resistance interval with the resistance value is continuous, performing the step 4; otherwise, performing step 3.2;
step 3.2: judging whether a high contact of the highest resistance interval and a low contact of the lowest resistance interval have resistance values, and entering a step 4 if both the high contact and the low contact have the resistance values; if any one of the contacts does not have a resistance value, after deleting the resistance value of the resistance interval at the highest position stored in the step 2, returning to the step 3;
and 4, step 4: and judging that the height corresponding to the high contact point of the resistance section at the highest position is a water level value.
In a preferred embodiment of the present invention, the highest resistance region is between adjacent contacts where the highest resistance exists.
In a preferred embodiment of the present invention, the lowest resistance region is between adjacent contacts having the lowest resistance value.
The invention has the beneficial effects that: the automatic error correction algorithm for the electronic water gauge measurement can correct the failure data caused by the failure of the contacts of the electronic water gauge and the connection of two adjacent contacts above the water surface by sundries, reduce the error of detection data and improve the data accuracy under the failure condition.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without inventive efforts, wherein:
FIG. 1 is a block diagram of the flow of an automatic error correction algorithm for electronic water gauge measurement according to a preferred embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an embodiment of the present invention includes:
an automatic error correction algorithm for electronic water gauge measurement comprises the following steps.
Step 1: and calibrating a contact and a resistance interval of the electronic water gauge.
Step 1.1: and calibrating the contacts, sequentially calibrating the contacts according to the sequence of the electronic water gauge from low to high, and sequentially sequencing from the contact at the lowest position to the contact at the highest position of the electronic water gauge.
Step 1.2: according to the calibrated contacts, a resistance interval is formed between every two adjacent contacts, each resistance interval is sequentially calibrated according to the sequence from low to high of the electronic water gauge, and the resistance intervals from the lowest resistance interval to the highest resistance interval of the electronic water gauge are sequentially sequenced.
Step 2: sequentially detecting the resistance value of each resistance interval from low to high from the electronic water gauge, and recording and storing; there are two cases of the resistance value of each resistance section: one is the presence of a value and the other is the presence of a null value, i.e. no value is present.
And step 3: the resistance value in the stored detection data is analyzed.
Step 3.1: if the resistance sections with the resistance values are continuous, namely all the resistance sections with the resistance values are continuous, the step 4 is carried out; otherwise, performing step 3.2;
step 3.2: judging whether a high contact of the highest resistance interval and a low contact of the lowest resistance interval have resistance values, and entering a step 4 if both the high contact and the low contact have the resistance values; if any one of the contacts does not have a resistance value, the resistance value of the highest resistance section stored in the step 2 is deleted, and then the process returns to the step 3.
And 4, step 4: and judging that the height corresponding to the high contact point of the resistance section at the highest position is a water level value.
The highest resistance interval refers to the interval between adjacent contacts at the highest position with resistance values; the lowermost resistance section is a section between adjacent contacts having the lowermost resistance value.
Example 1:
assuming that the electronic water gauge has 10 contacts, the sequence numbers are sequentially marked from low to high as 1-10, 4 of the contacts fail, when the water level reaches 6 contacts, a total of 5 resistance intervals are provided, the sequence numbers are sequentially marked from low to high as 1-5, the resistance intervals 1, 2 and 5 have resistance values, the resistance intervals 3 and 4 are null values, and the step 3.2 is executed: and judging whether a high contact of the highest resistance interval and a low contact of the lowest resistance interval have resistance values, and judging that the water level reaches the height of the contact 6 if the detection contact 6 and the contact 1 both contact water and have the resistance values.
Example 2:
assuming that the electronic water gauge has 10 contacts, the sequence numbers are sequentially marked from low to high to be 1-10, the sequence numbers of leaves with water between 7 contacts and 8 contacts cover the contacts to form a resistance value, when the water level reaches 6 contacts, a total of 7 resistance intervals are provided, the sequence numbers are sequentially marked from low to high to form 1-7, the resistance values exist in the resistance intervals 1, 2, 3, 4, 5 and 7, the resistance interval 6 is a null value, the resistance values of the contacts 8 and 1 are detected, the contact 8 does not contact water to form a null value, the contact 1 contacts water to form a resistance value, the resistance value of the highest resistance interval stored in the step 2 is deleted in the step 3.2, the step 3 is returned, the resistance intervals with the resistance values are continuous to be 1-5, and the value is read from the high contact of the highest resistance interval 5.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by the present specification, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (3)
1. An automatic error correction algorithm for electronic water gauge measurement is characterized by comprising the following steps:
step 1: calibrating a contact and a resistance interval of the electronic water gauge;
step 1.1: calibrating each contact, and sequentially calibrating according to the sequence of the electronic water gauge from low to high;
step 1.2: according to the calibrated contacts, a resistance interval is formed between every two adjacent contacts, and each resistance interval is sequentially calibrated according to the sequence from low to high of the electronic water gauge;
step 2: sequentially detecting the resistance value of each resistance interval from low to high, and recording and storing;
and step 3: analyzing the resistance value in the stored detection data;
step 3.1: if the resistance interval with the resistance value is continuous, performing the step 4; otherwise, performing step 3.2;
step 3.2: judging whether a high contact of the highest resistance interval and a low contact of the lowest resistance interval have resistance values, and entering a step 4 if both the high contact and the low contact have the resistance values; if any one of the contacts does not have a resistance value, after deleting the resistance value of the resistance interval at the highest position stored in the step 2, returning to the step 3;
and 4, step 4: and judging that the height corresponding to the high contact point of the resistance section at the highest position is a water level value.
2. The electronic water gauge measuring automatic error correction algorithm according to claim 1, wherein the highest resistance interval is between adjacent contacts where the highest resistance exists.
3. The electronic water gauge measuring automatic error correction algorithm according to claim 1, wherein the lowest resistance interval is between adjacent contacts where the lowest resistance value exists.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010638786.5A CN111521236B (en) | 2020-07-06 | 2020-07-06 | Automatic error correction algorithm for electronic water gauge measurement |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010638786.5A CN111521236B (en) | 2020-07-06 | 2020-07-06 | Automatic error correction algorithm for electronic water gauge measurement |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111521236A true CN111521236A (en) | 2020-08-11 |
CN111521236B CN111521236B (en) | 2020-10-27 |
Family
ID=71910166
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010638786.5A Active CN111521236B (en) | 2020-07-06 | 2020-07-06 | Automatic error correction algorithm for electronic water gauge measurement |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111521236B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011141255A (en) * | 2010-01-05 | 2011-07-21 | Satoru Kitazawa | Resistance change type liquid level gage |
CN103278210A (en) * | 2013-05-08 | 2013-09-04 | 北京博研智通科技有限公司 | System capable of judging height of surface gathered water rapidly and use method of system |
CN103345822A (en) * | 2013-05-31 | 2013-10-09 | 北京博研智通科技有限公司 | System and method for rapidly finding ponding height and recording first formed ponding point |
CN204718666U (en) * | 2015-07-01 | 2015-10-21 | 广州奥格智能科技有限公司 | Integration multistage retrieval type smart electronics water gauge |
CN207882705U (en) * | 2017-12-28 | 2018-09-18 | 广州中工水务信息科技有限公司 | A kind of data processing system of electric water gauge |
-
2020
- 2020-07-06 CN CN202010638786.5A patent/CN111521236B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011141255A (en) * | 2010-01-05 | 2011-07-21 | Satoru Kitazawa | Resistance change type liquid level gage |
CN103278210A (en) * | 2013-05-08 | 2013-09-04 | 北京博研智通科技有限公司 | System capable of judging height of surface gathered water rapidly and use method of system |
CN103345822A (en) * | 2013-05-31 | 2013-10-09 | 北京博研智通科技有限公司 | System and method for rapidly finding ponding height and recording first formed ponding point |
CN204718666U (en) * | 2015-07-01 | 2015-10-21 | 广州奥格智能科技有限公司 | Integration multistage retrieval type smart electronics water gauge |
CN207882705U (en) * | 2017-12-28 | 2018-09-18 | 广州中工水务信息科技有限公司 | A kind of data processing system of electric water gauge |
Also Published As
Publication number | Publication date |
---|---|
CN111521236B (en) | 2020-10-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11327823B2 (en) | Error detection and rejection for a diagnostic testing system | |
CN114705331B (en) | Pressure response characteristic curve acquisition method, calibration method and storage medium | |
US20120291541A1 (en) | Digital field-induction water-level intelligent sensing system and its implementation method | |
US8245562B2 (en) | Circuit and method for pressure sensor testing | |
CN111521236B (en) | Automatic error correction algorithm for electronic water gauge measurement | |
KR100609713B1 (en) | Zone Detection and Ground Resistance Measurement Using Potential Hardness | |
US5872454A (en) | Calibration procedure that improves accuracy of electrolytic conductivity measurement systems | |
CN118275837B (en) | Wire and cable reliability evaluation method and system based on data analysis | |
CN112782255B (en) | A gas identification method based on array gas sensors | |
US5247833A (en) | Water level measuring apparatus | |
CN103245702A (en) | Method for Calibrating Measuring Instruments Using Biosensing Test Strips | |
CN105571558B (en) | A kind of compressor blade opens up the quantitative detecting method to percent ripple | |
CN114002378B (en) | Concentration detection method of gas concentration sensor | |
CN114925731A (en) | Method for detecting abnormal value of monitoring data of flexible inclinometer | |
JP6298202B1 (en) | Wire inspection device | |
KR102747873B1 (en) | System and method for managing ionic conductivity measurement accuracy | |
CN112782233A (en) | Gas identification method based on array gas sensor | |
CN117725361A (en) | Method and device for cleaning detection data, storage medium and detection equipment | |
CN118296545B (en) | Intelligent early warning method for faults of dry type air-core reactor | |
CN111206376A (en) | Liquid level detection device and method and washing machine | |
JP7605716B2 (en) | Deterioration diagnosis system | |
Makadmini et al. | Self-calibrating electrochemical gas sensor | |
CN118310580A (en) | Ocean temperature and salt depth high-precision sensing system based on data analysis model | |
CN116817853A (en) | Method and device for measuring altitude of wearable equipment and electronic equipment | |
CN119474932A (en) | Electrical parameter analysis-based switchgear detection method |
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 |