Signal Sampling

Signal sampling turns a continuously varying voltage into a sequence of measurements taken at selected times. You meet it in digital oscilloscopes, sound recording, and sensor interfaces. The spacing between measurements determines which signal variations the record can distinguish. A fast-looking sequence of numbers does not by itself guarantee that it represents the original waveform accurately.

Samples and time spacing

For uniform sampling, measurements are separated by a constant sampling period TsT_s. The sample rate fsf_s is the number of samples taken per second. Their relationship and the recorded sequence are


fs=1Ts,x[n]=x(nTs),n=0,1,2,…f_s=\frac{1}{T_s},\qquad x[n]=x(nT_s),\qquad n=0,1,2,\ldots


Here, x(t)x(t) is the continuous signal, and x[n]x[n] is its value at sample index nn. Use seconds for TsT_s when calculating fsf_s in hertz. For example, Ts=50.0 μsT_s=50.0\ \mu\text{s} gives


fs=150.0×10−6 s=2.00×104 Hz=20.0 kHz.f_s=\frac{1}{50.0\times10^{-6}\ \text{s}}=2.00\times10^4\ \text{Hz}=20.0\ \text{kHz}.


A continuous waveform is measured at equally spaced sampling instants.


Sampling selects measurement times. Quantization, which rounds measured amplitudes to available digital levels, is a separate operation. The sampling relationships here assume exact amplitudes and an ideal, evenly spaced clock.

The condition for reconstruction

For an arbitrary real baseband signal with no frequency content above BB, the standard sufficient condition for ideal reconstruction is


fs>2B.f_s>2B.


This assumes that BB describes the entire signal reaching the sampler, including unwanted components. It also assumes ideal reconstruction from the sample sequence. A finite recorded interval introduces additional limitations.


Terminology varies slightly between texts. Here, the Nyquist rate is 2B2B, while the Nyquist frequency of a sampler is fs/2f_s/2.


Sample rate

What it establishes for the stated signal class

fs>2Bf_s>2B

The ideal band-limited waveform can be reconstructed uniquely.

fs=2Bf_s=2B

A component at the boundary can lose information, depending on phase.

fs<2Bf_s<2B

Different allowed input waveforms can produce identical samples.


The strict inequality matters at the boundary. A sinusoid sampled exactly twice per cycle could be measured only at its zero crossings. Counting two samples per cycle therefore does not guarantee that every possible phase is represented.



Aliasing and filtering

Aliasing occurs when distinct continuous signals produce the same sampled sequence. For a sinusoidal component of frequency ff, its apparent frequency can be reported in the range from 00 through fs/2f_s/2 using


fa=min⁡k∈Z∣f−kfs∣.f_a=\min_{k\in\mathbb{Z}}|f-kf_s|.


Choose the integer kk that makes the difference smallest. This subtracts whole multiples of the sample rate and folds the result into the reported range. The sinusoid's phase may change during folding.


For example, sampling a 13.0 kHz13.0\ \text{kHz} cosine at 20.0 kHz20.0\ \text{kHz} gives an apparent frequency of


fa=∣13.0−20.0∣ kHz=7.00 kHz.f_a=|13.0-20.0|\ \text{kHz}=7.00\ \text{kHz}.


A high-frequency input can therefore appear inside a wanted low-frequency band. Increasing the precision of the stored amplitudes does not resolve that ambiguity.


An analog anti-aliasing filter limits unwanted high-frequency content before sampling. A practical filter needs a transition band between the frequencies it preserves and those it strongly attenuates, so engineers leave room between the wanted bandwidth and fs/2f_s/2.



For a specified collection of tones, preserving only a selected band can require less than reconstructing the entire input. Check where every unwanted tone aliases before deciding whether later filtering is sufficient.

What to remember

  • Uniform sampling uses x[n]=x(nTs)x[n]=x(nT_s) and fs=1/Tsf_s=1/T_s.
  • Ideal reconstruction of an arbitrary baseband signal requires fs>2Bf_s>2B under the stated assumptions.
  • Aliases are frequency ambiguities created during sampling.
  • Control unwanted analog frequencies before they overlap wanted sampled content.

Example: Signal Sampling in a Vibration Recorder

A vibration recorder is designed to preserve sensor frequencies from 00 through 1.80 kHz1.80\ \text{kHz}. During a check, its input contains a wanted 1.30 kHz1.30\ \text{kHz} cosine of amplitude 0.400 V0.400\ \text{V} and an unwanted 8.70 kHz8.70\ \text{kHz} cosine of amplitude 0.100 V0.100\ \text{V}. Both have phase zero at t=0t=0.


The recorder samples uniformly at 10.0 kHz10.0\ \text{kHz}. Assume ideal sampling and exact amplitude measurements.


a) Find the sampling period in microseconds. Considering the wanted band alone, does the sample rate satisfy the strict reconstruction condition?


Convert the sample rate to hertz and take its reciprocal:


