Contents


Applying a Filter to Incoming Data
Changing the Background Color of the Graphs
Changing the Plot Color Scheme of the Graphs
Connecting to a Data Source
Defining a Pedestal
Fitting a Graph Display to Its Data
Pausing Data Display
Recentering a Graph
Restoring a Display Format
Resuming Data Display
Saving a Display Format
Setting the Channels Displayed by the Oscilloscope
Setting the Display Rate
Starting Data Display
Stepping Through Input Data
Stopping Data Display
Toggeling ATWD Display Overlap
Using the Built-In Analyses
Using the Event Logger
Using the Single Peak Display
Zooming In On a Graph
Zooming Out From a Graph

FAQ

Documentation For Developers

Applying a Filter to Incoming Data

The oscilloscope always applies exactly one filter to incoming data. The default filter simply passes every incoming record to the data display. However, the user has the option to change the filter applied using the Filter menu in the main window. By selecting one of the available filter, the user apply a built-in algorithm to display or ignore incoming records.

In most cases, selecting a filter will cause a dialog box to appear, allowing the user to specify filter parameters. The only exception is the Noise Exclusion filter. Simply clicking this button will cause the software to exclude all records which do not contain a peak.

The other filters are reasonably self-explanatory. The window filter requires that a peak be present within the defined window, or the record is excluded, the threshold filter requires the highest element in the record to be above the defined threshold, and a window with threshold filter is a combination of the two.

The pedestal filter, however, is somewhat ambiguous. It passes all records to the display, but whenever it encounters a record from the DOM for which it is defined, it subtracts the defined pedestal from the defined channel. It is only possible to apply one pedestal filter at a time, and a pedestal filter cannot be applied with another filter. This may change in future releases. Defining a pedestal filter requires the user to specify an input file. This should be a file in ASCII format with the number of ADC counts for each data element on a separate row. In other words, to define a pedestal for an ATWD with 128 samples, the pedestal file should contain 128 integers on separate lines.


Changing the Background Color of the Graphs

The default background color of the display graphics in the Oscilloscope is white. This can be changed from the Display menu, under the "Set Color Scheme" option. Then the fields of the "Background" option should be set with the red, green, and blue components of the desired background color.

To find a color wheel and the components of a given color, visit The Webmaster's Color Lab. The values the color lab will produce are hexadecimal strings, with the first two characters being the red component, the next two the green, and the last two the blue. To use the results, simply convert the hex digits to decimal numbers and input them in the color set window.


Changing the Plot Color Scheme of the Graphs

The default plot color for a single graph is red. To change the color scheme of the Oscilloscope, select the "Set Color Scheme" option from the "Display" menu.

In the dialog box that pops up, there is space to set up to 8 colors. This is because the Oscilloscope defines 8 as the maximum number of waveforms that can be simultaneously displayed in the same graph. This was done to prevent clutter, and for reasons of convenience that are directly related to the color structure in the programming language used to create the Oscilloscope. Set the red, green and blue components of any color that you wish to change in the dialog box, and click OK.

Please note that any changes also affect the Single Peak display as soon as a new peak is added.

To find a color wheel and the components of a given color, visit The Webmaster's Color Lab. The values the color lab will produce are hexadecimal strings, with the first two characters being the red component, the next two the green, and the last two the blue. To use the results, simply convert the hex digits to decimal numbers and input them in the color set window.


Connecting to a Data Source

To connect to a data source, select the "Open Data Stream" option from the "File" menu. To open a socket, it is necessary to login to the DOM Hub, power on the DOMs, and activeate DOMHubApp before requesting a connection from the Oscilloscope software. Once this has been accomplished, simply type the name of the DOM Hub computer in the "hostname" box. To connect to a local file, click on the Input File button, and a dialog box will open, providing a list of the available files. Only ZIP archives known to contain testdaq data should be opened in this way. Others will cause the program to fail.

Once this is done, the Oscilloscope will prompt you to choose between one of several available DOMs by DOM Id. After choosing one or more DOMs for viewing, clicking the OK button will complete the process for opening a Data Source. However, in order to begin actually displaying data, it is necessary to follow the steps described in Starting Data Display.


