Triggering, Measurements and FFT Mode
A digital scope captures billions of samples a second, but a screen shows one stretch of them. The trigger chooses which stretch, so that a repetitive waveform stands still and a rare event is caught. Once the waveform is captured, the scope measures it (amplitude, frequency, rise time) and can transform it into a spectrum (FFT mode). Each step has settings that change the answer. This lesson covers the trigger system in more depth than EE Foundations, the accuracy of automatic measurements, and how to read a scope's FFT without fooling yourself.
The trigger system
An edge trigger fires when the signal crosses the level in the chosen slope. The trigger position places that instant on screen; samples before it (pre-trigger) come from the memory that was filling continuously, so a scope can show what happened before the event. After a trigger the scope is blind for a holdoff time and its own rearm (dead) time.
| Setting | What it does | Use it when |
|---|---|---|
| mode Auto | triggers by itself if no event arrives | finding a signal, DC levels |
| mode Normal | waits for a valid trigger, screen holds the last capture | stable display of repetitive or irregular signals |
| mode Single | one capture, then stop | one-off events: power-up, a fault |
| coupling DC / AC | trigger path sees the signal with or without its DC | AC to trigger a small ripple on a large DC |
| HF reject, LF reject | low- or high-pass filter in the trigger path only | noisy edges, mains hum riding on the signal |
| noise reject (hysteresis) | the signal must cross a band, not a line | noisy slow edges that trigger twice |
| holdoff | ignore triggers for a set time after each one | complex repetitive patterns, bursts: set holdoff just longer than the burst |
| pulse width, runt, glitch, setup/hold, serial | trigger on a qualified event | hunting rare faults, protocol frames |
A waveform that will not stand still usually has more than one valid trigger point per period (a burst, a pattern, a noisy edge); holdoff or a qualified trigger fixes it. "Jitter" of the whole trace around the trigger point is trigger jitter or real signal jitter; measure it with persistence and statistics.
Automatic measurements and their uncertainty
Scopes measure amplitude parameters (Vpp, Vmax, Vtop/Vbase from a histogram, RMS, mean) and time parameters (frequency, period, rise time, duty cycle, delay) on the captured record, often with statistics over many captures. They are convenient, but limited by:
- DC vertical gain accuracy, typically to of full scale (illustrative; check the datasheet). On an 8-bit scope at , a reading is uncertain by roughly ( of divisions), far worse than a DMM.
- Quantisation: one code is about of a division on an 8-bit scope.
- Bandwidth: amplitude and rise time of fast signals (previous lesson).
- Timebase accuracy: a few ppm to tens of ppm; frequency read from a scope is far worse than a counter's because it is computed from few periods (Generators and Counters).
- Measurement gating and algorithm: whether "Vpp" includes noise spikes, how "top" is found, how many cycles enter "RMS". A partial cycle in the window biases RMS and frequency.
Use the scope to see and to measure time relations; use a DMM, counter or power analyser for the number you report.
FFT mode
The scope's FFT takes samples at rate and shows frequency bins from to :
The resolution is set by the time window, not the sample rate: to separate tones apart you need at least of signal (more, with a window). The record is cut out of a continuous signal, so unless it holds a whole number of periods, the tone's energy leaks into neighbouring bins. A window function tapers the ends of the record to reduce leakage, at the cost of a wider peak:
| Window | Amplitude error for a tone between bins (worst) | Leakage far from the tone | Use for |
|---|---|---|---|
| rectangular | up to | high (sidelobes , falling slowly) | transients that fit the record, exactly periodic signals |
| Hann | up to | low | general purpose, noise |
| flat-top | about | low, but very wide peak | accurate amplitudes of tones |
The full theory is in Signals and Fourier and Windows. Scopes typically display in dBV (re ) or dBm (re into ); know which before comparing with a spectrum analyser.
Worked example: a weak tone next to a strong one
Given: a (peak) tone at and a (peak, ) tone at , sampled at with .
Find: the bin width, and whether each window shows the weak tone.
Solve: , so falls exactly between two bins (worst case). The tone is 19.5 bins from the strong one. A rectangular window's leakage at that distance is about , i.e. , which buries a tone. Hann's sidelobes fall as the cube of the distance and leave it visible.
Check: the program confirms it:
import numpy as np
from scipy.signal import windows
fs, N = 100e3, 1000 # 100 kSa/s, 1000 points: bin width 100 Hz
t = np.arange(N) / fs
x = 1.0 * np.sin(2 * np.pi * 1050 * t) + 0.001 * np.sin(2 * np.pi * 3000 * t) # 1 V at 1.05 kHz, 1 mV at 3 kHz
f = np.fft.rfftfreq(N, 1 / fs)
for name, w in (("rectangular", np.ones(N)), ("Hann", windows.hann(N, sym=False)),
("flat-top", windows.flattop(N, sym=False))):
X = np.abs(np.fft.rfft(x * w)) * 2 / np.sum(w) # amplitude spectrum, volts peak
k1 = np.argmax(X)
k3 = int(round(3000 / (fs / N)))
floor = np.median(X[k3 - 8:k3 - 3]) # leakage level a few bins below 3 kHz
print(f"{name:12s}: peak {X[k1]:.4f} V at {f[k1]:6.0f} Hz ({20 * np.log10(X[k1]):+6.2f} dB re 1 Vpk), "
f"3 kHz bin {20 * np.log10(X[k3]):6.1f} dB, leakage near it {20 * np.log10(floor):6.1f} dB")
print(f"bin width (frequency resolution) = fs/N = {fs / N:.0f} Hz, span 0..{fs / 2 / 1000:.0f} kHz")rectangular : peak 0.6521 V at 1000 Hz ( -3.71 dB re 1 Vpk), 3 kHz bin -41.4 dB, leakage near it -36.8 dB
Hann : peak 0.8489 V at 1100 Hz ( -1.42 dB re 1 Vpk), 3 kHz bin -60.0 dB, leakage near it -78.2 dB
flat-top : peak 0.9989 V at 1100 Hz ( -0.01 dB re 1 Vpk), 3 kHz bin -60.0 dB, leakage near it -106.7 dB
bin width (frequency resolution) = fs/N = 100 Hz, span 0..50 kHz
The rectangular window shows the big tone low and the bin too high (leakage); Hann shows the weak tone correctly at but the strong one low; flat-top gets both amplitudes right.
Guided lab: harmonics of a square wave in FFT mode
Hand calculation. A square wave of amplitude has odd harmonics of amplitude : relative to the fundamental, at the 3rd, at the 5th, at the 7th.
Simulation. Change x in the program to np.sign(np.sin(2 * np.pi * 1000 * t)) and read the harmonics with each window.
What you would measure. Feed a , square wave from a generator into the scope, choose (a record, resolution) and FFT mode with a Hann window, then flat-top. Expect peaks at at about relative to the fundamental within (flat-top), small even harmonics from the generator's duty-cycle error, and a noise floor set by the 8-bit ADC (often to below full scale).
Hazards and safe setup. Generator levels only.
Pitfalls
- Normal trigger mode on a signal that never crosses the level: a blank screen that looks like "no signal".
- Using AC trigger coupling and wondering why a slow DC step does not trigger.
- Reporting scope amplitude measurements to four digits.
- Reading an FFT amplitude with the rectangular window, or the resolution as .
Practice
- A scope FFT uses and 100 000 points. What is the bin width and the span?
- A burst of 5 pulses repeats every ; the trace jitters because each pulse can trigger. What holdoff do you set if the burst lasts ?
Answer
- , span to .
- More than and less than the time to the next burst, e.g. : the first pulse of each burst then always triggers.
Test yourself
The frequency resolution of a scope's FFT is set by
- the sample rate alone
- the record duration,
- the vertical scale
- the window only
Which window gives the most accurate amplitude for a single tone?
- rectangular
- Hann
- flat-top
- none; windows only change frequency
Holdoff is useful when
- the signal has no edges
- a repetitive pattern contains several valid trigger points per period
- the scope bandwidth is too low
- measuring DC
Single trigger mode is used to
- average many captures
- capture a one-off event such as a power-up transient
- increase bandwidth
- measure DC accurately