The present invention relates to a method and apparatus for triggering a test and measurement apparatus such as an oscilloscope, and more particularly to a method and apparatus for scanning a plurality of trigger events to automatically determine a best option for the trigger for capturing rare events. Furthermore, the test and measurement apparatus may then be automatically set to trigger subsequently employing the determined trigger option.
One of the main uses of various test and measurement instruments, and in particular an oscilloscope, is in a debug environment. A digital storage oscilloscope (DSO) is one of the primary tools of engineers in the development, debugging and certification of all kinds of electronic items.
As a debug tool, it is important for the oscilloscope to find anomalous events quickly. This is generally for two purposes. One purpose is to show evidence of a suspected problem. Another is to show enough about a problem to enable the setting up of the trigger to isolate the problem. Isolation of the problem is accomplished by repeatedly triggering on a problem and viewing the behavior at various circuit locations to identify cause-and-effect relationships.
A good way to show evidence of problems is to trigger repeatedly on an edge of a waveform. With digital oscilloscopes, it is possible to build up a persistence view showing the multiple triggers overlapping. In this way, presumably an infrequent behavior occurring on the edge is captured.
Steps in a typical debug scenario that can utilize such a DSO might include:
Develop a hypothesis of a problem (i.e. a glitch is on the clock line).
Develop evidence of the problem (i.e. see the glitch on the scope screen). This step is generally accomplished by setting up the DSO to trigger on an edge and generating a persistence map. After repeatedly triggering on the edge, perhaps eventually the glitch will be included in the picture and the evidence is found.
Isolate the problem (i.e. repeatedly trigger on the glitch). Thus, the picture of the glitch determined in step 2 is used to set up smart triggers or other appropriate triggering scenarios to repeatedly trigger on the glitch so that a more complete picture of the glitch is provided.
Determine cause and effect relationships (i.e. probe the power supply line) while repeatedly triggering on the glitch as set up in step 3 to test the hypothesis of step 1.
However, when performing such a debugging process, the inventors of the present invention have determined that there is a potential problem with the DSO's capability as a debug tool when glitch or other trigger events are rare and an update rate of the DSO is slow (where rare and slow are relative terms). The metric of usefulness of the digital scope in capturing anomalies would be the number of anomalies per second that the oscilloscope can accumulate on the screen. This would be based on the edge rate of the waveform, the update rate of the oscilloscope, and the statistical frequency of anomalies on an edge:
This means that if the edge rate of the waveform does not exceed the update rate of the oscilloscope, then the scope captures every single edge (and therefore every single anomaly). The number of anomalies per second to the scope screen is equal to the edge rate multiplied by the number of anomalies per edge. When the edge rate of the waveform exceeds the update rate of the oscilloscope, the oscilloscope does not capture every edge and the number of anomalies per second to the screen is equal to the update rate of the oscilloscope multiplied by the anomalies per edge.
There are two ways to view this situation. One is to view the number of anomalies per second to screen as a metric of goodness. In this case, for high edge rates, the number of anomalies per second to screen for anomalies with a given rarity is directly proportional to the update rate of the oscilloscope. Another is to view a certain number of anomalies per second to the screen as a threshold of acceptance for debug use. In this case, the rarity of events that the oscilloscope is useful for finding is again directly proportional to the update rate. Either way, the oscilloscope with the highest update rate will be more useful for the purpose of finding anomalies.
For example, a glitch or other trigger event that occurs once per second may seem like a frequent event, but when it occurs on a one gigahertz clock, it occurs at the infrequent rate of once per billion edges. If the DSO is used with a typical update rate of two thousand updates per second, it will take:
This is a hopelessly long time to wait to see an event at that frequency of occurrence. Even with a faster scope update rate, one still needs to see enough of the events to develop a picture that allows isolation with the smart trigger.
Therefore, it would be beneficial to provide a trigger scheme and apparatus that overcomes these drawbacks of the prior art.
In accordance with the present invention, a trigger scanning capability is provided that allows a number of different trigger types (or smart trigger types) to be scanned through and applied to an acquired signal. Each trigger in the trigger scanning sequence is first loaded into the DSO trigger sequence and applied to the input acquired signal. The DSO is armed, continues to scan the input acquired waveform employing the current trigger setup for a predetermined dwell time, and after passage of the dwell time, loads a next trigger setup from the trigger scan sequence. This process continues until either a trigger event is recognized, or all of the trigger setups in the trigger scan have been applied.
When such a trigger event is recognized utilizing one of the triggers employed in the trigger scan, the trigger settings can preferably be maintained in that state for subsequent triggers
Alternatively, those trigger settings can be remembered by the DSO, and the sequence of triggers in the trigger scan can be completed. Thereafter, the stored settings may be loaded into the DSO to provide a best trigger setup for subsequent use. The trigger scan may also be set in a continuous mode where the trigger scan sequence resets after reaching the end and continuously applies the trigger sequence to the input acquired signal. User intervention preferably stops such a scan and allows for the selection, either by the user or automatically, of the trigger settings to be employed for subsequent triggering.
The trigger settings may be determined automatically by the DSO, either with or without user input. Thus, a user may indicate the types on anomalies he or she wishes to find. Trigger settings likely to find these anomalies may be generated for use in the trigger sequence. Alternatively, the DSO may simply suggest anomalies to look for based upon an analysis of the waveform. Furthermore, anomalies may be indicated by the user or automatically based upon statistical information related to the waveform, or pictorial information, such a persistence display or other provided display data.
Still other objects and advantages of the invention will in part be obvious and will in part be apparent from the specification and the drawings.
The invention accordingly comprises the several steps and the relation of one or more of such steps with respect to each of the others, and the apparatus embodying features of construction, combinations of elements and arrangement of parts that are adapted to effect such steps, all as exemplified in the following detailed disclosure, and the oscilloscope of the invention will be indicated in the claims.
For a more complete understanding of the invention, reference is made to the following description and accompanying drawings, in which:
The method and apparatus operate by loading trigger setups, either simple or complex “smart” trigger setups, arming the oscilloscope, dwelling for a certain amount of time, then moving on to load a next trigger setup. When acquisitions occur at any setting, the acquired waveforms are preferably put into a persistence display.
In accordance with the invention, if one assumes that a particular anomaly is detected at one and only one of the trigger settings, then the number of anomalies per second displayed on the oscilloscope scope screen is calculated as follows:
The maximum number of anomalies per second displayed on the screen that can preferably be attained in accordance with the preferred embodiment of the invention is equal to the maximum oscilloscope update rate divided by the number of trigger setups. In general, this maximum rate will be greater than the threshold for usefulness in debug situations because the update rate of the oscilloscope will typically be at least an order of magnitude greater than the number of trigger setups used.
Until the anomalies per second limit in accordance with the preferred embodiment of the invention is reached, the number of anomalies per second acquired for a given frequency of anomalies is proportional to an edge rate. In other words, the effectiveness of the method and apparatus in accordance with the invention increases as edge speeds grow. Contrast this with the previous calculations provided in accordance with the prior art methods and apparatuses where for a given anomaly rate, the effectiveness of such a method and apparatus is a constant, independent of edge rate.
Therefore, in accordance with the invention, the inventors have determined a number of situations where the method and apparatus in accordance with the invention are particularly preferable to any prior art method and apparatus, namely the situations are when:
Thus, the method and apparatus of the present invention are particularly advantageous when the edge rate is high and the anomalies are infrequent.
Referring first to
Therefore in accordance with the invention, the oscilloscope application first may compute statistics on typical waveforms, and then may use this information to determine the appropriate trigger settings to search for anomalies. This use of statistical waveform information for automatic trigger configuration allows the trigger to determine its own settings to search for anomalies falling outside of a statistical range. This concept is not limited to the width parameter and width trigger, and may be applied to any measurement parameter which may provide information useful for automatic trigger configuration. Additionally, these various required trigger settings could be set by a user, defined in accordance with an agreed upon industry standard, or be set in any other appropriate manner.
Further in accordance with the invention, the oscilloscope application may present the user can with an interactive option to automatically build a trigger scan sequence, as shown in
The application may then use the options selected in conjunction with statistical waveform information calculated on a stored waveform to populate a sequence with trigger setups that are likely to find the anomalies parameters, or other information of which the user is interested, upon selection of the Start Trigger button 520. The user reserves the ability to modify or eliminate setups that the application chooses and continue to add others of interest. By this method, the user may guide the application to setup a trigger scan list using prior knowledge of the system under test.
As an alternative to using statistical waveform information, the application may automatically build a trigger scan list based on a persistence display of waveform information. By using a persistence display of the waveform, calculations can be performed on the pictorial waveform image, such as the frequency or pulse width, of the waveform and a scan list can be populated. This option may be interactive as well. Thus, a user may be able to indicate one or more features in a persistence or other display, thus using these features as a basis for implementing a trigger configuration, and utilizing such trigger configuration in a trigger scan file. While a persistence display is suggested, any pictorial or other displayed or stored information may comprise the basis for a measurement or other parameter valuation to form the basis for a trigger.
As a simplification of an interactive option from the application, the user might provide input, by pressing a button or soft key for example, that will indicate to the oscilloscope application to perform an automatic setup without presenting the user with any options to select. This may be useful in a situation where the user does not have much prior knowledge of the system under test. Thus, rather than providing the user with the ability to select various anomalies as in
While executing a trigger scan sequence in accordance with the invention, the oscilloscope application may be selectively enabled to periodically pause the scan expand or compact the list of trigger setups. The application may periodically capture and store statistical information about the waveforms or alternatively, use a persistence display, and determine additional trigger setups to use for the scan list or conclude that certain trigger setups are not desired. The application may modify the list dynamically and then resume execution of the new expanded or reduced trigger scan list. Furthermore, while the trigger scan sequence is being executed, the application may continuously compile and store statistical waveform information about the waveform and use this information to expand and/or compact the list.
In addition to setting some of the trigger parameters by statistical analysis before including them in a trigger scan implementation, an automatic fitting mask (automask) may be applied to typical waveforms in advance of initiating the trigger scan sequence. As is further shown in
Furthermore, as is shown in
Referring back to
If at step 104 it is determined that the user does not wish to employ a pre-existing trigger scan file, processing then directly passes to step 110, allowing the editing of a new trigger scan file, as noted above. Upon the completion of editing, processing will pass to step 108, and when the user has completing all editing, the inquiry at step 8 will be answered in the negative, indicating that processing is complete, and processing will pass to step 115. Processing (regardless of the route 108) will allow a user to generate a new file, or edit an existing trigger scan file. Such a trigger scan file preferably includes one or more trigger settings including necessary information for setting the test and measurement apparatus to perform processing to implement each of the triggers in the file. Thus such a file will include a number of sequential states, each representing a trigger setting to be implemented on the test and measurement apparatus. These trigger states need not be stored in a file per se. It is within the scope of the invention for trigger types to be designated at runtime, utilized, and then not remembered by the apparatus. The term file is intended to refer to any method by which a sequence of triggers, whether stored permanently or not, is designated and then used to sequentially set up the apparatus.
At step 115, after the trigger scan file has been selected and edited as necessary, a mode of operation of the trigger scan sequence is determined. While any number of modes may be provided, in a preferred embodiment, three modes are available.
If at step 115 a continuous mode is selected, processing passes to step 120 to enter the continuous mode, and at step 122 the trigger scan sequence begins. Processing then proceeds, via steps 124, 126 (see
If at step 134 it is determined that a stop command has been received, processing is discontinued at step 139. The user may then review any triggers that were stored, and preferable selectively return the test and measurement apparatus to the state that generated the trigger. If there is no stop command, processing passes to step 136 where it is determined whether there are additional trigger configurations in the trigger scan setup file. If so, then at step 138 a next trigger configuration is loaded into the apparatus at step 138 and processing returns to step 130 to perform processing in accordance with the next trigger setup. If at step 136 it is determined that there are no additional trigger configurations in the trigger scan setup file, because the process is running in continuous mode, processing returns to step 128 where the first trigger configuration in the trigger scan setup file is loaded, and processing continues as during the first iteration.
If at step 115 the user selects to stop scanning on trigger mode event, such a mode is entered at step 150, and at step 152 the trigger scan sequence begins. Processing then proceeds, via steps 154, 156 (see
If at step 164 no trigger is detected, processing passes to step 166 where it is determined whether there are additional trigger configurations in the trigger scan setup file. If so, then a next trigger configuration is loaded into the apparatus at step 168 and processing returns to step 160 to perform processing in accordance with the next trigger setup. If at step 166 it is determined that there are no additional trigger configurations in the trigger scan setup file, because the process is running in a continuous mode, processing returns to step 158 where the first trigger configuration in the trigger scan setup file is loaded, and processing continues as during the first iteration.
If at step 115 the user selects a one pass mode, such a mode is entered at step 180, and at step 182 the trigger scan sequence begins. Processing then proceeds, via steps 184, 186 (see
If at step 194 no trigger is detected, processing passes to step 196 where it is determined whether there are additional trigger configurations in the trigger scan setup file. If so, then a next trigger configuration is loaded into the apparatus at step 198 and processing returns to step 190 to perform processing in accordance with the next trigger setup. If at step 196 it is determined that there are no additional trigger configurations in the trigger scan setup file, because the process is running in a one pass mode, processing ends at step 199 without finding a trigger.
While this one pass mode shows stopping processing upon determination of a trigger, it is also possible to complete the full pass, even if a trigger is detected. In this case, a storage step, such as that of step 132 in
The editing processing of step 108, and storing of current trigger setup of step 110 will now be more completely described. A trigger scan setup file is active, either through loading in step 106, or saving a current trigger file as in step 110. Once a trigger scan setup file has been generated, a user may either edit the particular settings of one or more of the sequence of triggers in the file or add a new trigger to the file. Editing may take place either by editing of a parameters file stored with the file, or by loading the configuration settings into the test and measurement apparatus, modifying the settings, and then resaving the setup to the file. To add an additional trigger to the file (or to start a file as in step 110) a user may simply set the trigger on the apparatus and save the settings to the trigger scan file, or may designate various trigger parameters. In either process, a trigger scan setup file is generated that includes one or more trigger settings that allow the test and measurement apparatus to sequentially load trigger setups without further user intervention, to allow for the searching of glitches or other interesting information in a waveform on an automated basis.
Referring next to
Waveform information display 240 shows information about the waveform or waveforms on the display. While any desired information may be shown, in this particular embodiment, displayed are the volts per division, offset, timebase and basic trigger settings. Menu selection area 250 in this particular embodiment is set up for a user to employ the features of the present invention, referred to in
Additionally, rather than simply indicating a number of anomalies, it is contemplated in accordance with the invention to provide the persistence map of waveform 251, including each waveform segment containing an anomaly. If more than one trigger type generated an anomaly, then waveform 215 would likely have two different waveform segment shapes, one corresponding to each trigger configuration. In such a case, a table may be provided listing each trigger configuration that detected an anomaly, along with number or other information. A selection of one of the trigger configurations by a user from a list may preferably reload that trigger configuration into the test and measurement apparatus, thus providing a simple, user friendly method for continuing analysis using any of the trigger configurations that detected such an anomaly.
A user may also concatenate trigger setup files, either by editing them to form a single file, or by indicating that first all of the triggers for a first file are to be used, and then all of the triggers for a next. In such a case, during processing, an inquiry asking if any trigger configurations remained would be answered in the affirmative until all configurations in all designated filed had been completed.
It is preferable to provide a visual display of processing of the waveforms as they are being scanned. Such images may include a capture of waveform pieces that generated a particular trigger condition, or an image of the shape of a particular waveform parameter being searched for so that a user is able to view what the trigger scan implementation is searching for.
The invention also contemplates the test and measurement apparatus used to implement this trigger scheme including sufficient storage memory to store any trigger configuration settings, to allow for any number of trigger settings to be implemented. Additionally, it is contemplated that any of the trigger settings may further comprise conditional or other complex trigger types, such as qualification triggers or AB triggers. In such a situation, when a first trigger is detected, the processing then searches for a second trigger. Only when this second trigger is then detected is a true trigger in accordance with this invention found. The first and second triggers (or any number of conditional triggers) may comprise any type of trigger available in the test and measurement apparatus. Such complex triggers may include various hardware and software triggers.
Additionally, such triggers may be searched for over multiple input channels, such as searching for a first trigger on a first channel and then a second trigger on a second channel. When using multiple channels, these triggers need not occur sequentially, but may also occur substantially simultaneously. Thus, a trigger scan setup file may contain two or more trigger configurations that are designated to be implemented on different channels at substantially the same time. Only if the trigger is generated on both channels at once is the requisite condition met and a true trigger is found.
A convergence feature may also be provided that allows for convergence on particular trigger settings that may be most desirable for capturing a particular anomaly. Thus, based upon the triggers generated, either in response to a single or multiple trigger types, an analysis may provide a set of suggested trigger settings that will best capture the anomaly. This trigger setting may be stored in memory, similarly to any of the other trigger settings, and may alternatively be added temporarily or permanently to a trigger scan setup file to be included in a next iteration scan. In this manner, through repetitive processing, a best set of trigger settings may be arrived at, and subsequently used by a user. Furthermore, other analysis may be performed on the stored trigger settings (and accompanying waveform portions that generated the trigger, if stored) as desired by the user.
It will thus be seen that the objects set forth above, among those made apparent from the preceding description, are efficiently attained and, because certain changes may be made in carrying out the above method and in the constructions set forth without departing from the spirit and scope of the invention, it is intended that all matter contained in the above description and shown in the accompanying drawings shall be interpreted as illustrative and not in a limiting sense.
It is also to be understood that the following claims are intended to cover all of the generic and specific features of the invention herein described and all statements of the scope of the invention which, as a matter of language, might be said to fall therebetween.
This application is a continuation in part application of U.S. patent application Ser. No. 12/117,160 filed May 8, 2008, titled “Method and Apparatus for Triggering a Test and Measurement Instrument”, currently pending, the contents thereof being incorporated herein by reference
Number | Name | Date | Kind |
---|---|---|---|
4647915 | Shank et al. | Mar 1987 | A |
4743844 | Odenheimer et al. | May 1988 | A |
4926067 | Whiteley | May 1990 | A |
5123034 | Grujon | Jun 1992 | A |
5923161 | Frankovitch et al. | Jul 1999 | A |
6396517 | Beck et al. | May 2002 | B1 |
6615148 | Pickerd | Sep 2003 | B2 |
6624829 | Beck et al. | Sep 2003 | B1 |
6639607 | Ferguson et al. | Oct 2003 | B1 |
6690398 | Beck et al. | Feb 2004 | B1 |
6707474 | Beck et al. | Mar 2004 | B1 |
6812688 | Tan et al. | Nov 2004 | B2 |
6850852 | Ferguson et al. | Feb 2005 | B1 |
6892150 | Pickerd et al. | May 2005 | B2 |
7191079 | Smith et al. | Mar 2007 | B2 |
7228348 | Farley et al. | Jun 2007 | B1 |
7409617 | Almy et al. | Aug 2008 | B2 |
7508844 | Amagai | Mar 2009 | B2 |
7676044 | Sasaki et al. | Mar 2010 | B2 |
7765086 | Hillman, Jr. et al. | Jul 2010 | B2 |
7996168 | Kushnick | Aug 2011 | B2 |
20050271087 | Amagai | Dec 2005 | A1 |
20060129355 | Hillman et al. | Jun 2006 | A1 |
20070061629 | Thums et al. | Mar 2007 | A1 |
20090281759 | Cake et al. | Nov 2009 | A1 |
Entry |
---|
Hertz, M., Waveform Scanning Solves Power-Design Challenges, Mar. 2007, Power Electronics Technology, 5 pp. |
“Digital Phosphor Oscilloscopes and Digital Serial Analyzers”, Nov. 12, 2007, DPO/DSA70000, Series Tektronix, pp. 1-16. |
“Oscilloscope Display Quality Impacts Ability to Uncover Signal Anomalies”, Feb. 17, 2005, Agilent 6000 Series Scope versus Tektronix TDS3000 Series Scope, Application Note 1552 Agilent Technologies, pp. 1-12. |
“Agilent Technologies 6000 Series oscilloscopes”, Mar. 1, 2006, Data Sheet, pp. 1-28. |
“Digital Phosphor Oscilloscopes and Digital Serial Analyzers”, DPO/DSA70000 Series Tektronix, (Nov. 12, 2007), 1-16. |
“Oscilloscope Display Quality Impacts Ability to Uncover Signal Anomalies”, Agilent 6000 Series Scope versus Tektronix TDS3000 Series Scope, Application Note 1552 Agilent Technologies,(Feb. 17, 2005), 1-12. |
“Agilent Technologies 6000 Series Oscilloscopes”, Data Sheet, (Mar. 1, 2006), 1-28. |
Number | Date | Country | |
---|---|---|---|
20090281748 A1 | Nov 2009 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12117160 | May 2008 | US |
Child | 12163147 | US |