The invention described and claimed hereinbelow is also Described in German Patent Application DE 10 2005 004 331.3 filed on Jan. 31, 2005. This German Patent Application provides the basis for a claim of priority of invention under 35 U.S.C. 119(a)-(d).
The present invention relates to a method for determining the transit time of an ultrasonic signal from an ultrasonic flow sensor, and to an ultrasonic flow senor.
Ultrasonic flow sensors are used, in particular, to measure the volume flow, mass flow, or the flow rate of a gaseous or liquid medium flowing through a pipeline. A known type of ultrasonic flow sensor includes two ultrasonic converters located such that they are offset in the direction of flow, each of which generates ultrasonic signals and transmits them to the other ultrasonic converter. The ultrasonic signals are received by the other converter and are evaluated using electronics. The difference between the transit time of the signal in the direction of flow and the transit time of the signal in the opposite direction is a measure of the flow rate of the fluid.
To measure the transit time of an ultrasonic signal 15, it is essential that the instant of receipt of ultrasonic signal 15 be determined unequivocally and exactly. Different events can be defined as the instant of receipt of an ultrasonic signal. It is known from the related art, e.g., to define the first zero crossing N0 of ultrasonic signal 15 after the signal amplitude has exceeded a specified threshold as the “instant of receipt”. As an alternative, e.g., the instant at which the maximum amplitude or centroid ts of envelope 16 of ultrasonic signals 15 occurs can be defined as the instant of receipt. It is also known to determine the transit time of ultrasonic signal 15 by evaluating the phase of the signal relative to reference timing signal 8. Conventional methods for determining transit time are typically relatively complex or they are not sufficiently robust against interfering signals.
The object of the present invention, therefore, is to provide a method for determining the transit time of an ultrasonic signal in an ultrasonic flow sensor, and to provide an ultrasonic flow sensor with a special signal evaluation that is particularly easy to realize and is highly robust against interferences.
One of the main ideas behind the present invention is to determine the phase angle (Δφ) of an ultrasonic signal relative to a reference timing signal using a quadrature demodulation scheme, to calculate the remaining transit time for the ultrasonic signal based on the phase angle (Δφ), and to calculate a remainder (r(t)), which is a whole-number multiple of 2 pi. To determine the phase angle (Δφ), the ultrasonic signal is inverted in a segmented manner using a timing signal and a phase-shifted timing signal. The signals that have been inverted in a segmented manner are then preferably integrated or filtered, and the phase angle (Δφ) is determined using a trigonometric calculation. The remainder (r(t)) is determined, according to the present invention, based on a specified reception event of the ultrasonic signal, e.g., the instant of receipt of the centroid of an envelope. A particular advantage of quadrature demodulation is that this technique serves as a particularly narrow-banded filter against interfering signals, but without resulting in a phase shift of the signal. Conventional band-pass filtering with RC elements would cause, e.g., a phase shift, which would drift with temperature. This could potentially result in errors in the transit time measurement. Despite the extraordinary robustness of the quadrature demodulation scheme against interfering signals, the amount of hardware required therefor is relatively small compared to methods that are equally robust, e.g., cross correlation.
The reception event of the ultrasonic signal, based on which the remainder (n·2 pi) is ultimately calculated, is preferably a quantity of the ultrasonic signal that is independent of the signal amplitude, e.g., the centroid of the received ultrasonic signal, the centroid of an envelope of the signal, or the point in time of another quantity that is independent of the signal amplitude. This has the advantage that the instant of receipt does not shift at different signal amplitudes.
According to a preferred embodiment of the present invention, the remainder (r(t)=n·2 pi) is determined based on the centroid of an envelope of the ultrasonic signal.
The remainder r(t) is preferably calculated as a function of the reception event (ts), the phase angle (Δφ), and an offset value (t0), i.e.: r(t)=f(ts, Δφ, t0).
The function f preferably includes a rounding function (e.g., “round”), which rounds a value to the next whole number.
According to a preferred embodiment of the present invention, the evaluation unit calculates a scattering parameter that indicates the extent of the rounding. The transit time calculation is particularly exact and robust when this scattering parameter is as small as possible. According to the present invention, it is therefore provided to regulate the scattering parameter to small values and to therefore adjust the offset value (t0) accordingly. The offset value (t0) is preferably varied when the absolute value of the scattering parameter—on average over time—exceeds a specified threshold.
The mean over time of the value of the scattering parameter (s) is preferably calculated within the framework of the scattering parameter regulation. As an alternative or in addition thereto, the mean over time of the scattering parameter (s) can be calculated.
The ultrasonic signals that were inverted using the reference timing signal or the phase-shifted reference timing signal are preferably sent to an integrator, which integrates the signal over several phases, preferably over the entire duration of the ultrasonic signal. The phase angle (Δφ) is then preferably determined based on the output signals from the integrators. A filtering circuit can be provided in place of the integrators.
The ultrasonic signals, which are inverted in a segmented manner, are preferably also sent to a second pair of integrators, which integrate the signals over a period of the reference timing signal. Based on the output signals from these integrators, an envelope is preferably calculated, the centroid (ts) of which represents the instant of receipt of the ultrasonic signal.
The ultrasonic flow sensor designed according to the present invention, with which the transit time of the ultrasonic sensors is calculated based on the phase angle (Δφ) of a received signal relative to a reference timing signal, and with which a remainder (r(t)) is calculated, includes at least one ultrasonic converter for transmitting and/or receiving ultrasonic signals, an oscillator connected with the ultrasonic converter, which generates a timing signal, and a control and evaluation unit. According to the present invention, the evaluation unit includes a device (a circuit or software) that determines the phase angle (Δφ) of the ultrasonic signal using the quadrature demodulation scheme—according to which a received ultrasonic signal with the frequency of the timing signal or a timing signal shifted by pi/2 is inverted in a segmented manner—and a device (a circuit or software) that determines a reception event, e.g., the centroid of an envelope, and, based on this, calculates the remainder (r(t)).
The control and evaluation unit is also designed such that one or more of the aforementioned functions can be carried out.
The invention is explained in greater detail below with reference to the attached drawing.
a shows a diagram that depicts the calculation of the phase angle
b shows the graph of output signals from the integrators in
c shows the graph of an envelope calculated based on the ultrasonic signal;
Transit time t of an ultrasonic signal 15 can also be depicted as a phase, i.e.:
t˜n·2pi+Δφ
or
t˜r(t)+Δφ
Here, Δφ is the phase angle of received ultrasonic signal 15 relative to a reference timing signal 8, and n·2 pi and r(t) are the remainder of the entire phase; n is the number of complete wave trains within transit time t.
In this case, phase angle Δφ is determined with the quadrature demodulation scheme using two integrators 12, 13. (The quadrature demodulation scheme could also be realized, as an alternative and in an analogous manner, e.g., using inverting or non-inverting amplifiers.) The remainder (r(t)) is calculated based on a quantity that characterizes ultrasonic signal 15, e.g., the instant of receipt of the centroid of envelope 16.
To determine phase angle Δφ, electronics 4 include an A/D converter 14, which which received signal 15 is digitized, and additional elements 10-13, which are explained below. The digitized received signal is divided into two signal paths and, depending on the state of a reference timing signal 8 or a reference timing signal 9 shifted by pi/2 (90°) phases, it is forwarded unchanged or it is inverted. The digitized received signal is forwarded unchanged, e.g., in the “high” state, and it is inverted in the “low” state. Reference timing signal 8 and timing signal 9 shifted by pi/2 are generated by a unit 20 based on oscillator timing signal 8. Forwarding digitized received signal 15 unchanged or inverting it corresponds to multiplication by +1 and −1. The associated signal operation is therefore depicted using two multipliers 10, 11.
The signals, which are inverted in a segmented manner, are then sent to two downstream integrators 12 and 13, which integrate the signals over their entire signal duration. (Low-pass filtering could be used instead of integration.)
The two integral values u1 and u2 represent components of a vector u, the angle of which in the coordinate system is phase angle Δφ.
b shows the integration over time for an ultrasonic signal 15. Phase angle Δφ can be calculated based on the final values u1, u2 using a trigonometric function, e.g., arctan (u1/u2) or atan 2 (u1, u2). The following relationship is preferably used:
Δφ=atan 2 (u1, u2)
This function is not unequivocal and is periodically modulo 2 pi.
Remainder (r(t)=n·2 pi, with n being a whole number) is calculated based on centroid ts of envelope of ultrasonic signal 15. (Another quantity that is independent of the signal amplitude could also be used). To this end, the signals—which have been digitized and inverted in a segmented manner—are sent to an integrator 18 or 19, and they are integrated over one period of reference timing signal 8. Every period is integrated individually, starting at zero. Output signals u1′ (i) and u2′ (i) result in envelope 17 shown in
Using envelope 17, centroid ts is now determined, as the characteristic instant. Characteristic instant ts is a rough measure of the total transit time tmes of the ultrasonic signal. The following equation, e.g., can be used for centroid ts:
where h(i)=u1′(i)2+u2′(i)2. To reduce the number of computational steps (u1, u2) and to over-proportionally weight greater signal amplitudes, the squared envelope h(i) is used instead of the envelope.
Due to the modulo 2 pi ambiguity of phase angle Δφ=atan 2 (u1, u2) mentioned above, the total transit time would have a sawtooth shape compared to the flow rate. To obtain a continuous linear characteristic curve for the transit time, a step function r(t) must be added to phase angle Δφ that was measured. It is important that the jumps in step function r(t) always take place simultaneously with the jumps in sawtooth curve Δφ(t). Desired remainder r(t) can be derived, e.g., from a quantity trest (remaining transit time), as follows:
r(t)=f(trest), with trest=ts−Δφ+t0
Here, t0 is a constant offset value that will be explained in greater detail below. This remaining transit time trest is a rough measure of the total transit time t of ultrasonic signal 15 minus exact phase shift Δφ.
Although function trest (t) appears to be stepped, it is superposed with noise caused by interfering signals, turbulences or changes in the shape of the envelope. Step function r(t) is therefore not defined directly by trest (t), but rather preferably using a rounding function, i.e.:
r(t)=2pi·round (trest(t)/2pi).
The “round” function is a rounding function, which rounds a numerical value up or down to the next whole number.
The following should be noted with regard for offset value t0: When remaining transit time trest takes on values that are located directly on the limit of the rounding function (between rounding up and rounding down), remainder r(t) may jump. To prevent a signal jump, offset value t0 is therefore chosen such that the extent of the rounding in function r(t)—on average over time—is as low as possible. To determine the extent of the rounding, a scattering parameter s is defined as:
s=g(ts, t0, Δφ)=round(trest/2pi)−trest/2pi.
Scattering parameter s therefore indicates the extent to which rounding is carried out, and how far trest is from ideal step function r(t). A favorable offset value t0 has been chosen when |s|—on average over time, over several transit-time measurements—is as small as possible. In this case, rounding up and rounding down are carried out nearly exactly the same number of times.
Due to changes in the damping parameters of ultrasonic converters A, B, envelope 17 can change over time. This, in turn, can result in signal jumps. It is therefore provided that offset parameter t0 is varied and that scattering parameter s is regulated to the smallest possible values. It can be provided to compare the mean of |s| over time with a specified threshold value smax, and to change offset parameter t0 when the mean of |s| over time exceeds threshold value smax. Threshold value smax can be set, e.g., at smax=0.3. The mean of |s| could also be regulated to a minimum (toward zero).
a shows the graph of the mean of |s| for disturbing influences with different intensities. Curve 24 represents a state with relatively weak signal interferences, and curve 25 represents a state with strong signal interferences. As shown, the minima of curve 25 are not as sharply bent, and are therefore defined less exactly.
b shows the corresponding curves for the graph of mean
In the regions of the minimas of curve 25,
If mean |
Number | Date | Country | Kind |
---|---|---|---|
10 2005 004 331 | Jan 2005 | DE | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/EP2005/056520 | 12/6/2005 | WO | 00 | 3/29/2007 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2006/081887 | 8/10/2006 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
5046500 | Fehr | Sep 1991 | A |
6062091 | Baumoel | May 2000 | A |
Number | Date | Country |
---|---|---|
198 18 053 | Oct 1998 | DE |
0 338 593 | Oct 1989 | EP |
0 362 631 | Apr 1990 | EP |
0043736 | Jul 2000 | WO |
Number | Date | Country | |
---|---|---|---|
20080250868 A1 | Oct 2008 | US |