A method and system for self-correcting delay time under steady state of ultrasonic flow measurement

By obtaining the downstream and countercurrent times for multiple periods in the ultrasonic flowmeter, performing similarization processing and compensation, the delay time drift problem in steady state is solved, self-calibration is achieved, and measurement accuracy and stability are improved.

CN119642940BActive Publication Date: 2025-07-08SHANDONG NEW GENERATION STANDARDIZATION RES INST CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411790308.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-07-08
Estimated Expiration
2044-12-06

Smart Images

  • Figure CN119642940B_ABST
    Figure CN119642940B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for self-correcting the delay time under steady state of ultrasonic flow measurement, belonging to the technical field of ultrasonic flow measurement. The present invention obtains the forward and reverse flow times of multiple cycles of ultrasonic waves in the medium under steady state, and respectively forms a forward flow array and a reverse flow array with the obtained forward and reverse flow times of multiple cycles; performs similarity processing on the forward flow array and the reverse flow array respectively to obtain a forward flow similarity coefficient and a reverse flow similarity coefficient; compensates the delay time based on the forward flow similarity coefficient and the reverse flow similarity coefficient to obtain a new forward flow delay time and a new reverse flow delay time; calculates the sound speed of the ultrasonic wave in the medium after compensation based on the newly obtained forward flow delay time and reverse flow delay time, and finally determines the flow velocity of the ultrasonic wave in the medium under steady state based on the sound speed to complete the self-correction of the delay time. The present invention can effectively improve the accuracy and stability of ultrasonic measurement of the medium under steady state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of ultrasonic flow measurement, and particularly relates to a method and system for self-correcting delay time under steady state of ultrasonic flow measurement. Background Art

[0002] The statements in this part only provide background technical information related to the present invention, and do not necessarily constitute prior art.

[0003] With the development of flow measurement technology, ultrasonic technology has been applied to various fields. At present, the methods for measuring flow using the ultrasonic principle are generally divided into the propagation difference method and the Doppler method, etc.; among them, the propagation difference method can be further divided into the time difference method, the phase difference method, and the frequency difference method. The time difference method is widely used in actual application scenarios because of its simple measurement principle, easy implementation, and good effect. The ultrasonic flowmeter designed based on the time difference method is a flowmeter that measures the flow velocity of the medium in the pipeline by using the flight time of ultrasonic waves. The working principle of this type of flowmeter is based on the inverse piezoelectric effect to excite an ultrasonic transducer to emit ultrasonic pulses; another ultrasonic transducer receives the ultrasonic signal, converts it into an echo electrical signal according to the piezoelectric effect, and determines the forward and reverse flow flight times of the ultrasonic signal according to a certain stable feature point in the echo signal. Then, according to the forward and reverse flow propagation times of the signal, the time difference is determined, and then the flow velocity of the medium is determined according to the time difference, and further the flow rate of the medium is calculated.

[0004] The forward and reverse flow times will directly affect the measurement accuracy of the ultrasonic flowmeter. However, in actual application scenarios, the amplitude stability of the ultrasonic signal is poor and it is easily affected by various environmental factors such as temperature, resulting in the delay time of the forward and reverse flow times being prone to drift. This drift will directly affect the measurement of the flow velocity of the medium and has a great impact on the measurement accuracy of the flowmeter. If it is necessary to further improve the measurement accuracy and stability of the flowmeter and make the measurement of the flowmeter more accurate, the drift problem becomes a key problem that must be solved.

[0005] However, the existing ultrasonic flow measurement methods that can avoid the temperature drift problem still have some technical problems, such as:

[0006] For example, in a flowmeter metering temperature compensation method with the patent application number 201911273146.2, this method designs a correction model by obtaining parameters such as the flow rate and temperature of the ultrasonic flowmeter, and then corrects the flow rate based on the correction model. This single correction method that only relies on temperature compensation not only requires adding hardware design and temperature acquisition modules, but also the compensation value mainly depends on empirical values, resulting in poor stability and low accuracy when the ultrasonic flowmeter measures under steady state. Summary of the Invention