Defining a Pedestal

To define a pedestal pattern for use in a filter, the user must write an ASCII file containing the pedestal pattern. The file must contain one integer on each line of the file. Each of these integers should correspond to a number of ADC counts to be subtracted from the input pattern. The pedestal file may contain more elements than the input pattern, but not less. I.E. a pedestal pattern defined for 128 ATWD samples may be applied to 16 samples, but not vice-versa.


Fitting a Graph Display to its Data

To zoom a graph to fit, first click the zoom to fit button. If it is active, passing the mouse over the button will bring up a tool tip that says "zoom to fit." The button looks like this:

When you have clicked on the button, you will be prompted to select the graph that you wish to zoom to fit. Click the mouse on the display that you wish to zoom to fit, and the graph will re-display itself.


Pausing Data Display

To pause the display of data, simply click on the pause button. Passing the cursor over the active pause button will yield a tool tip that says "pause display." The button looks like this:

When the button has been clicked, the pause button itself will become inactive and the resume button will become active.


Recentering a Graph

To recenter a graph, first click the recenter button. Passing the cursor over the active recenter button yields a tool tip that says "recenter graph." The button looks like this:

When the button is pressed, you will be prompted to select the graph to recenter. To do this, simply click on the graph you desire to recenter. Once this has been done, the prompt will change and instruct you to click on the new center.

The point in the graph that is clicked will become the new center of the graph that you selected, and the graph will re-display itself.


Restoring a Display Format

To restore a display format that was previously saved, select the "Open Display Format" option from the "File" menu. This will open a dialog box that requests the name of the format file to open. This dialog box also presents the file that was last opened during this session, if one exists, in the filename box as a default option.

To accept the filename that the system offers, simply click OK. Otherwise, enter the absolute pathname of the format file, which must be an XML document, that the Oscilloscope should read in. Clicking OK or pressing enter will cause the Oscilloscope to read the selected file and attempt to change its display settings based on information in the file.

Although it is possible to write an XML file describing the display format correctly, it is recommended that this not be done, as attempting to read an ill-formed XML file or one not containing all of the correct data will cause the software to display error messages and not update its display format.


Resume Displaying Data

It is only possible to resume displaying data after the data display has already been paused. Before this time, the resume button is inactive. Passing the cursor over the resume button displays a tool tip that says "resume data display." The button looks like this:

Resuming data display affects all running graph frames, just as pause display does.


Saving a Display Format

To save the current display format of the Oscilloscope, select the "Save Format" or "Save Format As" options from the "File" menu. Choosing "Save Format" will over-write the last file whose contents were opened, or if no file has yet been opened in this session, calls "Save Format As."

"Save Format As" opens a dialog box that requests a destination filename for the current display format. This file should include .xml at the end of its name, because the Oscilloscope saves its display formats as XML documents, and this ending will prevent any ambiguity when attempting to read the information back from the file. The behavior of the software the Oscilloscope uses to read XML is not defined when the file lacks an .xml ending, so neither is that of the Oscilloscope. In short, lack of an .xml ending is likely to cause errors in the software.


Setting the Channels Displayed by the Oscilloscope

To select channels for display, click on the "Select Channels for Viewing" option of the "Display" menu. Select the checkboxes that correspond to the ATWD channels that the Oscilloscope should display, and click OK.

Once the active channels have been chosen, the display will change during the next re-drawing of the graph frames.


Setting the Display Rate

To set the refresh rate of the data displays, select the "Set Refresh Rate" option of the "Display" menu. The dialog box that appears will prompt you to enter the time between display refreshes in seconds. The default value for this interval is 0.1 seconds.


Start Displaying Data

To start displaying data in the Oscilloscope, click on the display button. The display button is the only active button in the period after the Dom Select Window finishes. It looks like this:

Clicking this button often causes the software to appear to hang for a few moments, because the initial start-up at this period is quite memory-intensive. Included in this procedure is setting up the main display of the Oscilloscope. Once the initial operations complete, the software should be reasonably responsive.

