CN117949068A - Error correction method and device for flowmeter for valve flow test - Google Patents

Error correction method and device for flowmeter for valve flow test Download PDF

Info

Publication number
CN117949068A
CN117949068A CN202410346759.9A CN202410346759A CN117949068A CN 117949068 A CN117949068 A CN 117949068A CN 202410346759 A CN202410346759 A CN 202410346759A CN 117949068 A CN117949068 A CN 117949068A
Authority
CN
China
Prior art keywords
flow
value
standard
sampling
corresponding relation
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.)
Pending
Application number
CN202410346759.9A
Other languages
Chinese (zh)
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.)
Bolai Valve Changzhou Co ltd
Original Assignee
Bolai Valve Changzhou 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 Bolai Valve Changzhou Co ltd filed Critical Bolai Valve Changzhou Co ltd
Priority to CN202410346759.9A priority Critical patent/CN117949068A/en
Publication of CN117949068A publication Critical patent/CN117949068A/en
Pending legal-status Critical Current

Links

Landscapes

  • Flow Control (AREA)

Abstract

The invention relates to the technical field of valve testing, and provides an error correction method and device for a flowmeter for valve flow testing, wherein the method comprises the following steps: in a preset time, controlling the standard opening of the standard valve to be continuously increased or continuously reduced, and collecting a flow sampling value of the standard valve at a preset sampling frequency through the flowmeter to be corrected; obtaining a flow standard value of each sampling moment according to the standard opening of the standard valve of each sampling moment; obtaining a deviation value and a deviation change rate according to the flow standard value and the flow sampling value at each sampling moment; obtaining an adjusted opening of each sampling moment based on fuzzy self-adaptive PID control; obtaining the corresponding relation between the detection value and the actual value of the flowmeter to be corrected; when the flow test is carried out on the valve to be tested through the flowmeter to be corrected, the detection result of the flowmeter to be corrected is corrected according to the corresponding relation between the detection value and the actual value of the flowmeter to be corrected. The invention can improve the accuracy of valve flow test.

Description