[0007] To overcome the deficiencies of the above-mentioned prior art, the present invention provides a method and system for self-correcting the delay time in steady-state ultrasonic flow measurement, which can effectively improve the accuracy and stability of ultrasonic measurement of the medium in the steady state.

[0008] To achieve the above object, one or more embodiments of the present invention provide the following technical solutions:

[0009] The first aspect of the present invention provides a method for self-correcting the delay time in steady-state ultrasonic flow measurement.

[0010] A method for self-correcting the delay time in steady-state ultrasonic flow measurement includes:

[0011] Obtaining the downstream flow time and upstream flow time of multiple cycles of ultrasonic waves in the medium under steady state, and respectively forming a downstream flow array and an upstream flow array with the obtained downstream flow time and upstream flow time of multiple cycles;

[0012] Performing similarity processing on the downstream flow array and the upstream flow array respectively to obtain a downstream flow similarity coefficient and an upstream flow similarity coefficient; compensating the delay time of the downstream flow time and the upstream flow time respectively based on the downstream flow similarity coefficient and the upstream flow similarity coefficient to obtain a new downstream flow delay time and an upstream flow delay time;

[0013] Calculating the sound speed of the ultrasonic wave in the medium after compensation based on the newly obtained downstream flow delay time and upstream flow delay time, and finally determining the flow velocity of the ultrasonic wave in the medium under steady state based on the obtained sound speed to complete the self-correction of the delay time.

[0014] Further, forming a downstream flow array and an upstream flow array with the obtained downstream flow time and upstream flow time of multiple cycles respectively. Specifically, the array capacities of the downstream flow array and the upstream flow array are consistent with the number of cycles of the collected downstream flow time and upstream flow time.

[0015] Further, when the data collected in the next cycle arrives, the first data in the queue will be kicked out, and the newly collected data will enter the queue.

[0016] Further, the first data is the first data that enters the queue among the existing data in the array.

[0017] Further, compensating the delay time based on the downstream flow similarity coefficient and the upstream flow similarity coefficient includes: respectively calculating the average value of multiple coefficients in the downstream flow similarity coefficient and the upstream flow similarity coefficient to obtain a downstream flow average similarity coefficient and an upstream flow average similarity coefficient.

[0018] Further, compensating the delay time of the downstream flow time and the upstream flow time respectively based on the obtained downstream flow average similarity coefficient and upstream flow average similarity coefficient to obtain a new downstream flow delay time and an upstream flow delay time.

[0019] Further, combine the pipe diameter with the flow velocity of ultrasonic waves in the medium under steady state to determine the flow rate of ultrasonic waves in the medium under steady state.

[0020] The second aspect of the present invention provides a delay time self-correction system for ultrasonic flow measurement under steady state.

[0021] A delay time self-correction system for ultrasonic flow measurement under steady state includes:

[0022] An array construction module configured to: obtain the downstream flow time and upstream flow time of ultrasonic waves in the medium for multiple cycles under steady state, and respectively form a downstream flow array and an upstream flow array from the obtained downstream flow time and upstream flow time for multiple cycles;

[0023] A delay time update module configured to: perform similarity processing on the downstream flow array and the upstream flow array respectively to obtain a downstream flow similarity coefficient and an upstream flow similarity coefficient; compensate the delay time of the downstream flow time and the upstream flow time respectively based on the downstream flow similarity coefficient and the upstream flow similarity coefficient to obtain a new downstream flow delay time and an upstream flow delay time;

[0024] A delay time self-correction module configured to: calculate the sound velocity of ultrasonic waves in the medium after compensation based on the newly obtained downstream flow delay time and upstream flow delay time, and finally determine the flow velocity of ultrasonic waves in the medium under steady state based on the obtained sound velocity to complete the delay time self-correction.

[0025] The third aspect of the present invention provides a computer-readable storage medium, on which a program is stored, and when the program is executed by a processor, the steps in a delay time self-correction method for ultrasonic flow measurement under steady state as described in the first aspect of the present invention are implemented.

[0026] The fourth aspect of the present invention provides an electronic device, including a memory, a processor, and a program stored on the memory and executable on the processor. When the processor executes the program, the steps in a delay time self-correction method for ultrasonic flow measurement under steady state as described in the first aspect of the present invention are implemented.

[0027] The above one or more technical solutions have the following beneficial effects:

[0028] The present invention calculates a new delay time by calculating the average value of the similarity between the forward and reverse flow times of multiple cycles of the flowmeter in a steady state; subsequently, the forward and reverse flow times calculated based on the new delay time are entered into the time queue of the forward and reverse flows. Through repeated iterative optimization, the system has self - adaptability. Therefore, the difference between the optimized forward and reverse flow times of the present invention has a strong ability to adapt to environmental factors such as temperature, truly realizing self - calibration; and there is no need to add a hardware design and a temperature acquisition module. Therefore, the present invention can effectively improve the accuracy and stability of the flowmeter in measuring the medium using ultrasonic waves in a steady state.

[0029] Advantages of additional aspects of the present invention will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The accompanying drawings, which form a part of the specification, are used to provide a further understanding of the present invention. The schematic embodiments and descriptions thereof of the present invention are used to explain the present invention and do not constitute an improper limitation of the present invention.

[0031] Figure 1 It is a flowchart of a method for self - calibrating the delay time in a steady state of an ultrasonic flow measurement according to Embodiment 1 of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0032] It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present invention belongs.

[0033] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present invention.

[0034] In the case of no conflict, the embodiments in the present invention and the features in the embodiments can be combined with each other.

[0035] Embodiment 1

[0036] This embodiment discloses a method for self - calibrating the delay time in a steady state of an ultrasonic flow measurement.

[0037] As Figure 1 shown, a method for self - calibrating the delay time in a steady state of an ultrasonic flow measurement includes:

[0038] Step S1: Obtain the forward flow time and reverse flow time of multiple cycles of ultrasonic waves in the medium in a steady state, and respectively form a forward flow array and a reverse flow array with the obtained forward flow times and reverse flow times of multiple cycles;

[0039] Step S2: Perform similarity processing on the downstream array and the upstream array respectively to obtain a downstream similarity coefficient and an upstream similarity coefficient; compensate the delay times of the downstream time and the upstream time based on the downstream similarity coefficient and the upstream similarity coefficient respectively to obtain a new downstream delay time and an upstream delay time;

[0040] Step S3: Calculate the sound velocity of ultrasonic waves in the compensated medium based on the newly obtained downstream delay time and upstream delay time, and finally determine the flow velocity of ultrasonic waves in the medium under steady state based on the obtained sound velocity to complete the self-correction of the delay time.

[0041] Based on the above process, the present invention can effectively improve the accuracy and stability of ultrasonic wave measurement of the medium under steady state. Before further explaining the technical solution of the present invention, first analyze the main technical problems that occur during the actual measurement of the flowmeter based on the basic principle of the time-difference ultrasonic flowmeter:

[0042] According to the basic principle of the time-difference ultrasonic flowmeter, the downstream signal of ultrasonic waves and the upstream signal of the arrival time can be expressed as:

[0043] ;

[0044] In the formula, represents the sound velocity of ultrasonic waves in the medium, represents the linear average flow velocity of the medium, represents the length of the sound path. represents the arrival time of the downstream signal, referred to as the downstream time; represents the arrival time of the upstream signal, referred to as the upstream time; represents the circuit delay time of the downstream signal, represents the circuit delay time of the upstream signal, represents the axial angle between the ultrasonic transducer and the pipeline.

[0045] Since the sound velocity of ultrasonic waves in the medium will change with conditions such as temperature, it is necessary to use the calculation formulas of the downstream time and the upstream time to obtain the sound velocity of ultrasonic waves in the medium , which can be specifically expressed as:

[0046] ;

[0047] Therefore, the sound velocity of ultrasonic waves in the medium can be expressed as:

[0048] ;

[0049] Furthermore, the time difference between the downstream time and the upstream time is:

[0050] ;

[0051] Therefore, the linear average velocity of the medium can be expressed as:

[0052] ;

[0053] Wherein, represents the linear average velocity of the medium. It can be seen from the above calculation formula of the medium flow velocity that maintaining a stable sound speed is crucial; at the same time, it can be seen from the calculation formula of the sound speed that maintaining a stable delay time , is equally crucial. However, during the actual measurement using a flowmeter, the circuit delay time of the ultrasonic signal in the forward and reverse flows is easily affected by various interference factors, resulting in the phenomenon of delay time drift, and thus the measured data under steady state is inconsistent with the increase or decrease of temperature. Currently, there are few processing algorithms for temperature drift, and most rely on methods such as increasing temperature compensation to avoid temperature drift. This method not only requires an increase in the design of temperature acquisition, but also the compensation value often depends on empirical values and has no self-adaptability.

[0054] In view of this, the present invention provides a method for self-correcting the delay time under steady state in ultrasonic flow measurement, which can realize the self-correction of the flowmeter based on the delay time under steady state without adding a hardware design and a temperature acquisition module, realize the accurate measurement of the medium flow velocity, and thus effectively improve the measurement accuracy of the flowmeter. For the convenience of understanding the technical solution of the present invention, the specific implementation steps in the technical solution of the present invention are further explained and described below.

[0055] Step S1: Obtain the forward flow time and reverse flow time of multiple cycles of ultrasonic waves in the medium under steady state, and respectively form a forward flow array and a reverse flow array with the obtained forward flow time and reverse flow time of multiple cycles.

[0056] The obtained forward flow time and reverse flow time of multiple cycles are respectively formed into a forward flow array and a reverse flow array. Specifically, the array capacities of the forward flow array and the reverse flow array are the same as the number of cycles of the collected forward flow time and reverse flow time. When the data of the next cycle is collected, the first data in the queue will be kicked out, and the newly collected data will enter the queue. Wherein, the first data represents the first data that enters the queue among the existing data in the array.

[0057] In the actual implementation process, taking pure water as the medium, the collection of the forward flow time and the reverse flow time is data collection carried out under the condition that the medium flow rate is in a steady state. Preferably: in this embodiment, the forward flow time of 10 cycles and the reverse flow time of 10 cycles are continuously collected to form a forward flow array and a reverse flow array respectively. Among them, the forward flow array is expressed as: ; Similarly, the reverse flow array is expressed as . Thus, the capacities of the forward flow array and the reverse flow array are both 10 data. When the data collected in the next cycle arrives, the first data in the queue will be kicked out and the new data will enter the queue. It can be understood that the first data represents the first data that enters the queue among the existing data in the array.

[0058] Step S2: Perform similarity processing on the forward flow array and the reverse flow array respectively to obtain a forward flow similarity coefficient and a reverse flow similarity coefficient; compensate the delay time of the forward flow time and the reverse flow time respectively based on the forward flow similarity coefficient and the reverse flow similarity coefficient to obtain a new forward flow delay time and a new reverse flow delay time.

[0059] Step S2-1: Perform similarity processing on the forward flow array and the reverse flow array respectively to obtain a forward flow similarity coefficient and a reverse flow similarity coefficient. The obtained similarity coefficients can be expressed as:

[0060]

[0061] Among them, represents a forward flow similarity coefficient array composed of multiple forward flow similarity coefficients, represents the forward flow similarity coefficient corresponding to the i th data and the i+ 1st data in the forward flow array; represents the number of forward flow similarity coefficients included in the forward flow similarity coefficient array, and its quantity is one less than the data volume in the forward flow array; and respectively represent the i th and the i+ 1st data in the forward flow array. represents a reverse flow similarity coefficient array composed of multiple reverse flow similarity coefficients, represents the reverse flow similarity coefficient corresponding to the i th data and the i+ 1st data in the reverse flow array; represents the number of reverse flow similarity coefficients included in the reverse flow similarity coefficient array, and its quantity is one less than the data volume in the reverse flow array; and respectively represent the i th and the i+ 1st data in the reverse flow array.

[0062] In this embodiment, based on the above formula, a downstream similarity coefficient array composed of multiple downstream similarity coefficients, and the specific representation of each downstream similarity coefficient in the downstream similarity coefficient array can be obtained. Exemplarily, based on the above formula, it can be known that the first downstream similarity coefficient in the downstream similarity coefficient array and the first upstream similarity coefficient in the upstream similarity coefficient array can be expressed as:

[0063]

[0064] wherein, represents the first downstream similarity coefficient in the downstream similarity coefficient array, represents the first upstream similarity coefficient in the upstream similarity coefficient array; and respectively represent the first and second data in the downstream array (i.e., the first data and the second data in the downstream array), and respectively represent the first and second data in the upstream array (i.e., the first data and the second data in the upstream array). Similarly, other downstream similarity coefficients in the downstream similarity coefficient array and other upstream similarity coefficients in the upstream similarity coefficient array can be obtained, that is and (in this embodiment, ).

[0065] Step S2-2: Compensate the delay times of the downstream time and the upstream time respectively based on the downstream similarity coefficient and the upstream similarity coefficient to obtain new downstream delay time and upstream delay time.

[0066] Calculate the average values of the multiple downstream similarity coefficients in the downstream similarity coefficient array and the multiple upstream similarity coefficients in the upstream similarity coefficient array respectively to obtain the downstream average similarity coefficient and the upstream average similarity coefficient, that is:

[0067] ;

[0068] wherein, and respectively represent the downstream average similarity coefficient and the upstream average similarity coefficient. Based on the obtained downstream average similarity coefficient and the upstream average similarity coefficient compensate the delay times of the downstream time and the upstream time respectively to obtain the new downstream delay time and the upstream delay time , that is: , 。

[0069] Step S3: Based on the newly obtained downstream delay time and upstream delay time calculate the ultrasonic sound speed in the compensated medium, and finally determine the flow velocity of the ultrasonic wave in the medium under steady state based on the obtained sound speed to complete the self-correction of the delay time.

[0070] First, substitute the newly obtained downstream delay time and upstream delay time into the ultrasonic sound speed calculation formula to obtain the sound speed of the ultrasonic wave in the medium after compensation, that is:

[0071] ;

[0072] wherein, represents the sound speed of the ultrasonic wave in the medium after compensation. The sound speed after compensation has strong self-adaptability. When environmental conditions such as temperature change, the system in this example will eliminate the influence brought by temperature drift through several cycles of self-calibration, so as to obtain a stable medium flow velocity; and there is no need to add a temperature compensation module for hardware facilities. Further, by combining the pipeline diameter of the ultrasonic flowmeter body and the flow velocity of the ultrasonic wave in the medium under the obtained steady state, the flow rate of the ultrasonic wave in the medium under the steady state can be determined, that is:

[0073] ;

[0074] wherein, represents the flow rate of the ultrasonic wave in the medium under the steady state, V represents the flow velocity of the medium in the pipeline of the ultrasonic flowmeter body, D represents the inner diameter of the pipeline of the ultrasonic flowmeter body.

[0075] Thus far, the present invention has finally determined the flow velocity of the ultrasonic wave in the medium under the steady state based on the obtained sound speed, realizing the self-correction of the delay time.

[0076] Embodiment 2

[0077] This embodiment discloses a delay time self-correction system for ultrasonic flow measurement under steady state.

[0078] A delay time self-correction system for ultrasonic flow measurement under steady state, comprising:

[0079] An array building module, configured to: obtain the downstream time and upstream time of the ultrasonic wave in the medium for multiple cycles under the steady state, and respectively form a downstream array and an upstream array with the obtained downstream time and upstream time for multiple cycles;

[0080] The delay time update module is configured to: perform similarity processing on the downstream array and the upstream array respectively to obtain a downstream similarity coefficient and an upstream similarity coefficient; compensate the delay times of the downstream time and the upstream time respectively based on the downstream similarity coefficient and the upstream similarity coefficient to obtain a new downstream delay time and an upstream delay time;

[0081] The delay time self-correction module is configured to: calculate the sound velocity of the ultrasonic wave after compensation based on the newly obtained downstream delay time and upstream delay time, and finally determine the flow velocity of the ultrasonic wave in the medium under steady state based on the obtained sound velocity to complete the delay time self-correction.

[0082] Embodiment III

[0083] The purpose of this embodiment is to provide a computer-readable storage medium.

[0084] A computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps in a method for self-correcting the delay time under steady state of ultrasonic flow measurement as described in Embodiment I of the present disclosure are implemented.

