Description
1. Technical Field
This invention relates to electrical detection apparatus, and more particularly, to a waveform disturbance detection apparatus and method.
2. Background Art
Detectors which are capable of detecting disturbances on alternating current (AC) power lines are common in the art. These power disturbances include voltage errors, sudden drops or impulses, frequency errors, and common-mode and normal-mode noise. Detecting, and especially identifying, the causes of such power disturbances is critical when the AC power is being used to operate computers or microprocessor-based equipment. The ability to detect such power disturbances permits the user to identify and isolate problem areas such as defective components, defective cables, or defective software. Examples of prior art detectors include Shumate, Jr., U.S. Pat. No. 3,753,133 and Weischedel et al., U.S. Pat. No. 4,132,947.
In general, prior art detectors generally function in a manner such that the waveform of the AC power line to be analyzed is compared with a desired waveform, generally referred to as a template. If the analyzed waveform is at variance with the template, the presence of that variance is then categorized as a disturbance. Such a method generally produces an inordinate amount or false alarms since any variance, however minute, is categorized as a disturbance. For example, the waveshape of a waveform invariably changes slowly as time passes. In addition, since there are a multitude of waveshapes which may be used, e.g., sine waves, sawtooth waves, etc., a different template must be used in order to detect the disturbances of a particular type of waveshape.
Disclosure of the Invention
In view of the prior art, it is a major object of the present invention to provide a waveform disturbance detection apparatus and method that minimizes the number of false alarms.
It is another object of the present invention to provide a waveform disturbance detection apparatus and method that is capable of detecting disturbances without taking into account the type of waveshape that is being analyzed.
In order to accomplish the above and still further objects, the present invention provides a waveform disturbance detection apparatus for detecting disturbances in alternating current electromagnetic energy waveform, the alternating current electromagnetic energy waveform having a plurality of periodic, substantially similar cycles. The detection apparatus comprises converter means for sampling the electromagnetic energy waveform, generating a plurality of samples, and converting the samples into digital signals. The detection apparatus also comprises processing means for evaluating the digital signals so as to detect disturbances in the electromagnetic energy waveform, wherein the processing means detects the disturbances by comparing a particular one of the digital signals that represents a particular one of the samples in a particular one of the cycles with a corresponding one of the digital signals that represents a corresponding one of the samples from the remaining cycles.
Other objects, features, and advantages of the present invention will appear from the following detailed description of the best mode of a preferred embodiment, taken together with the accompanying drawings.
Brief Description of the Drawings
FIG. 1 is a graphical illustration of the operation of a waveform disturbance detection apparatus and method of the present invention;
FIG. 2 is a simplified block diagram of the waveform disturbance detection apparatus of FIG. 1;
FIGS. 3A and 3B illustrate the use of the tolerance range for the waveform disturbance detection apparatus of FIG. 2; and
FIGS. 4A and 4B are flow diagrams of the operation of the waveform disturbance detection apparatus and method of FIG. 2.
Best Mode for Carrying Out the Invention
Referring to FIG. 1, there is shown an alternating current (AC) waveform. The AC waveform, by definition, is a plurality of periodic, substantially similar cycles. In the preferred embodiment, the waveform is first sampled at a rate that provides a user-specified number of samples per waveform cycle or period, each sample being separated in time by the same time interval. A sample from a current cycle or period of the waveform is then compared with a corresponding sample from a different cycle or period of the waveform. For example, the sample of the waveform that is designated S is compared with a corresponding sample that is designated S'. Sample S of the current cycle occurs at a point in its period that corresponds to the position of sample S' in relation to its period. Moreover, sample S' in the preferred embodiment is taken from a cycle that precedes the current cycle that contains sample S. Whereas prior art detectors compare the entire waveshape of the waveform that is currently being analyzed with a template that reflects a desired waveshape, the apparatus and method of the present invention compare the waveform at a particular point in a cycle with a corresponding point in a preceding cycle of the same waveform. More specifically, the present invention compares the amplitude of sample S with the amplitude of corresponding sample S'.
To minimize false alarms, the present invention provides a range or window about the amplitude of the preceding sample within which the current sample is permitted to vary without generating a faulty condition or disturbance. This window or tolerance is designated as a range from +.epsilon. to -.epsilon., or .DELTA..epsilon.. If the amplitude of sample S' is within the tolerance range of the amplitude of sample S, such a difference is not categorized as a power disturbance. Thus, the presence of minor variances does not create false alarms.
In addition, as contrasted to the use of templates in the prior art, the present invention need not take into account the waveshape of the AC power since it employs a comparison of the amplitudes within the same waveform. A multitude of templates is, therefore, not required in the instant invention even though a wide variety of waveshapes may be evaluated.
The preferred embodiment of the present invention is best illustrated in FIG. 2. A waveform disturbance detection apparatus, generally designated 12, is provided. Apparatus 12 comprises an attenuator 14, a differential amplifier 16, an analog-to-digital (A/D) converter 18, and processing means 20. More particularly, attenuator 14 is connected to the AC power lines, or other lines which are being monitored, in a conventional manner. Attenuator 14, having an input resistance of approximately 10 megaohms, is capable of providing an attenuation of approximately 1000 to 1. This resistance provides isolation of apparatus 12 from the lines being monitored, prevents undue loading of the lines by apparatus 12, and provides a signal amplitude that is compatible with the downstream processing circuitry. It is within the knowledge of those skilled in the art that other attenuation ratios should be used where appropriate; for example, when the amplitude of the waveform is in the 1200-volt range, an attenuation ratio of 10,000 to 1 could be used. The outputs of attenuator 14 are inputted into differential amplifier 16.
Differential amplifier 16 is used in order to permit the monitoring of disturbances on either of the two AC power lines. The output of differential amplifier 16 is then converted to digital data by A/D converter 18. A/D converter 18 in the preferred embodiment is a high-speed A/D converter such as the 12-bit, Type ADC10A0 A/D converter manufactured by National Semiconductor Corp. of Santa Clara, Calif. A/D converter 18 has a conversion speed of approximately 22 microseconds. The digital output of A/D converter 18, representing samples of the waveform, is then received by processing means 20.
Processing means 20, a microprocessor in the preferred embodiment, primarily compares the amplitude of the just-received sample, such as sample S, with that of a prior, stored sample, such as sample S'. In addition, microprocessor 20 is capable of storing the user-selected tolerance range. The range of .DELTA..epsilon., for example, may be selected by the user to be a value from one to 20 percent of the amplitude of the sample that is being analyzed, as best shown in FIG. 3A. In such an instance, the value of the range or window varies as a proportion of the amplitude of the waveform. In the alternative, the value of the range or window may be selected to be an absolute value, as best shown in FIG. 3B. Further, microprocessor 20 is capable of storing, in a conventional buffer, samples corresponding to an entire cycle of the waveform. The stored data, generally correspond to 64 samples of a cycle, are the "prior" waveform data with which the samples of the just-received cycle are compared. Microprocessor 20 also includes a disturbance detection counter that stores the number of successive samples which are outside the tolerance range.
In an alternative embodiment of the present invention, microprocessor 20 is configured to store samples of the waveform corresponding to several cycles of the waveform that come after the samples in which the disturbances occurred. These post-fault waveforms, which are stored in a post-disturbance buffer of microprocessor 20, are then used in the waveform disturbance analyses. Microprocessor 20 in the preferred embodiment is a Type Z-80 microprocessor manufactured by Zilog Corp. of Santa Clara, Calif.
Last, a conventional recorder/display 22 is provided to graphically illustrate the waveform of the AC power line that is being analyzed.
In operation, as best illustrated in FIG. 4A, microprocessor 20 first determines and then initializes itself with the period of the waveform to be analyzed, e.g., 60 Hz. The user selects an arbitrary number for the number of samples that will be taken for each cycle of the waveform. This arbitary number, designated "N", is selected to be 64 in the preferred embodiment. These samples form the basis for the comparison. Microprocessor 20 then obtains and stores N samples of a cycle of the waveform in an internal buffer. The user also selects the tolerance range .DELTA..epsilon.. Microprocessor 20 also maintains the disturbance detection counter, which is also initialized at this time.
As each sample in a cycle is obtained, e.g., sample S of the waveform of FIG. 1, its amplitude is compared with the amplitude of the corresponding sample in the preceding cycle, e.g., sample S'. As can be seen in FIG. 1, the samples S' can come from the cycle immediately preceding the cycle from which the samples S are obtained. If the amplitude of the waveform at sample S is within the tolerance range, the disturbance detection counter is re-initialized to zero. The oldest of the N samples in the buffer is discarded and the just-analyzed sample is stored in its place. Thereafter, a new sample is taken and analyzed. In other words, for samples of a different cycle, the samples S' against which they are compared will be different than the samples S' against which the samples S of the current cycle are compared. More specifically, as can be seen from FIG. 4A, the samples S' come from a reference cycle which changes for each different cycle being examined.
If, however, the difference between the analyzed sample and prior corresponding sample exceeds the tolerance, the disturbance detection counter is incremented. If the number of consecutive faults or disturbances for each cycle has not reached a predetermined amount designated by the user, additional samples are taken and analyzed, as best shown in FIG. 4A.
In an alternative to the above step of discarding the oldest sample in the buffer and storing the present sample, the faulty, just-received sample is discarded, as best shown in FIG. 4B. Instead of discarding the oldest sample in the buffer, which in essence is the sample of the preceding period that had just been used in the comparison, the faulty, just-received sample is discarded. This procedure ensures that the future comparison utilizes a "normal" sample, and not the faulty, just-received sample, as the basis of the comparison.
If the number of consecutive faults or disturbances in the just-analyzed cycle is greater than the preselected limit, the operational sequence proceeds to store an arbitrary number, designated as "M", of post-fault samples into the post-disturbance buffer. These post-fault samples permit a better analysis of the disturbance pattern. Last, waveforms which include both the disturbances and the post-fault samples may be displayed via recorder/display 22. The operation then returns to the beginning of the sequence, awaiting a new waveform cycle.
In summary, it is to be understood that in the preferred embodiment of the present invention a plurality of points in each cycle of the waveform are compared against the corresponding number of prior samples maintained by microprocessor 20. As each point in the current cycle is sampled, it is compared against a corresponding one of the stored prior samples. These prior samples are all from the preceding cycle.
The alternative embodiment, however, compares the plurality of points in each cycle of the waveform with the corresponding number of "normal" samples maintained by microprocessor 20. As each point in the current cycle is sampled, it is compared against a corresponding one of the stored "normal" samples. These "normal" samples may or may not all be from the preceding cycle. They are merely the most recent "normal" samples. In this fashion, each and every point of the current cycle is compared with the corresponding one of the stored "normal" samples.
It will be apparent to those skilled in the art that various modifications may be made within the spirit of the invention and the scope of the appended claims. Since the fundamental concept of the present invention is the detection of changes in the shape of any repetitive waveform, the present invention is useful in applications where the detection of a change between one cycle and the next is important. Examples of such applications include electrocardiography (EKG), mechanical vibration machinery, process control oscillations, etc.