Error correction method and device for flowmeter for valve flow test
Technical Field
The invention relates to the technical field of valve testing, in particular to an error correction method of a flowmeter for valve flow testing and an error correction device of the flowmeter for valve flow testing.
Background
In valve flow testing, flow rate values are typically detected using a flow meter. Most current flowmeters, such as orifice plate, positive displacement, target, rotameter, turbine, etc., have at least one component embedded in the flow channel, which obviously changes the cross-sectional size and shape of the flow channel when in use. Even some ultrasonic flow meters change the cross-sectional size and shape of the flow path during use in order to facilitate the placement of ultrasonic elements or to facilitate the numerical calculations. Therefore, the flowmeter itself can destroy the flow characteristics in the flow field, interfere the flow, and influence the acquisition of the actual flow result of the valve. Although the above-described interference is not particularly large in some cases, it is obvious that the application scenario of high precision requirements cannot be satisfied.
Disclosure of Invention
The invention aims to solve the technical problems, and provides an error correction method and device for a flowmeter for valve flow test, which can correct the detection result of the flowmeter and improve the accuracy of the valve flow test.
The technical scheme adopted by the invention is as follows:
An error correction method for a flow meter for valve flow testing, comprising the steps of: in a preset time, controlling the standard opening of the standard valve to be continuously increased or continuously reduced, and collecting a flow sampling value of the standard valve at a preset sampling frequency through a flowmeter to be corrected; obtaining a flow standard value of each sampling moment according to the standard opening of the standard valve at each sampling moment; obtaining a deviation value and a deviation change rate between the flow sampling value and the flow standard value according to the flow standard value and the flow sampling value at each sampling moment; obtaining an adjusted opening of each sampling moment based on fuzzy self-adaptive PID control according to the deviation value and the deviation change rate; obtaining the corresponding relation between the detection value and the actual value of the flowmeter to be corrected according to the standard opening, the flow standard value, the adjusted opening and the flow sampling value at a plurality of sampling moments; when the flow test is carried out on the valve to be tested through the flowmeter to be corrected, correcting the detection result of the flowmeter to be corrected according to the corresponding relation between the detection value and the actual value of the flowmeter to be corrected.
Under specific test conditions, the opening of the standard valve has a fixed corresponding relation with the flow, and the flow standard value of each sampling moment is obtained according to the fixed corresponding relation.
Obtaining the adjusted opening of each sampling moment based on fuzzy self-adaptive PID control according to the deviation value and the deviation change rate, wherein the method specifically comprises the following steps: inputting the deviation value and the deviation change rate into a fuzzy self-adaptive PID controller to obtain a proportional coefficient, an integral coefficient and a differential coefficient after fuzzy self-adaptation; and obtaining the adjusted opening according to the proportional coefficient, the integral coefficient and the differential coefficient after the fuzzy self-adaption.
Obtaining a corresponding relation between a detection value and an actual value of the flowmeter to be corrected according to standard opening degrees, flow standard values, adjusted opening degrees and flow sampling values at a plurality of sampling moments, wherein the method specifically comprises the following steps: acquiring a first corresponding relation group of the standard opening at the same sampling moment and a flow standard value, and acquiring a second corresponding relation group of the opening after adjustment at the same sampling moment and a flow sampling value; comparing the standard opening in each first corresponding relation group with the adjusted opening in each second corresponding relation group; if the standard opening degree in a certain first corresponding relation group is the same as or similar to the adjusted opening degree in a certain second corresponding relation group, combining the first corresponding relation group and the second corresponding relation group into a third corresponding relation group; and taking the corresponding relation between the flow sampling value and the flow standard value in the third corresponding relation group as the corresponding relation between the detection value and the actual value of the flowmeter to be corrected.
The flowmeter to be corrected is an embedded flowmeter.
An error correction device for a flow meter for valve flow testing, comprising: the sampling module is used for controlling the standard opening of the standard valve to be continuously increased or continuously decreased in preset time, and collecting the flow sampling value of the standard valve at preset sampling frequency through the flowmeter to be corrected; the first acquisition module is used for acquiring a flow standard value of each sampling moment according to the standard opening of the standard valve at each sampling moment; the second acquisition module is used for acquiring a deviation value and a deviation change rate between the flow sampling value and the flow standard value according to the flow standard value and the flow sampling value at each sampling moment; the third acquisition module is used for obtaining the adjusted opening of each sampling moment based on fuzzy self-adaptive PID control according to the deviation value and the deviation change rate; the fourth acquisition module is used for obtaining the corresponding relation between the detection value and the actual value of the flowmeter to be corrected according to the standard opening, the flow standard value, the adjusted opening and the flow sampling value at a plurality of sampling moments; the correction module is used for correcting the detection result of the flowmeter to be corrected according to the corresponding relation between the detection value and the actual value of the flowmeter to be corrected when the flowmeter to be corrected is used for carrying out flow test on the valve to be tested.
Under specific test conditions, a fixed corresponding relation exists between the opening of the standard valve and the flow, and the first acquisition module acquires the flow standard value of each sampling moment according to the fixed corresponding relation.
The third obtaining module is specifically configured to: inputting the deviation value and the deviation change rate into a fuzzy self-adaptive PID controller to obtain a proportional coefficient, an integral coefficient and a differential coefficient after fuzzy self-adaptation; and obtaining the adjusted opening according to the proportional coefficient, the integral coefficient and the differential coefficient after the fuzzy self-adaption.
The fourth obtaining module is specifically configured to: acquiring a first corresponding relation group of the standard opening at the same sampling moment and a flow standard value, and acquiring a second corresponding relation group of the opening after adjustment at the same sampling moment and a flow sampling value; comparing the standard opening in each first corresponding relation group with the adjusted opening in each second corresponding relation group; if the standard opening degree in a certain first corresponding relation group is the same as or similar to the adjusted opening degree in a certain second corresponding relation group, combining the first corresponding relation group and the second corresponding relation group into a third corresponding relation group; and taking the corresponding relation between the flow sampling value and the flow standard value in the third corresponding relation group as the corresponding relation between the detection value and the actual value of the flowmeter to be corrected.
The flowmeter to be corrected is an embedded flowmeter.
The invention has the beneficial effects that:
According to the invention, in the test stage, the standard valve is used for obtaining the flow standard value and the flow sampling value detected by the flowmeter, and then the fuzzy self-adaptive PID adjustment is carried out based on the deviation of the flow standard value and the flow sampling value, so that the corresponding relation between the detection value and the actual value of the flowmeter is obtained, and therefore, the detection result of the flowmeter can be corrected, and the accuracy of the valve flow test is improved.
Drawings
FIG. 1 is a flow chart of a method of error correction for a flow meter for valve flow testing according to an embodiment of the present invention.
FIG. 2 is a schematic diagram of a fuzzy adaptive PID control flow according to an embodiment of the invention.
FIG. 3 is a block diagram of an error correction device for a flow meter for valve flow testing according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1, the error correction method of the flowmeter for valve flow test according to the embodiment of the invention comprises the following steps:
S1, controlling the standard opening of the standard valve to be continuously increased or continuously decreased in preset time, and collecting a flow sampling value of the standard valve at a preset sampling frequency through a flowmeter to be corrected.
The steps S1-S4 can be called test stages or calibration stages, wherein the standard valve is a valve for test, and under specific test conditions (specific test equipment, test environment and fluid medium), the opening and the flow of the standard valve have a known fixed corresponding relation. The opening degree of the standard valve is referred to as a standard opening degree in the embodiment of the present invention, and the flow corresponding to the standard valve in the fixed correspondence relationship is referred to as a flow standard value.
The preset time can be determined by combining the opening/closing speed of the standard valve, and the opening of the standard valve can be ensured to linearly change along with the time in the preset time. The sampling frequency can be set according to the magnitude of the preset time and the requirement for the accuracy of the corrected flow meter detection result, and it is understood that the larger the sampling frequency is, the more data is obtained, and the better the subsequent correction effect is.
The flowmeter to be corrected in the embodiment of the invention can be an embedded flowmeter, and can also be other types of flowmeters which can influence the actual flow value during flow detection. The detection value obtained when the flow detection is performed at a preset sampling frequency is called a flow sampling value.
S2, obtaining a flow standard value of each sampling moment according to the standard opening of the standard valve of each sampling moment.
And obtaining the flow standard value of each sampling time according to the fixed corresponding relation according to the standard opening of the standard valve of each sampling time.
S3, obtaining the deviation value and the deviation change rate between the flow sampling value and the flow standard value according to the flow standard value and the flow sampling value at each sampling moment.
After the flow standard value and the flow sampling value at each sampling time are obtained, referring to fig. 2, the flow standard value and the flow sampling value at the k time are differentiated to obtain a deviation value e (k) at the k time, and the ratio of the difference between the deviation value e (k) at the k time and the deviation value e (k-1) at the previous time to the sampling period T is the deviation change rate e c (k) at the k time.
And S4, obtaining the adjusted opening of each sampling moment based on fuzzy self-adaptive PID control according to the deviation value and the deviation change rate.
Referring to fig. 2, after obtaining the deviation value e (K) and the deviation change rate e c (K), the deviation value e (K) and the deviation change rate e c (K) are input into the fuzzy adaptive PID controller, so that a proportional coefficient K p, an integral coefficient K i and a differential coefficient K d after fuzzy adaptation can be obtained, and then an adjusted opening degree can be obtained according to the proportional coefficient K p, the integral coefficient K i and the differential coefficient K d after fuzzy adaptation.
Specifically, the control principle formula of the fuzzy self-adaptive PID controller, namely the control relation between the adjusted opening u (k) at the k moment and the deviation value e (k) and the deviation change rate e c (k) at the k moment is as follows:
The fuzzy self-adaptive PID controller obtains the change condition of each coefficient by obtaining the increment delta K p、ΔKi、ΔKd of each coefficient, realizes the self-adaptive setting of each coefficient, and obtains each coefficient K p、Ki、Kd after fuzzy self-adaptation by combining the initial value of each coefficient.
In one embodiment of the present invention, the deviation value e (K) and the deviation change rate e c (K) can be used as the input of the fuzzy adaptive PID controller, ΔK p、ΔKi、ΔKd is used as the intermediate output, the quantization levels of the input and the intermediate output are set to be 7 levels, namely { -3, -2, -1,0,1,2,3}, meanwhile, the fuzzy domains of the input e (K) and the input e c (K) are respectively [ -0.5,0.5], [ -5,5], the fuzzy domains of the intermediate output ΔK p、ΔKi、ΔKd are respectively [ -2,2], [ -1,1], and all obey the triangle membership function distribution curve according to the self parameters and test conditions of the standard valve. Thus, membership of the fuzzy subset of inputs e (K), e c (K) and intermediate output Δk p、ΔKi、ΔKd shown in table 1 can be obtained.
TABLE 1
Further, the fuzzy subset of inputs e (K), e c (K) and intermediate output Δk p、ΔKi、ΔKd may be set to { NB, NM, NS, Z, PS, PM, PB }, i.e., { negative large, negative medium, negative small, zero, positive small, medium, positive large }, and then the fuzzy rule table is queried for intermediate outputs, i.e., delta Δk p、ΔKi、ΔKd. Here, Δk p may be set by the fuzzy rule table shown in table 2, Δk i may be set by the fuzzy rule table shown in table 3, and Δk d may be set by the fuzzy rule table shown in table 4.
TABLE 2
TABLE 3 Table 3
TABLE 4 Table 4
And S5, obtaining the corresponding relation between the detection value and the actual value of the flowmeter to be corrected according to the standard opening degree, the flow standard value, the adjusted opening degree and the flow sampling value at a plurality of sampling moments.
Based on the above steps, the corresponding relation between the standard opening of any sampling time and the flow standard value is obtained, and the corresponding relation between the opening of any sampling time after adjustment and the flow sampling value is also obtained.
In view of this, a first corresponding relation group of the standard opening at the same sampling time and the flow standard value can be obtained, a second corresponding relation group of the opening after adjustment at the same sampling time and the flow sampling value is obtained, and then the standard opening in each first corresponding relation group is compared with the adjusted opening in each second corresponding relation group. And if the standard opening degree in a certain first corresponding relation group is the same as or similar to the adjusted opening degree in a certain second corresponding relation group, combining the first corresponding relation group and the second corresponding relation group into a third corresponding relation group. And finally, taking the corresponding relation between the flow sampling value and the flow standard value in the third corresponding relation group as the corresponding relation between the detection value and the actual value of the flowmeter to be corrected.
The reference opening degree and the adjusted opening degree are similar to each other, and the difference between them is smaller than a set threshold value, which may be set smaller according to actual situations, for example, may be set to a value not exceeding 0.5%. It will be appreciated that the smaller the threshold, the closer the corrected test result is to the actual value and the higher the accuracy of the corrected flow meter test result.
For example, at time x, the standard opening is 10%, and the corresponding flow standard value is 2.3m 3/h; there is a y moment, the opening degree after adjustment is 10%, and the corresponding flow sampling value is 2.28m 3/h. The actual value corresponding to the detected value of 2.28m 3/h of the flowmeter to be corrected is 2.3m 3/h.
S6, when the flow test is carried out on the valve to be tested through the flowmeter to be corrected, correcting the detection result of the flowmeter to be corrected according to the corresponding relation between the detection value and the actual value of the flowmeter to be corrected.
In the actual test, after the detection value of the flowmeter is read, the corresponding relation between the detection value obtained in the step S5 and the actual value is searched to obtain the actual value of the flowmeter, so that the correction of the detection result of the flowmeter is realized.
According to the error correction method for the flowmeter for the valve flow test, in the test stage, the standard valve is used for obtaining the flow standard value and the flow sampling value detected by the flowmeter, and then fuzzy self-adaptive PID adjustment is carried out based on the deviation of the flow standard value and the flow sampling value, so that the corresponding relation between the detection value and the actual value of the flowmeter is obtained, and therefore the detection result of the flowmeter can be corrected, and the accuracy of the valve flow test is improved.
Corresponding to the error correction method of the flowmeter for testing the valve flow in the embodiment, the invention further provides an error correction device of the flowmeter for testing the valve flow.
As shown in fig. 3, the error correction device of the flowmeter for valve flow test according to the embodiment of the present invention includes a sampling module 10, a first acquisition module 20, a second acquisition module 30, a third acquisition module 40, a fourth acquisition module 50, and a correction module 60. The sampling module 10 is used for controlling the standard opening of the standard valve to continuously increase or continuously decrease in a preset time, and collecting a flow sampling value of the standard valve at a preset sampling frequency through the flowmeter to be corrected; the first obtaining module 20 is configured to obtain a flow standard value at each sampling time according to a standard opening of a standard valve at each sampling time; the second obtaining module 30 is configured to obtain a deviation value and a deviation change rate between the flow sampling value and the flow standard value according to the flow standard value and the flow sampling value at each sampling time; the third obtaining module 40 is configured to obtain an adjusted opening at each sampling time based on fuzzy adaptive PID control according to the deviation value and the deviation change rate; the fourth obtaining module 50 is configured to obtain a corresponding relationship between a detection value and an actual value of the flowmeter to be corrected according to the standard opening degrees, the flow standard values, the adjusted opening degrees, and the flow sampling values at the multiple sampling moments; the calibration module 60 is configured to calibrate a detection result of the flow meter to be calibrated according to a corresponding relationship between a detection value and an actual value of the flow meter to be calibrated when the flow test is performed on the valve to be tested through the flow meter to be calibrated.
The functions implemented by the sampling module 10, the first acquiring module 20, the second acquiring module 30 and the third acquiring module 40 may be referred to as a test phase, or a calibration phase, where the standard valve is a valve for test, and under specific test conditions (specific test equipment, test environment and fluid medium), there is a known fixed correspondence between the opening and the flow rate of the standard valve. The opening degree of the standard valve is referred to as a standard opening degree in the embodiment of the present invention, and the flow corresponding to the standard valve in the fixed correspondence relationship is referred to as a flow standard value.
The preset time can be determined by combining the opening/closing speed of the standard valve, and the opening of the standard valve can be ensured to linearly change along with the time in the preset time. The sampling frequency can be set according to the magnitude of the preset time and the requirement for the accuracy of the corrected flow meter detection result, and it is understood that the larger the sampling frequency is, the more data is obtained, and the better the subsequent correction effect is.
The flowmeter to be corrected in the embodiment of the invention can be an embedded flowmeter, and can also be other types of flowmeters which can influence the actual flow value during flow detection. The detection value obtained when the flow detection is performed at a preset sampling frequency is called a flow sampling value.
The first obtaining module 20 may obtain the flow standard value at each sampling time according to the above-mentioned fixed correspondence according to the standard opening of the standard valve at each sampling time.
After obtaining the flow standard value and the flow sampling value at each sampling time, referring to fig. 2, the second obtaining module 30 makes a difference between the flow standard value and the flow sampling value at the k time, so as to obtain a deviation value e (k) at the k time, and a ratio of a difference between the deviation value e (k) at the k time and a deviation value e (k-1) at a previous time to the sampling period T, namely, a deviation change rate e c (k) at the k time.
Referring to fig. 2, after obtaining the deviation value e (K) and the deviation change rate e c (K), the second obtaining module 40 inputs the deviation value e (K) and the deviation change rate e c (K) into the fuzzy adaptive PID controller, so as to obtain a proportional coefficient K p, an integral coefficient K i and a differential coefficient K d after fuzzy adaptation, and then an adjusted opening degree can be obtained according to the proportional coefficient K p, the integral coefficient K i and the differential coefficient K d after fuzzy adaptation.
Specifically, the control principle formula of the fuzzy self-adaptive PID controller, namely the control relation between the adjusted opening u (k) at the k moment and the deviation value e (k) and the deviation change rate e c (k) at the k moment is as follows:
The fuzzy self-adaptive PID controller obtains the change condition of each coefficient by obtaining the increment delta K p、ΔKi、ΔKd of each coefficient, realizes the self-adaptive setting of each coefficient, and obtains each coefficient K p、Ki、Kd after fuzzy self-adaptation by combining the initial value of each coefficient.
In one embodiment of the present invention, the deviation value e (K) and the deviation change rate e c (K) can be used as the input of the fuzzy adaptive PID controller, ΔK p、ΔKi、ΔKd is used as the intermediate output, the quantization levels of the input and the intermediate output are set to be 7 levels, namely { -3, -2, -1,0,1,2,3}, meanwhile, the fuzzy domains of the input e (K) and the input e c (K) are respectively [ -0.5,0.5], [ -5,5], the fuzzy domains of the intermediate output ΔK p、ΔKi、ΔKd are respectively [ -2,2], [ -1,1], and all obey the triangle membership function distribution curve according to the self parameters and test conditions of the standard valve. Thus, membership of the fuzzy subset of inputs e (K), e c (K) and intermediate output Δk p、ΔKi、ΔKd shown in table 1 can be obtained.
Further, the fuzzy subset of inputs e (K), e c (K) and intermediate output Δk p、ΔKi、ΔKd may be set to { NB, NM, NS, Z, PS, PM, PB }, i.e., { negative large, negative medium, negative small, zero, positive small, medium, positive large }, and then the fuzzy rule table is queried for intermediate outputs, i.e., delta Δk p、ΔKi、ΔKd. Here, Δk p may be set by the fuzzy rule table shown in table 2, Δk i may be set by the fuzzy rule table shown in table 3, and Δk d may be set by the fuzzy rule table shown in table 4.
Based on the functions implemented by the sampling module 10, the first obtaining module 20, the second obtaining module 30, and the third obtaining module 40, the corresponding relation between the standard opening of any sampling time and the standard flow value is obtained, and the corresponding relation between the opening of any sampling time after adjustment and the flow sampling value is also obtained.
In view of this, the fourth obtaining module 50 may specifically obtain a first corresponding relation group of the standard opening and the standard flow value at the same sampling time, and obtain a second corresponding relation group of the adjusted opening and the flow sampling value at the same sampling time, and then compare the standard opening in each first corresponding relation group with the adjusted opening in each second corresponding relation group. And if the standard opening degree in a certain first corresponding relation group is the same as or similar to the adjusted opening degree in a certain second corresponding relation group, combining the first corresponding relation group and the second corresponding relation group into a third corresponding relation group. And finally, taking the corresponding relation between the flow sampling value and the flow standard value in the third corresponding relation group as the corresponding relation between the detection value and the actual value of the flowmeter to be corrected.
The reference opening degree and the adjusted opening degree are similar to each other, and the difference between them is smaller than a set threshold value, which may be set smaller according to actual situations, for example, may be set to a value not exceeding 0.5%. It will be appreciated that the smaller the threshold, the closer the corrected test result is to the actual value and the higher the accuracy of the corrected flow meter test result.
For example, at time x, the standard opening is 10%, and the corresponding flow standard value is 2.3m 3/h; there is a y moment, the opening degree after adjustment is 10%, and the corresponding flow sampling value is 2.28m 3/h. The actual value corresponding to the detected value of 2.28m 3/h of the flowmeter to be corrected is 2.3m 3/h.
In the actual test, after the correction module 60 reads the detection value of the flowmeter, the corresponding relation between the detection value obtained by the fourth obtaining module 50 and the actual value is searched for, so that the actual value of the flowmeter can be obtained, and the correction of the detection result of the flowmeter is realized.
According to the error correction device for the flowmeter for the valve flow test, in the test stage, the standard valve is used for obtaining the flow standard value and the flow sampling value detected by the flowmeter, and then fuzzy self-adaptive PID adjustment is carried out based on the deviation of the flow standard value and the flow sampling value, so that the corresponding relation between the detection value and the actual value of the flowmeter is obtained, and therefore the detection result of the flowmeter can be corrected, and the accuracy of the valve flow test is improved.
In the description of the present invention, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. The meaning of "a plurality of" is two or more, unless specifically defined otherwise.
In the present invention, unless explicitly specified and limited otherwise, the terms "mounted," "connected," "secured," and the like are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
In the present invention, unless expressly stated or limited otherwise, a first feature "up" or "down" a second feature may be the first and second features in direct contact, or the first and second features in indirect contact via an intervening medium. Moreover, a first feature being "above," "over" and "on" a second feature may be a first feature being directly above or obliquely above the second feature, or simply indicating that the first feature is level higher than the second feature. The first feature being "under", "below" and "beneath" the second feature may be the first feature being directly under or obliquely below the second feature, or simply indicating that the first feature is less level than the second feature.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms are not necessarily for the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.

Claims (10)

1. An error correction method for a flowmeter for valve flow testing, comprising the steps of:
In a preset time, controlling the standard opening of the standard valve to be continuously increased or continuously reduced, and collecting a flow sampling value of the standard valve at a preset sampling frequency through a flowmeter to be corrected;
Obtaining a flow standard value of each sampling moment according to the standard opening of the standard valve at each sampling moment;
Obtaining a deviation value and a deviation change rate between the flow sampling value and the flow standard value according to the flow standard value and the flow sampling value at each sampling moment;
Obtaining an adjusted opening of each sampling moment based on fuzzy self-adaptive PID control according to the deviation value and the deviation change rate;
Obtaining the corresponding relation between the detection value and the actual value of the flowmeter to be corrected according to the standard opening, the flow standard value, the adjusted opening and the flow sampling value at a plurality of sampling moments;
When the flow test is carried out on the valve to be tested through the flowmeter to be corrected, correcting the detection result of the flowmeter to be corrected according to the corresponding relation between the detection value and the actual value of the flowmeter to be corrected.
2. The error correction method for a flowmeter for valve flow testing according to claim 1, wherein under specific test conditions, there is a fixed correspondence between the opening of the standard valve and the flow, and the flow standard value at each sampling time is obtained according to the fixed correspondence.
3. The method for error correction of a flow meter for valve flow testing according to claim 1, wherein the obtaining the adjusted opening for each sampling instant based on fuzzy adaptive PID control according to the deviation value and the deviation change rate, specifically comprises:
inputting the deviation value and the deviation change rate into a fuzzy self-adaptive PID controller to obtain a proportional coefficient, an integral coefficient and a differential coefficient after fuzzy self-adaptation;
And obtaining the adjusted opening according to the proportional coefficient, the integral coefficient and the differential coefficient after the fuzzy self-adaption.
4. The method for error correction of a flow meter for valve flow test according to claim 1, wherein the obtaining the corresponding relation between the detection value and the actual value of the flow meter to be corrected according to standard opening, flow standard value, adjusted opening and flow sampling value at a plurality of sampling moments specifically comprises:
acquiring a first corresponding relation group of the standard opening at the same sampling moment and a flow standard value, and acquiring a second corresponding relation group of the opening after adjustment at the same sampling moment and a flow sampling value;
comparing the standard opening in each first corresponding relation group with the adjusted opening in each second corresponding relation group;
If the standard opening degree in a certain first corresponding relation group is the same as or similar to the adjusted opening degree in a certain second corresponding relation group, combining the first corresponding relation group and the second corresponding relation group into a third corresponding relation group;
And taking the corresponding relation between the flow sampling value and the flow standard value in the third corresponding relation group as the corresponding relation between the detection value and the actual value of the flowmeter to be corrected.
5. The method of error correction of a flow meter for valve flow testing of claim 1, wherein the flow meter to be corrected is a built-in flow meter.
6. An error correction device for a flow meter for valve flow testing, comprising:
The sampling module is used for controlling the standard opening of the standard valve to be continuously increased or continuously decreased in preset time, and collecting the flow sampling value of the standard valve at preset sampling frequency through the flowmeter to be corrected;
The first acquisition module is used for acquiring a flow standard value of each sampling moment according to the standard opening of the standard valve at each sampling moment;
The second acquisition module is used for acquiring a deviation value and a deviation change rate between the flow sampling value and the flow standard value according to the flow standard value and the flow sampling value at each sampling moment;
the third acquisition module is used for obtaining the adjusted opening of each sampling moment based on fuzzy self-adaptive PID control according to the deviation value and the deviation change rate;
the fourth acquisition module is used for obtaining the corresponding relation between the detection value and the actual value of the flowmeter to be corrected according to the standard opening, the flow standard value, the adjusted opening and the flow sampling value at a plurality of sampling moments;
the correction module is used for correcting the detection result of the flowmeter to be corrected according to the corresponding relation between the detection value and the actual value of the flowmeter to be corrected when the flowmeter to be corrected is used for carrying out flow test on the valve to be tested.
7. The error correction device for a flow meter for valve flow test according to claim 6, wherein under specific test conditions, there is a fixed correspondence between the opening of the standard valve and the flow rate, and the first obtaining module obtains a flow rate standard value at each sampling time according to the fixed correspondence.
8. The error correction device for a flow meter for valve flow testing of claim 6, wherein the third acquisition module is specifically configured to:
inputting the deviation value and the deviation change rate into a fuzzy self-adaptive PID controller to obtain a proportional coefficient, an integral coefficient and a differential coefficient after fuzzy self-adaptation;
And obtaining the adjusted opening according to the proportional coefficient, the integral coefficient and the differential coefficient after the fuzzy self-adaption.
9. The error correction device for a flow meter for valve flow testing of claim 6, wherein the fourth acquisition module is specifically configured to:
acquiring a first corresponding relation group of the standard opening at the same sampling moment and a flow standard value, and acquiring a second corresponding relation group of the opening after adjustment at the same sampling moment and a flow sampling value;
comparing the standard opening in each first corresponding relation group with the adjusted opening in each second corresponding relation group;
If the standard opening degree in a certain first corresponding relation group is the same as or similar to the adjusted opening degree in a certain second corresponding relation group, combining the first corresponding relation group and the second corresponding relation group into a third corresponding relation group;
And taking the corresponding relation between the flow sampling value and the flow standard value in the third corresponding relation group as the corresponding relation between the detection value and the actual value of the flowmeter to be corrected.
10. The error correction device for a flow meter for valve flow testing of claim 6, wherein the flow meter to be corrected is an embedded flow meter.
CN202410346759.9A 2024-03-26 2024-03-26 Error correction method and device for flowmeter for valve flow test Pending CN117949068A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410346759.9A CN117949068A (en) 2024-03-26 2024-03-26 Error correction method and device for flowmeter for valve flow test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410346759.9A CN117949068A (en) 2024-03-26 2024-03-26 Error correction method and device for flowmeter for valve flow test