fs=10.0 kHz=1.00×104 Hz.f_s=10.0\ \text{kHz}=1.00\times10^4\ \text{Hz}.


Ts=1fs=11.00×104 Hz=1.00×10−4 s=100 μs.T_s=\frac{1}{f_s}=\frac{1}{1.00\times10^4\ \text{Hz}}=1.00\times10^{-4}\ \text{s}=100\ \mu\text{s}.


For the wanted bandwidth,


2B=2(1.80 kHz)=3.60 kHz.2B=2(1.80\ \text{kHz})=3.60\ \text{kHz}.


Since 10.0>3.6010.0>3.60, the sample rate satisfies the strict condition for the wanted band alone. This check does not account for the unwanted tone actually reaching the sampler. The sampling period is 100 μs100\ \mu\text{s}.


b) Without an analog filter, find the unwanted tone's apparent frequency. Determine the amplitude of the resulting sampled tone at that frequency.


The sampler's Nyquist frequency is


fs2=10.02 kHz=5.00 kHz.\frac{f_s}{2}=\frac{10.0}{2}\ \text{kHz}=5.00\ \text{kHz}.


Fold the unwanted frequency into the interval from zero through this boundary:


fa=∣8.70−10.0∣ kHz=1.30 kHz.f_a=|8.70-10.0|\ \text{kHz}=1.30\ \text{kHz}.


This matches the wanted frequency. To check whether the sampled cosines add or subtract, express their phases using sample index nn:


xwanted[n]=(0.400 V)cos⁡(2π⋅0.130n),xunwanted[n]=(0.100 V)cos⁡(2π⋅0.870n).\begin{aligned} x_{\text{wanted}}[n]&=(0.400\ \text{V})\cos(2\pi\cdot0.130n),\\ x_{\text{unwanted}}[n]&=(0.100\ \text{V})\cos(2\pi\cdot0.870n). \end{aligned}


Because nn is an integer,


cos⁡[2π(1−0.130)n]=cos⁡(2π⋅0.130n).\cos[2\pi(1-0.130)n]=\cos(2\pi\cdot0.130n).


The two sampled cosines have the ________ and add:


x[n]=(0.400+0.100) Vcos⁡(2π⋅0.130n)=(0.500 V)cos⁡(2π⋅0.130n).\begin{aligned} x[n]&=(0.400+0.100)\ \text{V}\cos(2\pi\cdot0.130n)\\ &=(0.500\ \text{V})\cos(2\pi\cdot0.130n). \end{aligned}


The apparent tone is at 1.30 kHz1.30\ \text{kHz} with amplitude 0.500 V0.500\ \text{V}. A digital frequency filter cannot separate these overlapping contributions using frequency alone.


c) An ideal analog low-pass filter passes frequencies through 2.40 kHz2.40\ \text{kHz} unchanged and removes higher frequencies. Where should it be placed, and what tone will then be recorded?


Place the filter before the sampler so it acts on the original analog frequencies. Its cutoff preserves the entire intended band because


1.80 kHz<2.40 kHz.1.80\ \text{kHz}<2.40\ \text{kHz}.


It removes the unwanted tone because


8.70 kHz>2.40 kHz.8.70\ \text{kHz}>2.40\ \text{kHz}.


The filtered input also meets the strict sampling condition, since


2(2.40 kHz)=4.80 kHz<10.0 kHz.2(2.40\ \text{kHz})=4.80\ \text{kHz}<10.0\ \text{kHz}.


The wanted tone passes unchanged, and the unwanted tone has ________ after this ideal filter. Therefore the recorded sequence is


x[n]=(0.400 V)cos⁡(2π⋅0.130n).x[n]=(0.400\ \text{V})\cos(2\pi\cdot0.130n).


The recorder now represents the wanted 1.30 kHz1.30\ \text{kHz} tone with its correct amplitude of 0.400 V0.400\ \text{V}. A physical filter would require a specified transition band and finite attenuation rather than the ideal abrupt cutoff assumed here.

A digital pressure recorder in a laboratory takes one voltage measurement every 0.250 ms0.250\ \text{ms}, with the measurements evenly spaced in time. What is the recorder's sample rate, expressed in kilohertz?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A sensor produces wanted signals below 2 kHz and unwanted interference near 9 kHz. Its recorder samples at 8 kHz. The engineer wants to keep the interference from corrupting the recorded 0–2 kHz band.


Complete the design instruction using analog or digital (spelled analog, not analogue) for the first blank and before or after for the second blank: place an low-pass filter the sampler, with a response that preserves the wanted signals and sufficiently attenuates the interference.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

An analog filter produces a real baseband voltage containing no frequencies above 3.10 kHz3.10\ \text{kHz}. A component at exactly 3.10 kHz3.10\ \text{kHz} may have any phase. Assuming ideal uniform sampling and reconstruction, which is the smallest offered sample rate that guarantees unique reconstruction of this signal class?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice