CN114923531A - Threshold value self-adaptive adjusting method and ultrasonic metering device self-adaptive metering method - Google Patents

Threshold value self-adaptive adjusting method and ultrasonic metering device self-adaptive metering method Download PDF

Info

Publication number
CN114923531A
CN114923531A CN202210856618.2A CN202210856618A CN114923531A CN 114923531 A CN114923531 A CN 114923531A CN 202210856618 A CN202210856618 A CN 202210856618A CN 114923531 A CN114923531 A CN 114923531A
Authority
CN
China
Prior art keywords
threshold value
ultrasonic
flow
optimal threshold
metering device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210856618.2A
Other languages
Chinese (zh)
Other versions
CN114923531B (en
Inventor
刘勋
陈伟明
朱炼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Qianjia Technology Co Ltd
Original Assignee
Chengdu Qianjia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Qianjia Technology Co Ltd filed Critical Chengdu Qianjia Technology Co Ltd
Priority to CN202210856618.2A priority Critical patent/CN114923531B/en
Publication of CN114923531A publication Critical patent/CN114923531A/en
Application granted granted Critical
Publication of CN114923531B publication Critical patent/CN114923531B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F1/00Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow
    • G01F1/66Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by measuring frequency, phase shift or propagation time of electromagnetic or other waves, e.g. using ultrasonic flowmeters
    • G01F1/667Arrangements of transducers for ultrasonic flowmeters; Circuits for operating ultrasonic flowmeters
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F25/00Testing or calibration of apparatus for measuring volume, volume flow or liquid level or for metering by volume
    • G01F25/10Testing or calibration of apparatus for measuring volume, volume flow or liquid level or for metering by volume of flowmeters
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B30/00Energy efficient heating, ventilation or air conditioning [HVAC]
    • Y02B30/70Efficient control or regulation technologies, e.g. for control of refrigerant flow, motor or heating

Landscapes

  • Physics & Mathematics (AREA)
  • Fluid Mechanics (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Measuring Volume Flow (AREA)

Abstract

The invention relates to the technical field of ultrasonic waves, in particular to a threshold value self-adaptive adjusting method and an ultrasonic metering device self-adaptive metering method, wherein the threshold value self-adaptive adjusting method comprises the following steps: determining an initial optimal threshold value after the gain of the signal amplifier is determined; judging whether long-term interference exists, if so, adaptively adjusting the initial optimal threshold value, otherwise, keeping the initial optimal threshold value unchanged; the long-term disturbance means that the flow rate changes in the duration time interval T, and the flow rate is increased in steps
Figure 822181DEST_PATH_IMAGE001
Or the flow rate is decreased in steps
Figure 664235DEST_PATH_IMAGE002
Wherein N is a positive integer, N =1/2/3 ……,T c Is a pulse period of the ultrasonic wave,Lfor the length of the sound channel,c f is the speed at which the ultrasonic waves propagate in the fluid,
Figure 92068DEST_PATH_IMAGE003
is the channel angle. According to the scheme of the invention, the threshold value can be adaptively adjusted according to the situation, so that the metering precision of the ultrasonic metering device is improved.

Description

Threshold value self-adaptive adjusting method and ultrasonic metering device self-adaptive metering method
Technical Field
The invention relates to the technical field of ultrasonic measurement, in particular to a self-adaptive threshold value adjusting method and a self-adaptive measuring method of an ultrasonic measuring device.
Background
Ultrasonic wave measurement is a fluid measuring device which adopts the time method principle to measure the flow velocity of a fluid medium, and reflects the flow velocity of the fluid by measuring the forward and backward propagation time of an ultrasonic signal in the fluid. The working principle diagram is shown in fig. 1, the time of the ultrasonic wave in the forward flow direction and the reverse flow direction in the fluid medium is in direct proportion to the average flow velocity of the fuel gas, the fluid flow velocity is obtained by calculating the relationship between the propagation time and the propagation distance of the ultrasonic wave, and the flow velocity and the product of the sound channel and the cross section area of the gas meter pipeline can obtain the flow of the fuel gas. The relationship between the ultrasonic forward and backward travel times and the respective quantities is:
Figure 108059DEST_PATH_IMAGE002
(1)
Figure 602363DEST_PATH_IMAGE004
(2)
in the formula:t down t AB ) -the time of concurrent propagation of the ultrasonic wave in the fluid, in units of s;t up t BA ) -the time of the counter-current propagation of the ultrasonic waves in the fluid, in units of s;Lthe vocal tract length in m;c f -the speed of propagation of the ultrasonic waves in the fluid, known in the particular fluid, is given in m/s;v m -the axial average velocity of the fluid, in m/s;
Figure 788625DEST_PATH_IMAGE006
the track angle, in units. The average of the fluid can be calculated according to the formula (1) and the formula (2)The speed is as follows:
Figure 918255DEST_PATH_IMAGE008
Figure 47141DEST_PATH_IMAGE010
in order to reduce the error, the average value of the two is generally taken,
Figure 931921DEST_PATH_IMAGE012
(3)
in the formula c f Known in the particular fluid medium or as determined by equation (3) when the flow rate is zero. Namely that
Figure 746424DEST_PATH_IMAGE014
,
Figure 273221DEST_PATH_IMAGE016
In order to reduce the error, the average value of the above two values is generally taken
Figure 988105DEST_PATH_IMAGE018
According to the average velocity of gas in the closed conduit
Figure 840523DEST_PATH_IMAGE020
And cross-sectional area of the pipe
Figure DEST_PATH_IMAGE022AA
In relation, the instantaneous flow rate can be obtained.
Figure 530872DEST_PATH_IMAGE024
(4)
In the formula:
Figure 330201DEST_PATH_IMAGE026
the cross-sectional area of the pipe, in m 2
Figure 588007DEST_PATH_IMAGE028
Instantaneous flow, in m 3 /h。
Calculating t up 、t down Generally, the head wave (first wave) is selected as t up And t down The arrival time is substituted into equation (3) to calculate the flow rate. To calculate the bow wave, a detection threshold must be set, as shown in fig. 2. However, as shown in fig. 3, because the practical application environment is complex, various interference noises exist, some interference noises exist permanently, some interference noises occur accidentally, and in the long-term unsupervised use environment of the ultrasonic metering device, maintaining a fixed threshold value inevitably deteriorates the metering accuracy of the ultrasonic metering device. As also shown in fig. 4, since various measured media have attenuation effects on the transmission of ultrasonic waves, the threshold is too high, and head waves may not be detected, so that the determination of the threshold plays a decisive role in the detection of head waves and the accurate measurement of the ultrasonic measurement device.
Disclosure of Invention
The invention aims to improve the metering accuracy of an ultrasonic metering device in the using process, and provides a threshold value self-adaptive adjusting method for head wave detection of the ultrasonic metering device and a self-adaptive metering method of the ultrasonic metering device.
In order to achieve the above object, the embodiments of the present invention provide the following technical solutions:
a self-adaptive threshold value adjusting method comprises the following steps:
after the gain of the signal amplifier is determined, determining an initial optimal threshold value;
judging whether long-term interference exists, if so, adaptively adjusting the initial optimal threshold value to obtain a new optimal threshold value, otherwise, keeping the initial optimal threshold value unchanged;
the long-term disturbance means that the flow rate changes in the duration time interval T, and the flow rate is increased in steps
Figure 565321DEST_PATH_IMAGE030
Or the flow rate is decreased in steps
Figure 666001DEST_PATH_IMAGE032
Wherein N is a positive integer, N =1/2/3 … …, T c In order to be the ultrasonic pulse period,Lfor the length of the sound channel, it is,c f is the speed at which the ultrasonic waves propagate in the fluid,
Figure 987130DEST_PATH_IMAGE034
is the channel angle.
In the above scheme, the threshold value is not fixed and is adjusted adaptively according to the situation, so that the head wave determined based on the threshold value is more accurate, the measurement is more accurate according to the head wave, and the measurement precision of the ultrasonic measurement device is improved.
The step of determining an initial optimal threshold value comprises: at a flow velocity v m Under the condition of =0, an inlet and an outlet of the ultrasonic metering device are blocked, the threshold value is automatically adjusted from small to large, and in the process of gradually increasing the threshold value, when the threshold value is larger than noise, t is taken up 、t down When the mean square error of (d) is less than or equal to a set value, the corresponding threshold value is taken as th 1 Taking the threshold value corresponding to the first time as th 2 Setting an optimum threshold value th opt =(th 2 +th 1 )/2;t down The time for the ultrasonic wave to travel downstream in the fluid,t up the time of the ultrasonic wave propagating in the fluid in a countercurrent manner.
The step of adaptively adjusting the initial optimal threshold value includes:
for the condition that the ultrasonic metering device is allowed to be turned off but the turn-off time period is limited, the inlet and the outlet of the ultrasonic metering device are turned off in the turn-off allowing time period, the threshold value is adaptively adjusted according to the method for determining the initial optimal threshold value under the new zero flow speed condition and after the gain of the signal amplifier is determined, and a new optimal threshold value th opt
Alternatively, for ultrasonic metrologySetting the condition of not allowing to cut off, selecting the time period not metering at ordinary times according to the historical record flow information, after the gain of the signal amplifier is determined, adaptively adjusting the threshold value according to the method for determining the initial optimal threshold value, and finding out a new optimal threshold value th opt
Or, aiming at the condition that the ultrasonic metering device is allowed to be immediately turned off, firstly, the gain and the adjusting threshold value of the signal amplifier are synchronously adjusted from small to large, and the gain coefficient and th are obtained according to the characteristic that the flow rate slowly changes in a short time 1 ,th 1 Value of t up 、t down When the mean square error of the threshold is less than or equal to a set value, the corresponding threshold value is obtained; then, the gain is not changed, and the threshold value is continuously increased, if the flow rate is changed and the change step is
Figure 99443DEST_PATH_IMAGE036
Or
Figure 28084DEST_PATH_IMAGE038
Then, th 2 Taking the value as the flow velocity v m Setting the optimal threshold value th corresponding to the threshold value when the first change occurs opt =(th 2 +th 1 )/2。
Further comprising the steps of: when the signal-to-noise ratio increases the preset value, the threshold value is first reduced, and the optimal threshold value th is obtained according to the method for determining the initial optimal threshold value opt Then gradually reducing the gain of the signal amplifier until the original signal-to-noise ratio is restored.
The environmental noise is interference, the noise becomes large, the signal to noise ratio is reduced, the amplification factor of the signal amplifying amplifier is increased, the signal gain is improved, the signal to noise ratio is improved, and meanwhile, the power consumption is increased. When the environmental noise becomes small, the signal-to-noise ratio becomes large, and it is not necessary to maintain high signal gain and high power consumption. According to the scheme, the signal gain is reduced after the signal-to-noise ratio is increased to the preset value, so that the power consumption is reduced, and the electric energy is saved.
An adaptive metering method of an ultrasonic metering device comprises the following steps:
determining an optimal threshold value according to the threshold value self-adaptive adjusting method in any embodiment;
determining a head wave according to the determined optimal threshold value, and determining t according to the head wave up And t down The arrival time of (c);
the flow rate q is calculated according to the following formula:
Figure 491427DEST_PATH_IMAGE040
Figure 117711DEST_PATH_IMAGE042
Figure 209164DEST_PATH_IMAGE044
wherein, in the step (A),t down the time for the ultrasonic wave to travel downstream in the fluid,t up the time for the ultrasonic wave to travel in the fluid in a countercurrent manner,Lfor the length of the sound channel,c f is the speed at which the ultrasonic waves propagate in the fluid,v m is the average velocity in the axial direction of the fluid,
Figure 715232DEST_PATH_IMAGE046
for the vocal tract angle, the angle of the vocal tract,
Figure 980384DEST_PATH_IMAGE048
is the cross-sectional area of the pipe.
And under the condition that long-term interference exists and the ultrasonic metering device is allowed to be immediately turned off, the metering of the time of the long-term interference is removed, and the flow data in the same period of the last year is taken as the flow statistic value of the time of the long-term interference.
And under the condition that long-term interference does not exist, removing the measurement of the time of the interference, and taking the flow data in the same period of the last year as the flow statistic value of the time of the interference.
Compared with the prior art, the invention has the following beneficial effects: in the scheme of the invention, the ultrasonic metering device can automatically identify and judge long-term or non-long-term interference, and self-adaptively adjust the threshold value to eliminate and weaken the adverse effects, so that the ultrasonic metering device automatically, stably and reliably works for a long time according to the set metering precision without manual intervention.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a working principle diagram of an ultrasonic gas meter.
Fig. 2 is a schematic diagram of determining a head wave through a threshold value under an ideal application environment.
Fig. 3 is a schematic diagram of determining a head wave through a threshold value in a practical application environment.
FIG. 4 is a schematic representation of the expression of the bow wave when the threshold value is too high.
Fig. 5 is a flowchart of a threshold value adaptive adjustment method for head wave detection of an ultrasonic metering device provided in an embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 5, in the adaptive threshold value adjusting method provided in this embodiment, the threshold value is mainly used for head wave detection of the ultrasonic metering device. The method comprises the following steps:
s1, after the gain of the signal amplifier is determined, an initial optimum threshold value is determined.
The ultrasonic metering device starts to work at a static flow velocity v when being installed in a working environment m Condition of =0 (flow rate v) m =0, the flow is zero and is smaller than the minimum flow and the start flow of the ultrasonic metering device), the inlet and the outlet of the ultrasonic metering device are blocked, the threshold value is automatically adjusted from small to large, and the threshold value th is smaller than noise at the beginning, so that the measured t is up 、t down (t up 、t down See formulas (1) and (2) in the background art) are not accurate, v m Is also randomly varied; continue to increase the threshold value, when the threshold value th 1 When the value is larger than the noise, a more stable t is obtained up 、t down Get t up 、t down Initial stabilization (initial stabilization means: t) up 、t down The rate of change in the set time is less than the set value, for example, by + -2%, or defined as t up 、t down Mean square error of (d) is less than or equal to a set value) as th 1 (ii) a Continue to increase the threshold value, t up 、t down Are more and more stable; continue to increase the threshold value th 2 (th 2 The threshold value corresponding to the second wave just found) is obtained, and t is found although the second wave is found because the amplitude of the head wave is exceeded up And t down One period of the transmitted wave signal is increased, which is known, so that for best operation an optimum threshold value th is set opt =(th 2 +th 1 )/2. After adjusting well opt Then, the metering system of the ultrasonic metering device can work normally, namely, the metering is accurately carried out according to the formula in the background technology.
And S2, judging whether long-term interference exists or not, and if so, adaptively adjusting the optimal threshold value.
When the environment of the metering system is suddenly changed, the environmentThe noise becomes large and at the previous optimum threshold value, which may lead to a failure to find a stable head wave, the flow velocity v m It will vary strongly (the effect of random noise is superimposed over one or more signal periods) and the burst size (while the actual flow value is slowly varying). At this time, a time interval T is set, and if this time interval is exceeded, the flow rate v is set m And the threshold value is not smoothed, and at the moment, the long-term interference is considered to be met, the normal metering cannot be carried out, and the optimal threshold value needs to be adjusted.
That is, during use, through the flow velocity v m Whether long-term interference exists is judged according to the change condition of the flow velocity v m And (4) judging that long-term interference exists if the outburst is large and small and the continuously set time interval T is not flat, otherwise, judging that the long-term interference does not exist. Here, if the flow rate is varied in steps of
Figure 456365DEST_PATH_IMAGE050
Or
Figure 356319DEST_PATH_IMAGE052
Then consider the flow bump size, where N is a positive integer, N =1/2/3 … …, T c Is a pulse period of the ultrasonic wave,Lfor the length of the sound channel,c f is the speed at which the ultrasonic waves propagate in the fluid,
Figure 33288DEST_PATH_IMAGE054
is the channel angle. That is, a long-term disturbance means that the flow rate varies over the duration of time interval T and that the flow rate increases in steps of magnitude
Figure 267960DEST_PATH_IMAGE056
Or the flow rate is decreased in steps
Figure DEST_PATH_IMAGE058
When it is determined that long-term interference exists, in the present embodiment, 3 measures are proposed to adaptively adjust the optimal threshold value for different situations.
The first measure is as follows: when the ultrasonic metering is allowed to be turned off (namely, the ultrasonic metering is not an application occasion such as large-flow metering or key metering, 24-hour uninterrupted metering is not needed every year for 365 days, and temporary stop can be carried out by button or network setting) but the turning-off time interval is limited, the valve is turned off (the inlet and the outlet are turned off) in the turning-off allowed time interval, the automatic gain of the receiving signal amplifier is adjusted and the threshold value is adjusted in an adaptive manner under the condition of new zero flow, and a new optimal threshold value th is found opt . The way to find the new optimal threshold value here is to determine the optimal threshold value th according to the method in step S1 opt
The second measure is as follows: when the ultrasonic measurement is not allowed to be switched off, the quality of the signal (whether the quality of the signal is relatively stable or not and the situation of large and small protrusions does not occur) and t are continuously detected up 、t down Combining the clock of the ultrasonic metering device, selecting the time period not to be metered normally (that is, searching the optimal threshold value until the time period not to be metered normally) according to the historical flow information, wherein the flow velocity v is m Close to zero, the automatic gain of the receiving signal amplifier is adjusted and the threshold value is adjusted adaptively to find out a new optimal threshold value th opt . The way to find the new optimal threshold value here is to determine the optimal threshold value th according to the method in step S1 opt
The third measure is as follows: the threshold value and the amplifier gain are adjusted immediately for the case where the ultrasonic meter device is allowed to be turned off immediately. Firstly, synchronously adjusting the gain of the amplifier and the threshold value, adjusting from small to large (here, the original optimal threshold value is abandoned, and the adjustment is started from the minimum value of the gain of the amplifier and the threshold gain), and obtaining a gain coefficient and th according to the characteristic that the flow is not changed violently (slowly) in a short time 1 (t up 、t down The mean square error of the flow rate is less than or equal to a set value), then the gain is not changed, the threshold value is continuously increased, if the flow rate is changed and the change step length is
Figure DEST_PATH_IMAGE060
Or
Figure DEST_PATH_IMAGE062
Then, th 2 Taking the value as the flow velocity v m Setting the optimal threshold value th corresponding to the threshold value when the first change occurs opt =(th 2 +th 1 )/2. Meanwhile, according to historical flow record information, flow estimation and measurement in the period of failure are carried out, and loss is further reduced. As a simplest implementation, the flow estimation is to take historical flow data of a same time period, for example, a same season, a same month, a same date in the last year, as a flow statistic.
The signal amplifier amplifies a useful signal, increases the signal-to-noise ratio to make the signal larger than noise, and then the threshold value can be adjusted, so that the gain of the signal amplifier also needs to be adjusted in a self-adaptive manner when the threshold value is adjusted in a self-adaptive manner.
If the interference is not long-term interference, the optimal threshold value is not adjusted, but the energy calculation adopts historical data for estimation, namely the measurement of the interference period can be removed, and the flow estimation measurement of the interference period is carried out according to the historical measurement data (because the time is short, the accumulated measurement is not influenced), for example, the flow data in the same period of the last year is taken as the flow statistic value of the interference period.
In order to save power consumption, when the environmental noise becomes smaller, the amplification gain of the signal amplifier needs to be adjusted smaller. For this purpose, the ultrasonic meter is periodically timed to a flow velocity v based on a clock and historical flow data m And when the signal is zero or small (smaller than a set value), the gain of the signal amplifier is automatically adjusted. First, the threshold is decreased to obtain the optimal threshold th opt (combining the clock of the ultrasonic metering device, selecting the non-metering time interval for adjustment according to the historical flow rate information, and adopting the method in the step S1), and gradually reducing the automatic gain until t of the ultrasonic metering device up 、t down The gain at this time is the minimum operating gain until the two variables cannot maintain a stable relationship. But to resist drynessThe interference needs to increase a safety value (i.e. a certain redundancy is left), for example, the gain is gradually reduced until the original signal-to-noise ratio is restored. As one implementation, the environmental noise becomes smaller according to the increase of the snr by a preset value, for example, 5%.
After the threshold value is adaptively adjusted, the metering method of the ultrasonic metering device can also be adaptively adjusted, and adaptive metering is realized. It can be understood that, in this embodiment, an adaptive metering method for an ultrasonic metering device is also provided, which includes the steps of:
step 1, determining an optimal threshold value according to the method;
step 2, determining a head wave according to the determined optimal threshold value, and determining t according to the head wave up And t down The arrival time of (c);
step 3, calculating the flow q according to the following formula:
Figure DEST_PATH_IMAGE064
Figure DEST_PATH_IMAGE066
Figure DEST_PATH_IMAGE068
wherein, in the step (A),t down the time for the ultrasonic wave to travel downstream in the fluid,t up the time for the ultrasonic wave to travel in the fluid in a countercurrent manner,Lfor the length of the sound channel,c f is the speed at which the ultrasonic waves propagate in the fluid,v m is the average velocity in the axial direction of the fluid,
Figure DEST_PATH_IMAGE070
in order to be the vocal tract angle,
Figure DEST_PATH_IMAGE072
is the cross-sectional area of the pipe.
It should be noted that, in the case where there is a long-term disturbance and the ultrasonic metering device is turned off immediately during operation, and in the case where there is no long-term disturbance, it is preferable to remove the measurement during the period of disturbance, and perform the flow estimation measurement during the period of time based on the historical flow record information, for example, taking the flow data during the same period as the previous year as the flow statistic value during the period of time. And in other cases, metering is carried out according to the mode of the step 3.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (7)

1. A threshold value self-adaptive adjusting method is characterized by comprising the following steps:
determining an initial optimal threshold value after the gain of the signal amplifier is determined;
judging whether long-term interference exists, if so, adaptively adjusting the initial optimal threshold value to obtain a new optimal threshold value, otherwise, keeping the initial optimal threshold value unchanged;
the long-term disturbance means that the flow rate changes in the duration time interval T, and the flow rate is increased in steps
Figure 261026DEST_PATH_IMAGE002
Or the decreasing step of the flow rate is
Figure 592650DEST_PATH_IMAGE004
Wherein N is a positive integer, N =1/2/3 … …, T c Is a pulse period of the ultrasonic wave,Lfor the length of the sound channel, it is,c f is the speed at which the ultrasonic waves propagate in the fluid,
Figure DEST_PATH_IMAGE006
is the channel angle.
2. The method of claim 1, wherein the step of determining an initial optimal threshold comprises:
at a flow velocity v m In the condition of =0, an inlet and an outlet of the ultrasonic metering device are blocked, the threshold value is automatically adjusted from small to large, and in the process of gradually increasing the threshold value, t is taken when the threshold value is larger than noise up 、t down When the mean square error of (d) is less than or equal to a set value, the corresponding threshold value is taken as th 1 Taking the threshold value corresponding to the first time as th 2 Setting an optimum threshold value th opt =(th 2 +th 1 )/2;t down The time for the ultrasonic wave to travel downstream in the fluid,t up the time of the ultrasonic wave propagating in the fluid in a countercurrent manner.
3. The method as claimed in claim 2, wherein the step of adaptively adjusting the initial optimal threshold comprises:
for the condition that the ultrasonic metering device is allowed to be turned off but the turn-off time period is limited, the inlet and the outlet of the ultrasonic metering device are turned off in the turn-off allowing time period, the threshold value is adaptively adjusted according to the method for determining the initial optimal threshold value under the new zero flow speed condition and after the gain of the signal amplifier is determined, and a new optimal threshold value th opt
Or, aiming at the condition that the ultrasonic metering device is not allowed to be turned off, selecting the time period which is not metered normally according to the historical record flow information, after the gain of the signal amplifier is determined, adaptively adjusting the threshold value according to the method for determining the initial optimal threshold value, and finding out a new optimal threshold value th opt
Or, aiming at the condition that the ultrasonic metering device is allowed to be immediately turned off, firstly, the gain and the adjusting threshold value of the signal amplifier are synchronously adjusted from small to large, and the gain coefficient and th are obtained according to the characteristic that the flow rate slowly changes in a short time 1 ,th 1 Value of t up 、t down All areWhen the variance is less than or equal to a set value, a corresponding threshold value is obtained; then, the gain is not changed, and the threshold value is continuously increased, if the flow rate is changed and the step length of the change is
Figure DEST_PATH_IMAGE008
Or
Figure DEST_PATH_IMAGE010
Then, th is 2 Taking the value as the flow velocity v m Setting the optimal threshold value th corresponding to the threshold value when the first change occurs opt =(th 2 +th 1 )/2。
4. The adaptive threshold value adjusting method according to any one of claims 2-3, further comprising the steps of: when the signal-to-noise ratio increases the preset value, the threshold value is first reduced, and the optimal threshold value th is obtained according to the method for determining the initial optimal threshold value opt Then gradually reducing the gain of the signal amplifier until the original signal-to-noise ratio is restored.
5. An adaptive metering method of an ultrasonic metering device is characterized by comprising the following steps:
determining an optimal threshold value according to the method of any of claims 1-4;
determining a head wave according to the determined optimal threshold value, and determining t according to the head wave up And t down The arrival time of (c);
the flow rate q is calculated according to the following formula:
Figure DEST_PATH_IMAGE012
Figure DEST_PATH_IMAGE014
Figure DEST_PATH_IMAGE016
wherein, in the step (A),t down is ultrasonic wave atThe time of forward flow propagation in the fluid,t up the time for the ultrasonic wave to travel in the fluid in a countercurrent manner,Lfor the length of the sound channel,c f is the speed at which the ultrasonic waves propagate in the fluid,v m is the average velocity in the axial direction of the fluid,
Figure DEST_PATH_IMAGE018
in order to be the vocal tract angle,
Figure DEST_PATH_IMAGE020
is the cross-sectional area of the pipe.
6. The adaptive metering method of the ultrasonic metering device according to claim 5, wherein in the case where the ultrasonic metering device is allowed to be immediately turned off in the presence of the long-term interference, the metering of the time period of the long-term interference is removed, and the flow data of the same period of the previous year is taken as the flow statistic value of the time period of the long-term interference.
7. The adaptive flow measurement method for the ultrasonic flow meter according to claim 5, wherein, in the absence of long-term interference, the flow data of the period of time during which interference is removed is taken as the flow statistical value of the period of time during which interference is caused.
CN202210856618.2A 2022-07-21 2022-07-21 Threshold value self-adaptive adjusting method and ultrasonic metering device self-adaptive metering method Active CN114923531B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210856618.2A CN114923531B (en) 2022-07-21 2022-07-21 Threshold value self-adaptive adjusting method and ultrasonic metering device self-adaptive metering method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210856618.2A CN114923531B (en) 2022-07-21 2022-07-21 Threshold value self-adaptive adjusting method and ultrasonic metering device self-adaptive metering method