Publications (1)

Publication Number Publication Date
CN117949068A true CN117949068A (en) 2024-04-30

Family

ID=90794632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410346759.9A Pending CN117949068A (en) 2024-03-26 2024-03-26 Error correction method and device for flowmeter for valve flow test

Country Status (1)

Country Link
CN (1) CN117949068A (en)

Similar Documents

Publication Publication Date Title
US11231016B2 (en) Method and arrangement for continuous calibration of a wind direction measurement
US10443600B2 (en) Gas estimation device and vacuum pumping device
US9823667B2 (en) Flow rate control apparatus, storage medium storing program for flow rate control apparatus and flow rate control method
US7259618B2 (en) Systems and methods for load detection and correction in a digital amplifier
CN111766777B (en) PID controller and PID control method
US20120132291A1 (en) Transient measurements of mass flow controllers
CN104678343B (en) A kind of waveform generator Frequency Response calibration method, apparatus and system
CN110609973B (en) Kalman filtering method for flow measurement
CN106969812A (en) Flow sensor calibration method and system
US10379133B2 (en) Speed estimation systems
US7177770B1 (en) Mass air flow metering device and method
US20200040834A1 (en) Air flow measurement device
US10006792B2 (en) Thermal-type airflow meter
US9413319B2 (en) Gain calibration
CN109188908B (en) Digital controller design method based on exponential type non-switching attraction law
CN107884099A (en) Means for correcting, bearing calibration and measuring system
US20130009636A1 (en) Magnetic Sensor Characterization
US10724881B2 (en) Thermal air flow meter with adjustment of pulsation correction function
CN117949068A (en) Error correction method and device for flowmeter for valve flow test
KR20220143866A (en) Differential Measurement Circuit Calibration
US20170052243A1 (en) Method for determining the conductivity of a medium
CN114542779B (en) Vacuum valve and estimating device
CN113670478B (en) Temperature data correction method, system, device and medium based on thermometer
JP6799862B2 (en) Flow rate signal correction method and flow control device using this
CN112285635B (en) Terminal correction method and system of external current transformer

Legal Events

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