Finally, it is important to note that once the display has been started, the display button is no longer active, because clicking it once causes all data reading and display processes to begin, and trying to start more such processes after this time would cause control conflicts.


Stepping Through Input Data

The Oscilloscope provides support to step through its input data in a variety of ways. While the program is reading and displaying records on the screen, it also keeps a running archive of the past 100 records it has displayed. Four buttons are available that allow you to interact with the records in this archive. Two of these buttons, Fast Forward and Fast Backward, are found in the toolbar.

Both buttons jump ten records in the archive, but do not allow you to move beyond the ends of the archive. If the fast forward button is pressed while already at the end of the archive, the next record is read from the input stream if Step Mode is engaged, while if the current position is less than ten records before the end of the archive, the last record in the archive will be displayed and an error message will appear. The Fast Backward button behaves in a similar way, except it never causes a record to be read from the input stream.

The Fast Forward button looks like this:
The Fast Backward button looks like this:

One can also choose to walk over a set of input data one record at a time. This, however, is one of the more involved processes in the Oscilloscope. First, select the "Step Through Data" option from the "Display" menu. This menu option will prepare the program to step through the data, but it will not actually cause the software to take the first step.

However, selecting this menu option will cause the "step" button near the bottom of the Oscilloscope, which you may have noticed before, to become active. Once this happens, it is then possible to tell the Oscilloscope to take the first step. At each click of the button, the Oscilloscope will read the next available record from its data stream and display its contents.

By constrast, the Step Backward button, which is always enabled, is simply a slower version of the Fast Backward button discussed above, moving through only one record at a time.


Stopping Data Display

To stop the display of data, simply press the stop button. Passing the cursor over the button when it is active displays a tool tip that says "stop accepting data." The button itself looks like this:

The tool tip, which you may think is unusual, is actually quite descriptive of the function of this button. Not only does the button cause the Oscilloscope to stop displaying data, but it also disconnects the Oscilloscope from its data source and returns the user interface back to its original state. In order to read more data after this button has been pressed, it is necessary to go through the entire start-up process again.


Toggelling ATWD Overlap

ATWD overlap means that data from both ATWDs on a DOM is displayed in the same set of graphs. This prevents the user from being able to distinguish in any way which ATWD the data currently being displayed came from. (In fact, the software itself forgets which source it came from as soon as the data is sent to the graph.)

To change the ATWD overlapping in the display, select the "Overlap ATWDs" option from the "Display" menu. This will open a dialog box with a pair of radio buttons, one for separate display and one for overlapped display. Select the desired mode and click OK.


Using the Built-In Analyses

The oscilloscope provides several pre-defined analyses that can be performed on incoming data. These are, for the most part, simple but informative analyses that can be used to provide a general picture of the behavior of the DOM they are applied to.

It is important to note that only records which pass the Filter applied to the incoming data are passed to the analysis or analyses being employed. This means that the results of a given analysis are critically dependant on the filter parameters used. Also, unlike Filters, an arbitrary number of analyses may be employed at a given time. The drawback, of course, being that more analyses mean more processor time between reading a record and displaying it to the screen. For a reasonable number of analysis, the difference should be negligable, as the process of extracting and displaying waveforms is quite extensive.

The following list provides a brief description of each analysis.

Average Peak
This analysis accepts every peak from a given DOM and channel and produces an average of these peaks which it displays in a specialized window. Note that the term "peak" may be misleading. A given waveform, which is the full ADC pattern described by a given input channel, may contain several independent peaks. For example, a large pulse of light may cause the DOM to see the initial pulse, which produces a peak, and then to produce "ringing artifacts" for a time, each of which would also be a peak. (Note: this is merely an example, and not an anticipated behavior of the DOMs.)
Peak Area
This analysis fills and periodically displays a histogram of peak area. The area used to fill the histogram is the area calculated by the default algorithm of the analysis.waveform package. See above for more about peaks. At time of writing, the analysis automatically updates its display after it has processed twenty-five records, though this may change in the future.
Peak Height
This analysis fills and periodically displays a histogram of the heights in ADC counts of its peaks. See above for more about peaks. At time of writing, the analysis automatically updates its display after processing twenty-five records, though this may change in the future.
Peak Separation
This analysis fills and periodically displays a histogram containing the time in nano-seconds between the trailing edge of one pulse and the leading edge of the next. For a description of how leading edges are calculated, see the package documentation for analysis.waveform. The trailing edge position is calculated using a similar algorithm. The analysis currently updates its display every twenty-five records, though this may change in the future.
Time Base
This analysis fills and periodically displays a histogram containing the time in nano-seconds between the leading and trailing edge of each peak. For a description of how leading edges are calculated, see the package documentation for analysis.waveform. The trailing edge position is calculated using a similar algorithm. The analysis currently updates its display every twenty-five records, though this may change in the future.