Publications (2)

Publication Number Publication Date
CN114923531A true CN114923531A (en) 2022-08-19
CN114923531B CN114923531B (en) 2022-10-11

Family

ID=82816284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210856618.2A Active CN114923531B (en) 2022-07-21 2022-07-21 Threshold value self-adaptive adjusting method and ultrasonic metering device self-adaptive metering method

Country Status (1)

Country Link
CN (1) CN114923531B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102612A (en) * 2022-08-29 2022-09-23 成都星联芯通科技有限公司 Gain control method and device, gain controller and signal receiving end
CN115655396A (en) * 2022-12-26 2023-01-31 水发航宇星物联科技(辽宁)有限公司 Ultrasonic wave fault wave prevention method and ultrasonic wave fluid detection device
CN117168583A (en) * 2023-10-31 2023-12-05 成都千嘉科技股份有限公司 Zero-crossing detection method and detection device for gas meter

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10142019A (en) * 1996-11-13 1998-05-29 Aichi Tokei Denki Co Ltd Ultrasonic flowmeter
JP2001317975A (en) * 2000-05-10 2001-11-16 Kansai Gas Meter Co Ltd Method and apparatus for ultrasonic flow velocity measurement
US20020078760A1 (en) * 2000-12-27 2002-06-27 Surpass Industry Co., Ltd. Flow rate measurement method, ultrasonic flow rate meter, flow velocity measurement method, temperature or pressure measurement method, ultrasonic thermometer and ultrasonioc pressure gage
JP2003194603A (en) * 2001-12-25 2003-07-09 Nissan Motor Co Ltd Flow sensor
US20040020307A1 (en) * 2002-08-05 2004-02-05 Osamu Eguchi Flow meter
JP2005009893A (en) * 2003-06-16 2005-01-13 Nissan Motor Co Ltd Ultrasonic fluid measuring device
US20050072248A1 (en) * 2002-11-26 2005-04-07 Takehiko Suginouchi Ultrasonic flowmeter and ultrasonic flow rate measuring method
JP2007240220A (en) * 2006-03-07 2007-09-20 Nissan Motor Co Ltd Ultrasonic fluid measuring apparatus
CN101363746A (en) * 2008-09-19 2009-02-11 浙江大学 Fluid vibration type effusion meter self-adapting FFT power spectrum analysis and signal processing method
CN101886939A (en) * 2010-06-10 2010-11-17 宁波大学 Inhibition model and inhibition method for static drift of time difference ultrasonic flowmeter
CN102109366A (en) * 2010-12-13 2011-06-29 浦瑞斯仪表(上海)有限公司 Multi-frequency pulse digital width adjustment constant current source for electromagnetic flow meter
JP2012026822A (en) * 2010-07-22 2012-02-09 Panasonic Corp Gas shut-off device
CN103344288A (en) * 2013-06-25 2013-10-09 国家电网公司 Time difference type ultrasonic flowmeter measuring method based on zero point analysis
JP2013210313A (en) * 2012-03-30 2013-10-10 Tokiko Techno Kk Ultrasonic flowmeter
JP2014224684A (en) * 2013-05-15 2014-12-04 パナソニック株式会社 Flow rate measuring device
CN105091970A (en) * 2015-08-07 2015-11-25 北京控制工程研究所 Dynamic compensation method for ultrasonic flow meter
CN105716674A (en) * 2016-04-20 2016-06-29 成都千嘉科技有限公司 Ultrasonic flow meter and ultrasound sending time correction method and system thereof
CN108387278A (en) * 2018-02-09 2018-08-10 杭州山科智能科技股份有限公司 A kind of window time automatic adjusting method of ultrasound echo signal
FR3065524A1 (en) * 2017-04-25 2018-10-26 Sagemcom Energy & Telecom Sas METHOD FOR MEASURING A SPEED OF A FLUID
CN109405905A (en) * 2018-12-13 2019-03-01 苏州东剑智能科技有限公司 Multichannel ultrasonoscope measuring device and its metering method
US20190078918A1 (en) * 2016-03-29 2019-03-14 Panasonic Intellectual Property Management Co., Ltd. Flow rate measurement device
JP2020118553A (en) * 2019-01-24 2020-08-06 株式会社鷺宮製作所 Ultrasonic flowmeter, fluid circulation device, and flow rate measurement method

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10142019A (en) * 1996-11-13 1998-05-29 Aichi Tokei Denki Co Ltd Ultrasonic flowmeter
JP2001317975A (en) * 2000-05-10 2001-11-16 Kansai Gas Meter Co Ltd Method and apparatus for ultrasonic flow velocity measurement
US20020078760A1 (en) * 2000-12-27 2002-06-27 Surpass Industry Co., Ltd. Flow rate measurement method, ultrasonic flow rate meter, flow velocity measurement method, temperature or pressure measurement method, ultrasonic thermometer and ultrasonioc pressure gage
JP2003194603A (en) * 2001-12-25 2003-07-09 Nissan Motor Co Ltd Flow sensor
US20040020307A1 (en) * 2002-08-05 2004-02-05 Osamu Eguchi Flow meter
US20050072248A1 (en) * 2002-11-26 2005-04-07 Takehiko Suginouchi Ultrasonic flowmeter and ultrasonic flow rate measuring method
JP2005009893A (en) * 2003-06-16 2005-01-13 Nissan Motor Co Ltd Ultrasonic fluid measuring device
JP2007240220A (en) * 2006-03-07 2007-09-20 Nissan Motor Co Ltd Ultrasonic fluid measuring apparatus
CN101363746A (en) * 2008-09-19 2009-02-11 浙江大学 Fluid vibration type effusion meter self-adapting FFT power spectrum analysis and signal processing method
CN101886939A (en) * 2010-06-10 2010-11-17 宁波大学 Inhibition model and inhibition method for static drift of time difference ultrasonic flowmeter
JP2012026822A (en) * 2010-07-22 2012-02-09 Panasonic Corp Gas shut-off device
CN102109366A (en) * 2010-12-13 2011-06-29 浦瑞斯仪表(上海)有限公司 Multi-frequency pulse digital width adjustment constant current source for electromagnetic flow meter
JP2013210313A (en) * 2012-03-30 2013-10-10 Tokiko Techno Kk Ultrasonic flowmeter
JP2014224684A (en) * 2013-05-15 2014-12-04 パナソニック株式会社 Flow rate measuring device
CN103344288A (en) * 2013-06-25 2013-10-09 国家电网公司 Time difference type ultrasonic flowmeter measuring method based on zero point analysis
CN105091970A (en) * 2015-08-07 2015-11-25 北京控制工程研究所 Dynamic compensation method for ultrasonic flow meter
US20190078918A1 (en) * 2016-03-29 2019-03-14 Panasonic Intellectual Property Management Co., Ltd. Flow rate measurement device
CN105716674A (en) * 2016-04-20 2016-06-29 成都千嘉科技有限公司 Ultrasonic flow meter and ultrasound sending time correction method and system thereof
FR3065524A1 (en) * 2017-04-25 2018-10-26 Sagemcom Energy & Telecom Sas METHOD FOR MEASURING A SPEED OF A FLUID
CN108387278A (en) * 2018-02-09 2018-08-10 杭州山科智能科技股份有限公司 A kind of window time automatic adjusting method of ultrasound echo signal
CN109405905A (en) * 2018-12-13 2019-03-01 苏州东剑智能科技有限公司 Multichannel ultrasonoscope measuring device and its metering method
JP2020118553A (en) * 2019-01-24 2020-08-06 株式会社鷺宮製作所 Ultrasonic flowmeter, fluid circulation device, and flow rate measurement method

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
LI, WEIHUA: "Double threshold ultrasonic distance measurement technique and its application", 《REVIEW OF SCIENTIFIC INSTRUMENTS》 *
李冬: "基于流场和声场耦合的超声流量测量技术研究", 《中国博士学位论文全文数据库 工程科技Ⅱ辑》 *
陈武新等: "调节阀高频噪声对超声波计量的影响与对策", 《油气储运》 *
陈洁等: "基于双阈值比较法超声波流量计信号处理", 《电子测量与仪器学报》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102612A (en) * 2022-08-29 2022-09-23 成都星联芯通科技有限公司 Gain control method and device, gain controller and signal receiving end
CN115655396A (en) * 2022-12-26 2023-01-31 水发航宇星物联科技(辽宁)有限公司 Ultrasonic wave fault wave prevention method and ultrasonic wave fluid detection device
CN117168583A (en) * 2023-10-31 2023-12-05 成都千嘉科技股份有限公司 Zero-crossing detection method and detection device for gas meter
CN117168583B (en) * 2023-10-31 2024-01-23 成都千嘉科技股份有限公司 Zero-crossing detection method and detection device for gas meter