[0085] Embodiment IV

[0086] The purpose of this embodiment is to provide an electronic device.

[0087] An electronic device, including a memory, a processor, and a program stored on the memory and executable on the processor, and when the processor executes the program, the steps in a method for self-correcting the delay time under steady state of ultrasonic flow measurement as described in Embodiment I of the present disclosure are implemented.

[0088] The steps involved in the devices in Embodiments II, III, and IV above correspond to those in Method Embodiment I, and the specific implementation manners can refer to the relevant description part of Embodiment I. The term "computer-readable storage medium" should be understood to include a single medium or multiple media including one or more instruction sets; it should also be understood to include any medium that can store, encode, or carry an instruction set for execution by a processor and enable the processor to execute any method in the present invention.

[0089] Those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computer device. Optionally, they can be implemented by program codes executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be separately fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module to implement. The present invention is not limited to any specific combination of hardware and software.

[0090] Although the specific implementation manners of the present invention have been described above in conjunction with the accompanying drawings, it is not a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications or deformations that can be made without creative efforts on the basis of the technical solutions of the present invention are still within the protection scope of the present invention.

Claims

1. A method for self - correcting the delay time under steady state of ultrasonic flow measurement, characterized in that Including: Obtain the downstream time and upstream time of multiple cycles of ultrasonic waves in the medium under steady state, and respectively form a downstream array and an upstream array with the obtained downstream time and upstream time of multiple cycles. Specifically, the array capacities of the downstream array and the upstream array are consistent with the number of cycles of the collected downstream time and upstream time; Perform similarity processing on the downstream array and the upstream array respectively to obtain a downstream similarity coefficient and an upstream similarity coefficient. The obtained similarity coefficient can be expressed as: Among them, represents a downstream similarity coefficient array composed of multiple downstream similarity coefficients, represents the downstream similarity coefficient corresponding to the i th data and the i+ first data in the downstream array; represents the number of downstream similarity coefficients included in the downstream similarity coefficient array, and its quantity is one less than the amount of data in the downstream array; and respectively represent the i th and the i+ first data in the downstream array; represents an upstream similarity coefficient array composed of multiple upstream similarity coefficients, represents the upstream similarity coefficient corresponding to the i th data and the i+ first data in the upstream array; represents the number of upstream similarity coefficients included in the upstream similarity coefficient array, and its quantity is one less than the amount of data in the upstream array; and respectively represent the i th and the i+ first data in the upstream array; Based on the above formula, a downstream similarity coefficient array composed of multiple downstream similarity coefficients can be obtained, as well as the specific representation of each downstream similarity coefficient in the downstream similarity coefficient array. Based on the above formula, it can be known that the first downstream similarity coefficient in the downstream similarity coefficient array and the first upstream similarity coefficient in the upstream similarity coefficient array can be expressed as: Among them, represents the first downstream similarity coefficient in the downstream similarity coefficient array, represents the first upstream similarity coefficient in the upstream similarity coefficient array; and respectively represent the first and second data in the downstream array, that is, the first data and the second data in the downstream array, and respectively represent the first and second data in the upstream array, that is, the first data and the second data in the upstream array; Compensate the delay time of the downstream time and the upstream time respectively based on the downstream similarity coefficient and the upstream similarity coefficient to obtain a new downstream delay time and a new upstream delay time. Compensating the delay time based on the downstream similarity coefficient and the upstream similarity coefficient includes: respectively calculating the average value of multiple coefficients in the downstream similarity coefficient and the upstream similarity coefficient to obtain an average downstream similarity coefficient and an average upstream similarity coefficient; Calculate the sound speed of the ultrasonic wave in the compensated medium based on the newly obtained downstream delay time and upstream delay time, and finally determine the flow velocity of the ultrasonic wave in the medium under steady state based on the obtained sound speed to complete the self-correction of the delay time.

2. The self - calibration method of the delay time under steady state for ultrasonic flow measurement according to claim 1, wherein When the data collected in the next cycle arrives, the first data in the queue will be kicked out, and the newly collected data will enter the queue.

3. The self - calibration method for the delay time under steady state of ultrasonic flow measurement according to claim 2, characterized in that, The first data is the first data that enters the queue among the existing data in the array.

4. The self - calibration method for delay time under steady state of ultrasonic flow measurement according to claim 1, wherein, Compensate the delay time of the downstream time and the upstream time respectively based on the obtained average downstream similarity coefficient and average upstream similarity coefficient to obtain a new downstream delay time and a new upstream delay time.

5. A method for self - correcting the delay time in a steady state of ultrasonic flow measurement according to claim 1, characterized in that, Combine the pipe diameter and the obtained flow velocity of the ultrasonic wave in the medium under steady state to determine the flow rate of the ultrasonic wave in the medium under steady state.

6. A delay time self-correction system under steady state of ultrasonic flow measurement, characterized in that, Including: An array construction module, configured to: obtain the downstream time and upstream time of multiple cycles of ultrasonic waves in the medium under steady state, and respectively form a downstream array and an upstream array with the obtained downstream time and upstream time of multiple cycles. Specifically, the array capacities of the downstream array and the upstream array are consistent with the number of cycles of the collected downstream time and upstream time; A delay time update module, configured to: perform similarity processing on the downstream array and the upstream array respectively to obtain a downstream similarity coefficient and an upstream similarity coefficient. The obtained similarity coefficient can be expressed as: Among them, represents a forward-flow similarity coefficient array composed of multiple forward-flow similarity coefficients, represents the i th data and the i+ first data in the forward-flow array corresponding to the forward-flow similarity coefficient; represents the number of forward-flow similarity coefficients included in the forward-flow similarity coefficient array, and its quantity is one less than the amount of data in the forward-flow array; and respectively represent the i th and the i+ first data in the forward-flow array; represents a reverse-flow similarity coefficient array composed of multiple reverse-flow similarity coefficients, represents the i th data and the i+ first data in the reverse-flow array corresponding to the reverse-flow similarity coefficient; represents the number of reverse-flow similarity coefficients included in the reverse-flow similarity coefficient array, and its quantity is one less than the amount of data in the reverse-flow array; and respectively represent the i th and the i+ first data in the reverse-flow array; Based on the above formula, a downstream similarity coefficient array composed of multiple downstream similarity coefficients and the specific representation of each downstream similarity coefficient in the downstream similarity coefficient array can be obtained. Based on the above formula, it can be known that the first downstream similarity coefficient in the downstream similarity coefficient array and the first upstream similarity coefficient in the upstream similarity coefficient array can be expressed as: Among them, represents the first downstream similarity coefficient in the downstream similarity coefficient array, represents the first upstream similarity coefficient in the upstream similarity coefficient array; and respectively represent the first and second data in the downstream array, that is, the first data and the second data in the downstream array, and respectively represent the first and second data in the upstream array, that is, the first data and the second data in the upstream array; Compensate the delay time of the downstream time and the upstream time respectively based on the downstream similarity coefficient and the upstream similarity coefficient to obtain a new downstream delay time and an upstream delay time. Compensating the delay time based on the downstream similarity coefficient and the upstream similarity coefficient includes: respectively calculating the average value of multiple coefficients in the downstream similarity coefficient and the upstream similarity coefficient to obtain a downstream average similarity coefficient and an upstream average similarity coefficient; A delay time self-correction module, configured to: calculate the sound velocity of the ultrasonic wave after compensation based on the newly obtained downstream delay time and upstream delay time, and finally determine the flow velocity of the ultrasonic wave in the medium under steady state based on the obtained sound velocity to complete the self-correction of the delay time.

7. A computer-readable storage medium having a program stored thereon, characterized in that, When the program is executed by a processor, it implements the steps in a method for self-correcting the delay time under steady state in ultrasonic flow measurement as described in any one of claims 1-5.

8. An electronic device, comprising a memory, a processor, and a program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps in a method for self-correcting the delay time under steady state in ultrasonic flow measurement as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Flowmeter metering temperature compensation method and ultrasonic flowmeter

    CN110906993A

  • Correction circuit and related signal processing circuit and chip

    CN110073176A

  • Ultrasonic flowmeter calibration method and system

    CN113624305A