Field of the Invention
This invention relates in general to measuring the level of a material or liquid in a storage tank, and in particular to an apparatus and method for such measuring using microwave signals in, for example, a large storage tank or a smaller process tank.
Background of the Invention
Accurate level measurement is required for inventory control and custody transfer in industries where liquids such as oil, tar, chemicals and other materials are stored in large tanks. Large storage tanks may be on the order of 30 meters (100 feet) deep and 30 to 60 meters (100-200 feet) across. Process tanks may be on the order of 3 to 5 meters (10 to 17 feet) deep and 3 to 5 meters (10 to 17 feet) across. Historically, liquid levels have been measured by lowering a device into the tank from a roof-mounted platform. Devices used for this purpose have included long sticks and both manual and automated versions of weighted strings or wires which can be lowered into the tank until the liquid (or solid) content is touched. The depth of the material in the tank, and thus the volume of material in the tank, can then be readily determined from the length of the stick, string, or wire. The early use of sticks has led to the term "sticking the tank" for describing the level measurement procedure. While such mechanical methods have continuously been improved and can achieve a very high accuracy in some applications, all such methods require a physical intrusion of the tank environment. There is thus a potential for contamination of the tank contents and for the corrosion, and the ultimate destruction of the measuring device itself.
Over the past approximately fifteen years, various level measuring devices using radar techniques have been developed (see, e.g., U.S. Pat. No. 4,044,355 and U.S. Pat. No. 4,665,403). With the use of radar techniques the material to be measured is not touched; however, the antenna which radiates and receives microwave energy in order to make the measurement, is mounted inside the tank. In many tank environments, a corrosive gaseous atmosphere exists in the space above the liquid and the antenna material erodes. The antenna material thus contaminates the tank contents. These radar-type devices are also relatively expensive compared to the mechanical-type devices.
In some recently described devices, the antenna is separated from the tank contents by a transparent window. However, in these devices, the vertical profile is thus increased by the length of the antenna.
Typical radar-type level measuring devices employ horn antennas or parabolic reflector antennas which extend inside the tank, and use FM-CW (continuous wave) waveforms in which the frequency of the transmitted signal is linearly swept over about one (1) gigahertz (GHz). The received signal is mixed directly with the transmitted signal to form a mixer output signal whose frequency (the measuring frequency) is constant and is directly proportional to the distance from the antenna to the reflecting surface (the material whose level is to be measured). Such systems also employ various methods to attempt to correct for the non-linearity of the swept waveform, and hybrid analog/digital implementations of tracking filters which serve to process the signal such that the frequency of the mixer output signal can be correctly estimated and the liquid level can be determined.
Thus, what is needed is a level measuring method and apparatus which includes an antenna implementation which can be outside the tank interior atmosphere and have a low vertical profile. Such a system would desirably use a waveform which does not require sweeping the frequency of the transmitted waveform, and minimize part count by using a single receive path with one microwave mixer, one receiver amplifier, and one analog to digital (ND) converter. Such a system would also desirably use all digital processing after the first receiver amplifier to minimize contributors to the measurement error, and use digital processing algorithms to further minimize part count and improve reliability.
Summary of the Invention
A method for measuring a level of a material in a tank is contemplated which includes the steps of providing a stepped frequency microwave signal to an antenna of a transmitter and receiving in the antenna a received signal from a surface of the material at the level to be measured. The method further includes processing the received signal and the stepped frequency microwave signal to determine the level of the material in the tank.
A device for measuring a level of a material in a tank is also contemplated. The device includes an antenna and a stepped frequency transmitter/receiver coupled to the antenna. The stepped frequency transmitter/receiver provides a first stepped frequency microwave signal to the antenna to be transmitted to the level of the material in the tank to be measured. The stepped frequency transmitter/receiver receives a second stepped frequency microwave signal in response to the first stepped frequency microwave signal. A signal processor provides processing of a measuring signal derived from the stepped frequency microwave signal and the received signal to determine the level of the material in the tank.
The above and other features and advantages of the present invention will be better understood from the following detailed description taken in conjunction with the accompanying drawings.
Brief Description of the Drawings
In FIG. 1, there is shown a side view of a combination transmitter, receiver, signal processor and data formatting assembly comprising a level measuring device mounted on the viewing port of a storage tank in accordance with the preferred embodiment of the invention;
In FIG. 2, there is shown a top view of a planar antenna suitable for mounting on the pressure window of a viewing port of a storage tank as in FIG 1;
In FIG. 3, there is shown a block diagram of a transmitter, receiver, and signal processor comprising a level measuring device in accordance with the preferred embodiment of the invention;
In FIG. 4, there is shown a representation of 2N discrete frequencies used in frequency stepping the transmitter, receiver, and signal processor in FIG. 3;
In FIG. 5, there is shown filtered mixer output voltages vs. frequency resulting from the processing of the stepped frequency microwave signals in FIG. 3;
In FIG. 6, there is shown a voltage vs. frequency weighting function used in processing the stepped frequency microwave signals in FIG. 3;
In FIG. 7, there is shown a diagram of filter output magnitudes from the apparatus in FIG. 3 when the target range is in the center of a filter; and
In FIG. 8, there is shown a diagram of filter output magnitudes from the apparatus in FIG. 3 when the target range is between two filters.
Detailed Description of the Preferred Embodiment
In FIG. 1, there is shown a side view of a combination transmitter, receiver, signal processor and data formatting assembly comprising a level measuring device mounted on the viewing port of a storage tank in accordance with the preferred embodiment of the invention. The measuring apparatus comprising a transmitter, receiver, processor and data formatting assembly mount in an existing roof port or viewing port 7 on a storage tank roof 9 as shown in FIG. 1. Such a port 7 is often approximately 15 to 30 centimeters (cm) (i.e., six to twelve inches) in diameter. A pressure window of glass, ceramic, Plexiglas or other structural material, which allows the passage of microwaves, can be affixed to the port 7 in such a way as to provide a tight seal. A planar microwave antenna 2 can then be mounted to the glass window such that the microwave beam which emanates from the antenna is directed downward through the pressure window 5 toward the target surface level 14 on which a height, or depth, measurement is to be made for a material in the tank. The transmitter/receiver and processor 1 electronics can be mounted directly behind the antenna 2 in a small compact housing.
In FIG. 2, there is shown a top view of a planar antenna suitable for mounting on the pressure window of a viewing port of a storage tank as in FIG. 1. The antenna 2 in FIG. 2 is shown as an array of printed circuit radiating elements 11. Sixteen radiating elements 11 are shown in the preferred embodiment in FIG. 2, but other numbers of radiating elements and geometric configurations of radiating elements could be used. The radiating elements 11 shown in FIG. 2 can be connected to the transmit/receive electronics of the level-measuring device via a corporate feed network of microwave splitters which are known in the art. With such a design, the microwave paths to all elements are of equal length and the antenna 2 can be constructed in a planar fashion to have the bandwidth necessary to support the transmitted waveform. Also note that, while the preferred embodiment in FIG. 1 illustrates a planar microwave antenna 2, it is not required that the antenna 2 be a planar microwave antenna. Various other antenna configurations are readily adaptable and could be used.
In FIG. 3, there is shown a block diagram of a transmitter, receiver, and signal processor comprising a level measuring device in accordance with the preferred embodiment of the invention. The level-measuring device represented in FIG. 3 comprises a transmitter/receiver unit 4, a signal processor unit 6, and an antenna 2 (which is shown in the preferred embodiment of FIG. 3 as a planar antenna).
The transmitter/receiver unit 4 in FIG. 3 comprises a microwave frequency generator 8 coupled to a frequency select control 16 and a mixer 10. A coupler 12 is also coupled to the mixer 10 as well as to delay line 20 and planar antenna 2. Mixer 10 is also coupled to receiver filter/amplifier 18.
Signal processor unit 6 comprises an analog to digital (A/D) converter 22 coupled to the receiver filter/amplifier 18 of the transmitter/receiver unit 4. Signal processor unit 6 also comprises a digital multiplier 26 coupled to the A/D converter 22 as well as to a weighting function memory 24. The digital multiplier 26 is coupled to a discrete Fourier transform (DFT) 28. Sample quadrature correction 30 is coupled between the DFT 28 and the filter output magnitude calculator 32. Multiple sequence averager 34 is coupled to filter output magnitude calculator 32. Surface distance estimator 36 is coupled between data formatter 38 and the multiple sequence averager 34.
The microwave frequency generator 8 in FIG. 3 can be a device commonly known in the art which produces a stepped frequency microwave signal 3 at any one of 2N stable frequencies as selected by programmable frequency select control device 16. The frequency select control device 16 can be programmed to sequentially step through the 2N frequencies, dwelling for a time t.sub.d at each frequency. The stepped microwave frequency signals 3 from the microwave generator 8 are applied to the mixer 10. The mixer 10 has a controlled leakage whereby a portion 13 of the stepped frequency microwave signal 3 applied at its input is passed on to the antenna 2, through the coupler 12, and radiated toward the target surface level 14 of the tank contents. In the coupler 12 a second portion 21 of the stepped frequency microwave signal 3 transmitted signal is diverted to a delay line 20 of known length which provides a reference target for calibration purposes.
The antenna 2 serves as both a transmitting antenna and a receiving antenna. Signal 17 is the transmitted signal to level 14. Signal 19 is the signal reflected from the target surface level 14 back toward the antenna 2. Signal 19 is received by the antenna 2 and applied to the mixer 10 through the coupler 12. The reflected signal 19 is mixed by the mixer 10 with the microwave signal 3 coming directly from the microwave frequency generator 8 to produce a measuring signal portion of signal 15 to be input into receive filter/amplifier 18. The reflected signal 19 is of exactly the same frequency as the microwave frequency signal 3, but differs in phase by an amount which is directly proportional to the distance from the antenna 2 to level 14. If the microwave frequency signal has a frequency f.sub.n, the distance to be measured is R, and the velocity of electromagnetic; microwave signal is c (the speed of light), then the phase difference in radians between the direct microwave frequency signal 3 and the reflected signal 19 is given by:
When two sinusoidal time varying waveforms of frequency f and phase difference .beta. are applied to a balanced detector, the output is given by:
(see Skolnik, M. Radar Handbook, 2nd Edition, McGraw Hill, 1990, page 3.36, which is incorporated herein by reference). In this preferred embodiment of the invention, the balanced detector is a microwave mixer 10. A low pass filter following the mixer 10, a part of the receiver filter/amplifier 18 in FIG. 3, removes all but the cos .beta. phase term, where .beta. is .beta..sub.n as defined above.
In FIG. 4, there is shown a representation of 2N discrete frequencies used in frequency stepping the transmitter, receiver, and signal processor in FIG. 3. In the preferred embodiment, the microwave frequency signal 3 which is transmitted is sequentially stepped through 2N frequencies from f.sub.1 to F.sub.2N as shown. The frequency spacing between each frequency step is f.sub.step. At each frequency, the microwave frequency signal 3 is transmitted for a dwell time t.sub.d while the output of the receiver filter/amplifier 18 is sampled and converted into a digital word by the ND converter 22. The output of receiver filter/amplifier 18, at a transmitted frequency f.sub.n, is proportional to cos .beta. by Equation 2. For a given distance R to the target, the variation in the receiver filter/amplifier 18 output as the transmitted microwave frequency signals 3 are sequentially selected, will represent a unique sampled sinusoidal waveform as shown in FIG. 5.
The distance to the target surface (level 14) can be determined by finding the number of cycles in the waveform of FIG. 5 which are mapped out over the 2N frequency steps. The maximum distance R.sub.max that can be unambiguously measured is that distance which produces a full cycle in FIG. 5 over 2 frequency steps of 180 degrees of phase shift between frequency steps. In equation form:
Digital samples 19 from the ND converter 22 are weighted (multiplied) in the digital multiplier 26 using stored weights from the weighting function memory 24 to reduce transient effects prior to further processing. The envelop of the magnitudes of the stored weights is shown in FIG. 6. The 2N weighted digital samples 27 gathered from one frequency stepping sequence will, for the purposes of this description of the preferred embodiment, be referred to as one data record. From the data record of 2N samples, two N-sample sub-records are created. The N odd-numbered samples are placed in a record of "odds" and the N even-numbered samples are placed in a record of "evens". The odd and even sample sets comprise "in-phase" and "quadrature" sample input sets, respectively. The 2N samples are then processed by an N-point discrete Fourier transform (DFT) 28 algorithm.
The DFT 28, which can be a DFT known to those of ordinary skill in the art, acts as a bank of N contiguous narrowband digital filters which serve to isolate the filtered mixer output voltages from the receiver filter/amplifier 18 (FIG. 5) so that the signal frequency and thus the distance to the target surface can be determined. The DFT 28 performs a complex discrete Fourier transform on a set of N data pairs, each of which has a real component and an imaginary component, in the following way: In the preferred embodiment, the record of "odds" is used as the real input components and the record of "evens" is used as the imaginary input components for input to the DFT 28. The N complex output pairs of the DFT 28, each of which comprises a real component and an imaginary component, are then sorted, combined, and phase corrected in the sample quadrature corrector 30. By labeling the N real DFT 28 output components and the N imaginary DFT 28 output components as R(n) and l(n), respectively (where n=1,2, 3, . . . ), the processing in sample quadrature corrector 30 forms two new sets of real and imaginary outputs, X.sub.real (n) and X.sub.imag (n), using the following algorithms:
For n=1:
For n=2 to N:
Each complex output sample pair is then converted, in filter output magnitude calculator 32 to a single digital magnitude word to form an N-sample output record X.sub.m (n), where the record of N samples contains the magnitudes of the true Fourier transform of the original 2N sample input data record and where:
The above described processing completes one frequency-stepping sequence. The output records of M sequences are averaged in multiple sequence averager 34 in FIG. 3 to form a smoothed estimate of the output magnitudes of each of the N DFT filters. If the distance R to the level 14 results in a ranging frequency signal waveform whose frequency falls in the center of a DFT filter, a graph of the average output record will be similar to that in FIG. 7. The response from the calibration target is shown at left and the target at the center of filter V is shown at right in FIG. 7. Alternatively, if the distance R to the level 14 results in a waveform whose frequency falls midway between two DFT filters, a graph of the average output record will be similar to that in FIG. 8. The response from the calibration target is shown at left and the target between filters V and V+1 is shown at right in FIG. 8. An interpolation algorithm is implemented in surface distance estimator 36 in FIG. 3 to determine the true distance to the target surface level 14 based on the magnitudes of the outputs of the filters which are adjacent to the filter with the largest output.
The interpolation algorithm used in the preferred embodiment may be of the form:
where R.sub.a and R.sub.b are the distances corresponding to the centers of the two filters having the largest magnitudes, E.sub.a and E.sub.b are the voltage magnitudes of those two filters, respectively, .mu. is the filter spacing in units of distance, and k is a constant that yields minimum error.
The algorithm may also be of the form:
where R.sub.a and R.sub.c are the distances corresponding to the centers of the outer two of three adjacent filters having the largest magnitudes, E.sub.a, E.sub.b, and E.sub.c are the voltage magnitudes of those three filters, respectively, .mu. is the filter spacing in units of distance, and k.sub.1 and k.sub.2 are constants that yield minimum error.
Using calibration frequency signal 21 in FIG. 3, which is supplied through mixer 10 as a portion of signal 15 to receiver filter/amplifier 18, the distances to the calibration target (delay line 20) and to the surface level 14 are estimated in this manner and the target surface distance measurement is corrected based on the calibration measurement. The target distance to level 14 is then formatted in data formatter 38 in FIG. 3 for output to a display on a local readout device or for telemetry to a remote readout location. Thus, the method involves measuring a first distance associated with the calibration frequency signal, measuring a second distance associated with the ranging frequency signal, comparing the first distance to a known (calibrated) delay line length to produce a determined error, and correcting the second distance with the determined error to determine the level of the material in the tank.
Thus, an apparatus and method has been described which overcomes specific problems and accomplishes certain advantages relative to prior art methods and mechanisms. The improvements over known technology are significant. The method and device described herein provide a low profile antenna implementation whereby the level measurement can be taken without entering the tank interior atmosphere. The method and apparatus use a waveform which does not require the complexity of sweeping the transmitted signal. A single receive path is used, with one microwave mixer, one receiver amplifier, and one ND converter (approximately half the parts of previous devices). The method and apparatus use all digital processing after the first receiver amplifier to minimize contributions to the measurement error. In addition, the method and apparatus use special digital processing algorithms to further minimize parts count and improve reliability.
Thus, there has also been provided, in accordance with an embodiment of the invention, an apparatus and method for level sensing using microwave signals that fully satisfies the aims and advantages set forth above. While the invention has been described in conjunction with a specific embodiment, many alternatives, modifications, and variations will be apparent to those of ordinary skill in the art in light of the foregoing description. Accordingly, the invention is intended to embrace all such alternatives, modifications, and variations as fall within the spirit and broad scope of the appended claims.