Also Published As

Publication number Publication date
CN114923531B (en) 2022-10-11

Similar Documents

Publication Publication Date Title
CN114923531B (en) Threshold value self-adaptive adjusting method and ultrasonic metering device self-adaptive metering method
CN112304375B (en) Ultrasonic flow sensor and flow measurement method thereof
US8154818B2 (en) Systems and methods for adaptive CBD estimation in a storage device
JP5861276B2 (en) Adaptive on-tool mass flow controller adjustment
WO2004048902A1 (en) Ultrasonic flowmeter and ultrasonic flow rate measuring method
CN104089186A (en) Pipe pressure anomaly diagnostic method based on combined filtering and dynamic thresholds
CN111323101B (en) Self-adaptive automatic calibration method for ultrasonic meter
JP2011145289A (en) Flow rate measuring device
Dane Ultrasonic measurement of unsteady gas flow
US4556018A (en) Steam boiler
WO2014006881A1 (en) Flow quantity measuring apparatus
JP2007017157A5 (en)
JP4082246B2 (en) Flowmeter
JP2006343292A (en) Ultrasonic flowmeter
CN114459576B (en) Control method of signal diagnosis device applied to ultrasonic water meter
WO2017168480A1 (en) Flow rate measurement device
CN109470890B (en) Dynamic monitoring correction algorithm of ultrasonic instrument
JP4930001B2 (en) Gas meter device
GB2619856A (en) Dual leg aftertreatment system
JP4379680B2 (en) Pressure guiding tube blockage detection device
CN103792384A (en) Fluid flow velocity measurement method with adjustable measuring range ratio based on ultrasonic cross-correlation technology
JP4689278B2 (en) Flow velocity or flow rate measuring device
JP2006133156A (en) Gas safety device
CN111157066A (en) Gas ultrasonic flowmeter transit time calculation method based on first envelope contact ratio
CN117705206A (en) Ultrasonic electronic gas meter

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