Using the Event Logger

The event logger is one of the most convenient tools that the Oscilloscope has. It allows the user to scroll back over a set of previous entries that represent the major events that have occurred throughout the lifetime of the current process.

The logger has a heirarchy of logging events, with info displaying all of the events recorded by the logger, and fatal displaying only fatal errors. The software writer recommends that the logger always remain on "info" in order to get the greatest benefit from the data that the software reports to the logger without the inconvenience of viewing the system's debug information. The logger contains a record of all data that is displayed to error messages, as well as information about actions taken by the user such as starting specific functions of the Oscilloscope.

To change the level of reporting in the logger, simply click on the pull-down menu to the left of the logger display and select the desired level of reporting.


Using the Single Peak Display

The Single Peak Display is a separate window that is a slave of the main Oscilloscope window. It displays up to 8 peaks, where a peak is defined to be a full "sinusoid" extracted from a parent signal.

To activate this window, select the "Single Peak Display" option from the "Display" menu. This will open the slave window, and will activate the sample button near the bottom of the main window.

Clicking the sample button will cause the Oscilloscope to prompt the user to select a graph. The software will look for the next peak to enter that graph's data stream, and once it finds it, it will be exported to the Single Peak Display window for graphing.


Zooming In on a Graph

To zoom in on a graph, one must click the zoom in button. Passing the cursor over this button causes a tool tip to be displayed, saying "zoom in." The button looks like this:

The zoom in button is a locking button. This means that once it is clicked, it will remain selected until the button is clicked again. This allows one to zoom in multiple times without repeatedly clicking the zoom in button.

When the zoom in button is clicked, the oscilloscope will instruct the user to select the new center. Whenever the user clicks in a graph display, that graph will re-center about the selected point and zoom in. At the time of writing, zooming in causes the scale of the selected graph to be reduced by 50%, though this may change in future releases.

Every time the user clicks in a graph object while the zoom in button is selected, that graph will zoom in around the given point. This will continue until the zoom in button is again clicked, meaning that it is possible to zoom in on multiple frames with little difficulty, though it also makes it easy to zoom in on a graph accidentally.


Zooming Out From a Graph

To zoom out from a graph, one must click the zoom out button. Passing the cursor over this button causes a tool tip to be displayed, saying "zoom out." The button looks like this:

The zoom out button is a locking button. This means that once it is clicked, it will remain selected until the button is clicked again. This allows one to zoom out multiple times without repeatedly clicking the zoom out button.

When the zoom out button is clicked, the oscilloscope will instruct the user to select the new center. Whenever the user clicks in a graph display, that graph will re-center about the selected point and zoom out. At the time of writing, zooming out causes the scale of the selected graph to be increased by 50%, though this may change in future releases.

Every time the user clicks in a graph object while the zoom out button is selected, that graph will zoom out around the given point. This will continue until the zoom out button is again clicked, meaning that it is possible to zoom out from multiple frames with little difficulty, though it also makes it easy to zoom out from a graph accidentally.


FAQ

  1. What can I do if I forget how a particular function works?
    One of two things. Either you can look up how it works in the help files, or you can refer to the instruction box near the bottom of the window. It contains instructions for what to do once you've activated a function that requires more than one step to complete.
  2. Is there any way I can see messages that the logger produced while I had it set to a more exclusive mode?
    Unfortunately, that is not possible with the current setup.
  3. What are the different parts of the Oscilloscope display?
    The following discussion refers to the graphic displayed below.