Still under construction
!
Last modified in May 2004
Contents
See also: SpecLab's main index , Component window , sample rate calibration .
Besides the analysis of signals in the frequency domain, you can use Spectrum Lab for an analysis of waveforms in the time domain (through I highly recommend to use a real oscilloscope for this purpose ;-).
To open the time-domain scope in SpecLab, select "View/Windows"..."Time Domain Scope" in SL's main menu, or click on the Time Domain Scope box in Spectrum Lab's circuit window. Please note that even if the time domain scope's window is visible, the scope function itself may be turned off to save CPU power (especially on slower machines you will see that the scope is a big eater of calculation power). You can turn the scope function on and off through the scope's "Mode" menu.
One or two input channels may (or must, depending on the mode) be connected to the scope. You can select the sources in the combo boxes on the left side of the scope screen, but it's easier to select the inputs in the circuit window, where you can also see all available sources.
Note: If any of the inputs is connected to a "currently unavailable" source, the scope display may pause (for example, if one of the scope's inputs is connected to the right input channel of the soundcard, with the card not running in stereo mode). Usually, only available sources are listed in the combo box, but if you change the audio settings afterwards these sources may become unavailable.
The scope can be triggered either with its built-in trigger (which is quite simple) or with the external "Universal Trigger Block" (part of the test circuit, offers more flexibility). The universal trigger can be used to trigger the scope and the spectrum analyzer simultaneously, which is impossible with the scope's built-in trigger.
All scope settings can be saved as part of a Spectrum Lab configuration file (*.ini or *.usr), so you can quickly switch from one configuration to another through SL's Quick Settings menu. For many common applications, there is a set of preconfigured settings (scope settings only) in the scope's menu ("Presets"). There is ...
In "oscilloscope" mode, a signal can be plotted as a function of time. It's possible to
display one or two channels with common or individual vertical scaling
use one of different trigger modes
reduce the bandwidth of the input (by decimation)
display peaks and/or average value, depending on the timebase settings
Like most oscilloscope, this scope can also be switched into X/Y mode. In this mode, both channels must be active (turned on in the "Mode" menu). The first channel is used for X-deflection, the second for Y-deflection. The trigger is pretty useless in X/Y mode, though it works. An important parameter for X/Y mode is the persistance, which can be set on the "Display" tab under "Miscellaneous". A persistance of zero means eternal persistance, which means pixels will not disappear once they are plotted !
There is a simple trigger function, mainly intended to be used in Y(t) mode ("oscilloscope") but you can use the trigger also in other modes. The trigger settings can be defined on the scope's "Acquisition + Trigger" tab, where you will find these options - or maybe more:
Trigger Mode : Select one of the following:
OFF (untriggered roll)
AUTO: If a trigger signal is detected with the current 'level' setting, the display is triggered, otherwise the display will be updated without a trigger. This is also the default mode for many analog oscilloscopes, because "you always see something even with the wrong trigger settings".
NORMAL: The display will only be updated if there is a trigger event. Without a trigger signal, the display will freeze (usually due to a wrong setting of the trigger level). As with analog oscilloscopes, the AUTO mode is more frequently used than the NORMAL mode.
SINGLE SHOT: The trigger only fires once, then the display will freeze until you start it again (manually).
Slope: Allows you to select
Rising or
Falling edge of the trigger signal.
Source: Defines the source of the trigger signal..
Sync Interval Generator (internal)
Channel 1 (internal)
Channel 2 (internal)
External Trigger: If this option is selected, the "Universal Trigger Block" (part of the test circuit) replaces the scope's internal trigger. In this mode, all other controls in the "Trigger" control panel have no function - including the trigger mode, slope, coupling, etc because the Universal Trigger has its own control panel (a popup menu in the circuit window).
Trigger coupling: Select
"DC" for direct current, or better
"AC" for alternating current here, because some soundcards have a quite large offset error, which means the permanent level is not zero if there is no input signal. It may be as high as "300" on an ADC value range of +/- 32767 !
Pretrigger: Most analog oscilloscopes start the scan in the moment when the trigger fires, so the trigger event can often not be displayed completely. This is the case when the pretrigger is set to 0 % (percent). With 50 percent, the trigger event will be visible in the middle of the scope area. With 100 percent pretrigger, you will only see the PRE-TRIGGER history (pre = "before"), and the trigger event would be at the right edge of the screen.
Level: The trigger will fire when the input signal crosses this level (~voltage). The possible range is +/- 32767, because mostly 16-bit A/D converters are used (and, if not, the value range will be internally scaled to +/-32k as floating point numbers so there will be no difference when using a soundcard with 24 bits of analog resolution.
tSync: Interval time of the sync generator in seconds. Only has an
effect if the trigger source is set to "Sync Interval Generator".
This can be used if to observe periodic signals with well-known frequency,
for example the 50 (60) Hz mains, etc. Below the edit field, the reciprocal
of the interval time (= the frequency) is displayed. Remeber that -like in
many other input fields of SL- you can not only enter a fixed numerical
value but also an expression ("formula"). So, for example, if you
want to set the sync interval generator to 60 Hertz, enter "1/60"
in the field and hit the Enter/Return key to apply the edit. After
evaluation, the calculated result will be visible in the edit field.
The sync generator was a nice tool to play with when hunting for worldwide
Loran stations as explained here.
In the scope's "phase meter" mode, amplitude and phase are plotted as a function of time. It's possible to
display one or two channels
use individual or common 'oscillators' for both channels
set the bandwidth for both channels (realized by low-pass filtering decimation)
The basic function of a phase meter (as implemented here) is this:
Multiply the incoming signal with a local oscillator, here: a numerical controlled oscillator with two outputs (90°)
Low-pass filter and decimate the mixed signal until the required (low) bandwidth is reached
Calculate the amplitude and the phase angle of the decimated signal
Usually, the 'reference' clock is the soundcard's internal sample rate. It must be accurately set. Spectrum Lab offers two different ways to "calibrate" the sample rate. For long-term phase observations, you should use the "permanent sample rate calibration". It is possible to use any reference frequency, not necessarily the frequency you want to observe with the phase meter ! Example: Use a weak 15625 Hz-signal from your TV to permanently calibrate the sample rate, while plotting phase graphs for a 600 Hz- and a 850 Hz- signal on the screen. (Note: in older versions of Spectrum Lab one of the two phase meters had to be used as 'reference' to calibrate the sample rate. This limitation does no longer exist, now both phase meter channels can be used to watch 'unknown' signals. However, you can still use one of the phase meters to monitor your 'reference signal' to detect phase jumps etc).
See also: Preset phase meters
For a quick start, there are a couple of 'preset' configurations for the time domain scope.
Here just some of the presets, there may already be more:
If you have a longwave receiver for 100kHz (AM or SSB), you can use the preset "Loran Monitor" to watch the pulses on the screen. The following table has the "Group Repetion Intervals" for most Loran stations worldwide:
Loran Table
| GRI (master) | GRI 2 | GRI3 | Location of transmitter |
| 7499 | 6731 | 9007 | Sylt |
| 6731 | 7499 | Lessay | |
| 7001 | 9007 | Bo | |
| 9007 | 7001 | Eide | |
| 8000 | W Russia | ||
| 7990 | Mediterranean Sea | ||
| 7270 | 5930 | Newfoundland East | |
| 5930 | 9960 | 7270 | Canadian East Coast |
| 5980 | 7950 | 9990 | Russian-American |
| 9990 | 5980 | 7960 | North Pacific |
| 5990 | 8290 | 7960 | +9940 Canadian West Coast |
| 8930 | 9930 | 7950 | North West Pacific |
| 9940 | 5990 | US West Coast | |
| 8970 | 9960 | Great Lakes / Dana | |
| 7960 | 9990 | Gulf of Alaska | |
| 8290 | 8970 | 9610 | North Central US |
| 9960 | 8970 | 5930 | Northeast US |
| 7980 | 8970 | 9610 | Southeast US |
| 9610 | 8970 | South Central US / Boise | |
| 6042 | Bombay | ||
| 5543 | Calcutta | ||
| 7950 | 5980 | Eastern ex USSR | |
| 6780 | 8390 | China South Sea | |
| 7430 | 8390 | China North Sea | |
| 8390 | 7430 | China East Sea | |
| 9930 | 8930 | East Asia | |
| 8830 | 7030 | Saudi Arabia North | |
| 7030 | 8830 | Saudi Arabia South | |
Note: A GRI of 7499 is a group repetition interval of 0.07499 seconds.
This value must be entered in the 'tSync' field on the trigger sheet
if you want to dig such a signal out of the noise with high
"average" value..