Summary of the invention
Therefore, task of the present invention is, improves ultrasound wave transit time measuring reliability, and wherein the measurement result of mistake given up and/or reported and make mistake.Overall operation reliability that thus can lifting means.
According to the present invention, above-mentioned task at first is to solve as follows through the method that a kind of this paper begins type that part is mentioned: when carrying out measuring for the N time, through a threshold value THC who is provided with in advance
N(it is not equal to the zero passage that receives wave group), the width PW1 of first ripple of the reception wave group that obtains to be received
NIn order to solve above-mentioned task, a kind of device of the type provides a time-to-digit converter TDC, is used for confirming to be transmitted into from a transducer through fluid the transit time and the pulse width of the ultrasonic wave group of another transducer.
Can carry out the measurement of nano-seconds by means of a time-to-digit converter (TDC); Thereby can carry out the pulse width measuring of ultrasonic signal; Thus; The variation of pulse width (it is that a kind of of amplitude to the ripple that receives wave group measures in the earthquake scope) confirmed by utterly or relatively (with respect to the pulse width that in range of stability, has fixed amplitude), and is used to the processing of measuring or is used to the output error signal.
So, of the present inventionly preferred embodiment be, in identical measurement, at threshold value THC corresponding to the zero passage that receives wave group
0Condition under, gather the pulse width PW2 of i ripple
N, the ratio PWV of then definite two pulse widths of being gathered
N=PW1
N/ PW2
NThereby, if PW1
NAnd/or ratio PWV
NBe lower than a predetermined value, then reduce predetermined threshold value, so that gather the pulse width PW1 of first ripple that receives wave group for subsequently measurement
N+K, K=1 ....Realized thus; In a regulating loop (Regelschleife); At the numerical value that the safety of an optimization occurs under the condition of (Eintreffen) first pulse comparator threshold is set to; Make and not have following danger: inadvertently measuring second ripple rather than first ripple, and setting out thus likewise the transit time is confirmed with respect to other ripple of a mistake.
Another reason that threshold value is removed from the zero passage of sine function is, the error-detecting that causes owing to noise.If for the duplicate words of the input value of THC on comparer and RT, so before occur receiving signal two input ends of comparer in identical level.Cause the error-detecting at random of comparer through the meeting of noise and less interference, the latter can't be explained.For this reason, before occurring receiving signal, also two threshold values are moved (just TH is enhanced), so that obtain the signal that to be annotated.
In another preferred embodiment of method, with the measured pulse width PW1 of first pulse of the N time measurement according to invention
NAnd/or the ratio PWV of measured pulse
N, with a preceding N
-1Measure corresponding value PW1
N-1And/or PWV
N-1Compare, and if relatively the difference result surpassed a predetermined difference a, then give up the transit time and measure or do not carry out the transit time and measure.If this occurs, there be wrong the measurement in the interference (such as bubble) owing to the short time under the condition of the difference a of suitable setting, makes can give up or do not carry out the corresponding transit time and measure.Preferably, can also construct an electronic equipment, be used for working as PW1
NAnd/or ratio PWV
NWhen being lower than predetermined value, reduce the pulse width PW1 of first ripple that is used for back planar survey collection reception wave group
N+KK=1 ... threshold value.In this way, can be to gathering, and guaranteed thus such as the dirty long-term disturbing effect of water quality, even have under the situation of certain reduction, also can collect first echo reliably in the amplitude of first ripple of echo.
But, if such as becoming excessive, then in another preferred embodiment, when being recorded pulse width PW1 owing to the dirty long-term disturbing effect of water quality
NAnd/or pulse width ratio PWV
NWith measured corresponding pulses width PW1 before
MAnd/or PWV
MCompare, wherein M be much smaller than N situation (M<<N), subtract each other the difference that obtains when being lower than the numerical value c that sets, then export an alerting signal.If the pollution that changes of measurement mechanism has developed into and makes normal transit time measure can not to proceed again, make and need carry out that instrument cleans or instrument is changed, can export this error message of this point of prompting.
In a word; Realized high measurement accuracy through the present invention; Because guaranteed, through measuring (time measurement) stop signal (Stoppsignal) above freezing excessively, realize that on the ripple of the middle definition of the steady state (SS) of wave group the transit time measures at wave group through this invention.
Under (pulsweiten) of pulse width measurement situation, promoted safety in operation through the present invention, thereby the quality that has realized institute's instrumentation promotes.Demarcation for instrument is in process of production further simplified, and instrument itself also will be considerably reduced for the sensitivity of very poor measurement media (water quality of pollution) and the bubble in media.
Embodiment
According to the device 1 that is used for measuring in the transit time of the ultrasound wave in other words 1.3 of the ultrasonic signal of fluid of the present invention, have in a conventional manner two on the pipe of water conservancy diversion or within the ultrasonic transducer 1.1 and 1.2 installed on the direction at fluid.In addition, an electronic equipment 2 is provided, it has a microprocessor, is used for the control survey flow process and analyzes to the information of its transmission and/or put forward data.
The metering circuit 3 that will describe at electronic equipment 2 and transducer 1.1, below being provided with between 1.2, this metering circuit especially is implemented on the front-end chip.
Metering circuit 3 has a control module 3.1, and this unit is connected with electronic equipment 2 through a control line.Control module 3.1 equally also is connected with pulse generating unit 3.2 through a control line; The latter produces electric pulse crowd or wave group; By means of transducer 1.1,1.2 this pulse train or wave group are transformed into ultrasound wave, and from transducer, output in the mobile medium.3.2 output terminal of pulse generating unit is connected with first transducer 1.1 or second transducer 1.2 through a three-state buffer 3.3.1,3.3.2 respectively.These two three-state buffers can switch to low-resistance or high resistant through 3.1 controls of control line Be Controlled unit; Make will by pulse train that pulse producer produced respectively with transducer 1.1,1.2 in one corresponding; So this transducer is as transmitter, another transducer (1.2 or 1.1) is then as receiver.Need once switch transmitter and receiver for the flow measurement of carrying out one whole, make the transit time measure and not only carry out along downbeam but also along countercurrent direction.
In view of the above; Output terminal at ultrasonic transducer 1.1,1.2 is associated with switch AS1, AS2 respectively; These switches preferably have the form of analog multiplexer; These switches be simultaneously through before the control line mentioned by 3.1 controls of control module, and respectively with the signal input part of signal guidance to the comparer 3.4 of present receiving transducer.
In addition, comparer 3.4 also has another relatively input end, and the latter is connected with threshold value generating means 3.4.1, and this threshold value generating means can be controlled through a control line by control module 3.1 equally, is used to be provided with the level of each threshold value.
Comparer produces square-wave signal as output.The pulse train that pulse producer 3.2 will be directed to transmitting transducer side by side guides to the startup input end (Starteingang) of time-to-digit converter/Time Digital Converter TDC 3.5; And this square-wave signal of comparer 3.4 be directed to this TDC 3.5 stop input end (Stoppeingang).TDC 3.5 will be passed to electronic equipment 2 by its measured output valve through a data line and be used for further processing; Wherein, This output valve is for example especially transmitting and is receiving transit time (or rather, being the transit time of launching between i zero passage wave group and that receive wave group) between the signal and the pulse width that also will introduce in detail below.
What in Fig. 2, show is the voltage about 0 symmetry with 400mV peak-to-peak value.This is at the direct voltage that receives on the ultrasonic transducer 1.2.That is, this voltage has negative value.Be merely able to utilize if negative value voltage is given to one, mean high technology overhead, therefore will avoid as far as possible on the occasion of voltage-operated chip.Through, (in the realization of reality) transferred to the level of zero passage on the 1/3Vcc, in the metering circuit that is realized 3, avoided this point.It is the (not shown) that utilizes capacitor (Hi-pass filter) to accomplish that this voltage shifts.That is, if the voltage of Direct observation on comparator input terminal RT and THC, then their typical voltage is not 0mV, but in a positive scope, as at 1/3Vcc.Correspondingly, comparator threshold THC neither be at 0mV, but at a positive voltage, like 1/3Vcc.That is, THC describes with respect to receiving signal in Fig. 2.The zero passage of sine function is in threshold value
and not on 0mV on measurement point THC.
Fig. 2 shows the signal on comparer 3.4 in view of the above; Or rather, its to have be that unit temporal is the representative value (but the difference of the zero passage place under
) of the signal height of unit with the millivolt with the microsecond.At this; The input signal of comparer 3.4 has been described on top; That is; On the one hand be that received and reception signal that be transformed to electric signal (received pulse crowd) RT (receiving signal from transducer, the signal that receives from transducer) by receiving transducer (here being transducer 1.2), it is the sine wave of the transient response that has the e function (Einschwing-verhalten) that on a plurality of cycles, extends; And be by the set threshold value THC of threshold generator 3.4.1 (treshhold) on the other hand, this threshold value shifts the centre of the P-branch that roughly is in second ripple through above-mentioned level and therefrom at THC
0=1/3Vcc place (mV) changes corresponding to zero passage that receives ripple or the voltage zero (Spannung Null) on the output terminal of transducer 1.2.This threshold value has this and surpasses THC when measuring beginning
0Value, be definition on the one hand in order to measure, be to measure on the other hand, and be thus for receiving quality of signals and so also surpassing measuring of disturbing effect for of obtaining for the amplitude of first ripple.
Described the output signal OC (ouput comparator, comparer output) of comparer in the bottom of Fig. 2, it is a pure square-wave signal.
Except other, on the height of set threshold value THC, measure the pulse width PW1 (width of pulse is for receiving twice spacing through set threshold value THC of ripple RT) of first ripple through TDC3.5, wherein, this pulse width PW1
NConfirmed the corresponding pulse of output square wave, and be sent on the electronic equipment 2.In addition; Here in the negative part of second ripple that receives signal RT, be set on
through the threshold value (that kind as described above) of control module 3.1 with comparer 3.4.
Next; Each ripple through TDC counting wave group or pulse train arrives predetermined value i; In shown embodiment, count down to the 10th ripple; And, the time of the beginning of the 10th ripple is measured and equally measurement result delivered to electronic equipment 2 subsequently from the moment through opening TDC 3.4 at pulse producer 3.2.
In addition, in this range of stability of the pulse train after transient response finishes, same confirm two zero passages through echoed signal RT (because of threshold value being arranged on THC
0) the pulse width PW2 of the given wave group of spacing
N, and be sent to microprocessor equally, wherein, can set up the ratio of PW1 and PW2 and also realize PW1 thus
NCarry out standardization.
Below, preferred embodiment at length to explain through determined according to method flow of the present invention according to device of the present invention with reference to Fig. 3 and according to the flow process in for example measuring along the N time of flow direction.
Switch 3.3.1 (three-state buffer) this moment be a low-resistance, and switch 3.3.2 (another three-state buffer) this moment is a high resistant, and the AS1 switch switches to high resistant and the AS2 switch switches to low-resistance accordingly.
Be provided with compare threshold THC in beginning (steps A) with at step B
NAfter>0, send a ultrasonic signal (crowd), start TDC 3.5 (step C) simultaneously through first transducer (for example 1.1 according to reference to figure 1 described mode).According to step D, carry out the reception of wave group through second transducer 1.2.In step e, when surpassing set threshold value, detect first ripple that receives wave group RT through TDC 3.5.This threshold value at first be set to a limited value (greater than with (also comprising transducer) zero passage corresponding value THC
0); So that can be stably and always detect first ripple reliably; Rather than (as have under zero the threshold value situation such) detect the ripple number of a mistake improperly because because start-oscillation characteristic has only the difference of several mV and the explanation that possibly lead to errors easily in the amplitude of ripple at first.
In addition, in this N time is measured,, confirm the pulse width PW1 of this first ripple through first ripple is surpassed the moment of threshold value and the measurement that is lower than the moment of threshold value subsequently
NAnd pass to electronic equipment (step F).Then, (for example during second pulse) threshold value THC is reduced to THC
0(corresponding to the zero passage of ripple), as with reference to figure 2 to (step G) this explanation.Subsequently, other the ripple or the step-by-step counting of pulse train are arrived i the predetermined ripple RT of this N time measurement
IN, for example with reference to said the 10th pulse among the figure 2, wherein starting of oscillation finished and the amplitude of pulse be stable (step H, I).
If on receiving transducer 1.2, detect this i ripple RT
INThen confirmed to start TDC up to receiving i the ripple institute elapsed time that receives wave group from (owing to the transmission of first ripple of launching wave group) through TDC 3.5; And send electronic equipment 2 (step J) to, and it is deducted the time between first ripple in the wave group and i the ripple and confirm as the transit time on measuring route between transducer 1.1 and 1.2.
Next, confirm i ripple RT
INPulse width PW2
N(step K), wherein here pulse width is defined as the time interval that ripple passes through threshold value that is twice zero passage here for twice.Also should value be delivered to electronic equipment 2 from TDC3.5.
Electronic equipment 2 is set up the ratio PWV of the measured pulse width of first ripple measured for the N time and i ripple
N=PW1
N/ PW2
N(step L).
Next, with this above-mentioned determined pulse width ratio of measuring for the N time with abut against before measured ratio PWV
N-1Compare.If this comparative result Δ PWV=PWV
N-1-PWV
N>a exceeds predetermined value a, then it is interpreted as the measurement that reports an error, such as because bubble arranged in medium.This measurement is rejected (step M ' and N ').(the step M ' and the N ' of (the N time measurement) measurement sequence have apostrophe, so that its measurement zone with step M and N is separated).If result relatively less than a value that sets, then measures measured pulse width ratio PWV with the N time again
NWith at least one more in preceding measurement, for example measure measured pulse width ratio PWV for the M time
MCompare, wherein M<<N (step O).If PWV
M-PWV
NGreater than b, promptly exceed predetermined value b, then this means, owing to the influence of long-term time, for example owing to pollution reception amplitude descends, because measured pulse width PWV1
NBe that a kind of of paired pulses height measures, thus must reduce to detect level, i.e. adjustment input threshold value, so that can continue to detect safely first ripple (step P).
If above-mentioned difference is greater than predetermined value c, wherein c is far longer than b, and this point is interpreted as so: for carrying out reliable detection, pollutes too seriously, therefore require to carry out instrument and change and perhaps carry out cleaning.Through an alerting signal show this point (step Q, R).
At last, providing the measured transit time T of following current
1NAnd in identical measurement the measured transit time T of adverse current
2NAfterwards, confirm fluid velocity V in the moment of this measurement
NAs according to shown in the step S of the process flow diagram of Fig. 3; Wherein L is the length in ultrasound wave path, and α provides the angle of signal ultrasound wave and fluid in case of necessity, if the line of two ultrasonic transducers is not accurately to change according to flow direction but with this angle [alpha] institute incident.
Through the present invention, the detection that can improve and arrange to come convection cell speed more reliably by means of the transit time difference measurements, method is: on the one hand, get rid of or give up for example owing to measuring error in the bubble short-term fluctuation that perhaps similar factor caused; And on the other hand, can discern long-term fluctuation, and adjustment is used to detect the receive threshold of first pulse that receives wave group, perhaps exports an alerting signal in strong polluting.
The reference marker inventory
1 device
First 1.1 (ultrasound wave) transducer
Second 1.2 (ultrasound wave) transducer
1.3 ultrasound wave
2 electronic equipments (having microprocessor)
3 metering circuits
3.1 control module
3.2 pulse producer
3.3.1, the 3.3.2 three-state buffer
3.4 comparer
3.4.1 threshold generator
3.5 time-to-digit converter/Time Digital Converter TDC
AS1, AS2 analog switch (multiplexer)
THC
NBeginning threshold value before 3.4.1 the N time measurement
THC
0Threshold value corresponding to the zero passage of the ripple that on receiving transducer, is received