Clamp a Ferrite Around One Wire, Then Around Both

Run a low-voltage sine wave through a 100 Ω resistor. Close a split ferrite core around just the forward wire and measure the load signal. Then close the same core around both wires. The resistor and the source still form the same circuit. What changes is which currents pass through the core.

A ferrite is a magnetic ceramic. A cable-suppression core can oppose changes in current without making electrical contact with the wire. A loop’s forward and return currents pass through the pair in opposite directions. Their ideal contributions to the magnetic field cancel when both wires go through the same bore. This experiment drives an ordinary loop current. It does not inject common-mode interference or measure electromagnetic compliance.

Build one fixture with two marked core positions

Before connecting any input or output cable, connect the DHO804 rear Ground Terminal to earth with the ground cable supplied with the oscilloscope. The Type-C power connection does not provide protective earth. Then power the DHO804 with its supplied 15 V, 3 A adapter.

The generator center drives the forward wire through two marked stations to a 100 ohm load. The return wire bypasses station S and runs beside forward at station P. Three probe grounds connect only to G0 at the source.
The load and both wire routes stay fixed. The clamp encloses forward only at S and both wires at P. The DHO804 power adapter and separate chassis earth lead are not shown; connect the earth lead as described before adding any input or output cables. Full-size PNG · Editable SVG.
ConnectionWhere it goes
GeneratorChannel 1 center to IN. Its shield to G0, a short source-side reference bar.
Forward wireIN → station S → station P → load pad F. Through either closed core once, without looping back.
Load and return100 Ω from F to R. R → station P → outside station S → G0. Hold the insulated wires adjacent through P. Route return outside the closed core body at S.
Scope tipsCH1 to IN, CH2 to F, CH3 to R. All three ground leads to the same source-side G0 bar. No scope ground lead goes to F or R.

Keep the forward path straight and both routes as short as practical. A fixture about 20–25 cm long gives room to support the core at either station. Near S, separate the return enough to clear the closed housing. Near P, run both wires side by side through the center. Fix the wire positions and nearby nonconductive supports. Open the core fully and remove it from the wire for each open baseline. Move the core without moving the wires, leads or probe clips. If a probe ground clips to R, it creates an unintended second return. A plausible waveform can then give the wrong conclusion.

Predict what can change

Impedance is the opposition to alternating current, including the phase relationship between voltage and current. The current Fair-Rite part sheet lists typical single-turn impedance magnitudes of 50 Ω at 1 MHz and 121 Ω at 5 MHz. These values use the manufacturer’s short-wire fixture and are typical at both frequencies. The sheet does not give a guaranteed minimum there. The impedance can contain both resistance and reactance, the part that changes phase.

For a simple forward-only model, use the voltage measured at IN, after the generator’s internal source resistance. Ignoring wire and probe effects, the normalized load magnitude is 100 Ω ÷ |100 Ω + Zcore|. If the core magnitude were exactly 50 Ω, a purely resistive core would give about 0.667. A purely reactive core would give about 0.894. With exactly 121 Ω, the corresponding values are about 0.452 and 0.637. Those conditional examples show why one magnitude cannot predict the actual transfer. The observed contrast can remain unresolved at either frequency, especially at 1 MHz.

At P, equal opposite loop currents ideally add to zero net current through the bore. Real probe capacitance, fixture asymmetry and currents through stray capacitance can limit that cancellation. The three probes remain in place for a controlled comparison. A preserved pair result is a statement about this loop and these probe conditions. It gives no attenuation value for a cable carrying common-mode current, where both conductors can carry current through the bore in the same direction.

Capture the three waves together

  1. Turn the generator output off while wiring. Start at 1 MHz, zero offset and 1.50 V peak-to-peak (Vpp) displayed in high-impedance (Hi-Z) mode. The AFG1022 has a nominal 50 Ω source impedance. Adjust slowly until measured IN is near 1.00 Vpp and keep it within 0.70–1.30 Vpp. Limit the displayed setting to 2.00 Vpp. At 1 Vpp across 100 Ω the load dissipates about 1.25 mW. Measure IN again after every change in core state.
  2. With the core removed, connect all three probe tips briefly to IN. Leave all ground clips at G0. Compare amplitude and the same rising midpoint on all three traces. Use the scope’s channel skew correction if necessary, then repeat this same-node check at both frequencies. Record one same_node row per frequency. Restore CH2 to F and CH3 to R. Keep the bandwidth selection, attenuation and acquisition mode fixed. If CH3 needs a more sensitive range for the return reading, verify its actual range separately with a smaller same-node sine and include that range check in your amplitude and delay allowances.
  3. Use the blank worksheet. At each frequency take six simultaneous three-channel captures in this order. Record single_open, close the core around forward only and record single_closed, then remove it and record single_reopened. At the other station, record pair_open, pair_closed and pair_reopened. Disable the generator output when moving the core. Restore output and wait for a stable sine before recording. Make no changes to cable routing or probe ground connections.
  4. Record each trace’s peak-to-peak amplitude. For F and R, record their signed rising-midpoint time relative to the nearest matching IN rising midpoint, positive when that trace crosses later. Use a stable repeated reading or calculate it from saved simultaneous waveforms. RIGOL’s Save Wave → Memory → CSV retains all enabled channels from the stopped acquisition. At 5 MHz a cycle is 200 ns. Use a timebase showing several cycles and check the actual sample interval before assigning any time allowance. The analyzer requires each resolved delay to stay within one quarter-cycle of IN (250 ns at 1 MHz or 50 ns at 5 MHz). If it exceeds that range, keep the raw trace and investigate instead of wrapping the delay. Record offsets and retain raw captures in your bench notes. If R is below 30 mVpp, keep its amplitude and enter zero for its delay. The analyzer then allows every possible return phase.

Subtract waves before comparing amplitudes

A phasor stores a sine wave’s amplitude and phase together. Using IN as the phase reference, convert a delay t to phase −360° × f × t, with frequency in hertz and time in seconds. The load voltage is the phasor F − R, and the transfer is its magnitude divided by IN. At 5 MHz, for example, a 50 ns delay is a quarter-cycle. An F amplitude of 0.75 V and a quadrature R amplitude of 0.30 V give about 0.808 Vpp across the load, instead of the 0.45 Vpp obtained by subtracting the magnitudes.

The script uses the entered amplitude fraction plus 5 mV per channel and a bounded delay allowance. For resolved R, only relative delay between F and R changes the magnitude of their difference. Two delay allowances cover that relative difference. For weak R, the full guarded return magnitude enters the worst-case sum and difference and the nominal load magnitude and phase are left blank. Open and reopened results must overlap, stay close to unity and agree within the baseline screens. The closure interval is divided by the full envelope of both open measurements at that station.

By default the worksheet uses 2% amplitude and 1 ns timing allowances. These are example bounds chosen for the experiment. Confirm that gain, repeat, reading method, sampled intervals and skew on your actual ranges fit them, or use larger allowances. The same-node check must meet both limits, but agreement on one node does not calibrate the scope. The analyzer reports the contrast only when the single-wire upper ratio is at most 0.86, the pair interval is contained in 0.86–1.14, and the lower pair ratio exceeds the upper single ratio by at least 0.10. Compare each frequency independently. Guarded intervals or baseline checks can leave either frequency unresolved.

Challenge. Why can a clamp around both wires have little effect here and still help on a noisy cable?

The load current through one wire returns through the other. Its two contributions oppose each other inside the core. Currents that go in the same direction on both wires and return by an external path add inside the core instead. This fixture drives the first kind of current and measures how much load signal remains.

Run the complete analyzer

Save the completed worksheet as observations.csv. Use python3 ferrite_compare.py observations.csv, or set --amplitude-error-percent and --delay-error-ns to your justified allowance. The experiment ZIP includes the full program, blank worksheet, schematic and tests. Valid input returns JSON and exit 0 even if the result is unresolved. Invalid input returns exit 2. Included test readings are synthetic. No physical measurements accompany this design.

Complete Python ferrite analyzer
"""Compare one conductor and a pair through a clamp-on ferrite."""

import argparse
import cmath
import csv
import json
import math
from pathlib import Path
import sys


FREQUENCIES = (1_000_000, 5_000_000)
RUNS = ("same_node", "single_open", "single_closed", "single_reopened",
        "pair_open", "pair_closed", "pair_reopened")
HEADER = ("frequency_hz", "run", "in_vpp", "forward_vpp", "return_vpp",
          "forward_delay_ns", "return_delay_ns")
EPS = 1e-9


def finite(value):
    number = float(value)
    if not math.isfinite(number):
        raise ValueError("use finite numeric readings")
    return number


def load_worksheet(path):
    if path.stat().st_size > 12_000:
        raise ValueError("worksheet exceeds 12 kB")
    data = {}
    with path.open(encoding="utf-8-sig", newline="") as stream:
        rows = csv.reader(stream, strict=True)
        if tuple(next(rows, ())) != HEADER:
            raise ValueError("use the exact worksheet header")
        for row in rows:
            if len(row) != len(HEADER) or row[1] not in RUNS:
                raise ValueError(f"row {rows.line_num}: unknown run or wrong field count")
            frequency, run = finite(row[0]), row[1]
            if frequency not in FREQUENCIES or (frequency, run) in data:
                raise ValueError("use each required frequency and run once")
            values = tuple(finite(item) for item in row[2:])
            input_pp, forward_pp, return_pp, forward_delay, return_delay = values
            if not (.70 <= input_pp <= 1.30 and .08 <= forward_pp <= 1.60
                    and 0 <= return_pp <= 1.60):
                raise ValueError(f"{frequency:g} Hz {run}: amplitude outside fixture range")
            quarter = 250_000_000 / frequency
            if abs(forward_delay) > quarter or abs(return_delay) > quarter:
                raise ValueError(f"{frequency:g} Hz {run}: delay outside ±quarter cycle")
            data[int(frequency), run] = values
    if len(data) != len(FREQUENCIES) * len(RUNS):
        raise ValueError("complete all fourteen frequency/run rows")
    return data


def complex_voltage(amplitude, delay_ns, frequency):
    phase = -math.tau * frequency * delay_ns * 1e-9
    return cmath.rect(amplitude, phase)


def transfer(values, frequency, fraction, delay_ns):
    input_pp, forward_pp, return_pp, forward_delay, return_delay = values
    forward = complex_voltage(forward_pp, forward_delay, frequency)
    returning = complex_voltage(return_pp, return_delay, frequency)
    differential = forward - returning
    input_error = fraction * input_pp + .005
    # Rotate the entire differential vector to forward phase. Only the
    # return vector moves as the relative delay changes by up to 2*delay_ns.
    angle = math.tau * frequency * 2 * delay_ns * 1e-9
    error = fraction * (forward_pp + return_pp) + .010
    error += 2 * return_pp * math.sin(angle / 2)
    magnitude = abs(differential)
    guard = [max(0, magnitude - error) / (input_pp + input_error),
             (magnitude + error) / (input_pp - input_error)]
    return dict(transfer_nominal=magnitude / input_pp, transfer_screen=guard,
                load_vpp=magnitude, load_phase_deg=math.degrees(cmath.phase(differential)),
                input_vpp=input_pp, return_vpp=return_pp)


def within(number, lower, upper):
    return lower - EPS <= number <= upper + EPS


def assess(data, frequency, fraction, delay_ns):
    readings = {run: data[frequency, run] for run in RUNS}
    source, fwd, ret, ft, rt = readings["same_node"]
    control = (all(abs(v / source - 1) <= fraction + EPS for v in (fwd, ret))
               and all(abs(t) <= delay_ns + EPS for t in (ft, rt)))
    transfers = {run: transfer(readings[run], frequency, fraction, delay_ns) for run in RUNS[1:]}
    for run in RUNS[1:]:
        if readings[run][2] < .030:
            if abs(readings[run][4]) > EPS:
                raise ValueError(f"{frequency:g} Hz {run}: set return delay to zero below 30 mVpp")
            # Guard every unknown phase with the full weak return-vector magnitude.
            source, fwd, ret, ft, _ = readings[run]
            error = fraction * fwd + (1 + fraction) * ret + .010
            source_error = fraction * source + .005
            transfers[run].update(transfer_nominal=None, load_vpp=None, load_phase_deg=None,
                transfer_screen=[max(0, fwd - error) / (source + source_error),
                                 (fwd + error) / (source - source_error)])
    ratios = {}
    repeat_checks = {}
    for name in ("single", "pair"):
        before, closed, after = (transfers[f"{name}_{state}"]
                                  for state in ("open", "closed", "reopened"))
        pre, current, post = (record["transfer_screen"] for record in (before, closed, after))
        repeat_checks[name] = (all(within(value, .80, 1.20) for value in (*pre, *post))
            and max(pre[0], post[0]) <= min(pre[1], post[1]) + EPS
            and max(abs(a - b) for a,b in zip(pre, post)) <= .06 + EPS
            and all(readings[f"{name}_{state}"][2] <= .06 + EPS for state in ("open","reopened"))
            and max(abs(closed["input_vpp"] - baseline["input_vpp"]) for baseline in (before,after))
            <= .35 + EPS)
        low, high = min(pre[0], post[0]), max(pre[1], post[1])
        ratios[name] = [current[0] / high, current[1] / low] if low > 0 else None
    if not control:
        status = "same_node_control_failed"
    elif not all(repeat_checks.values()):
        status = "open_baseline_unresolved"
    elif (ratios["single"][1] <= .86 + EPS
          and ratios["pair"][0] >= .86 - EPS and ratios["pair"][1] <= 1.14 + EPS
          and ratios["pair"][0] - ratios["single"][1] >= .10 - EPS):
        status = "pair_preserved_and_single_attenuated"
    else:
        status = "contrast_unresolved"
    return dict(status=status,same_node_control_pass=control,open_baseline_checks=repeat_checks,
                ratios_to_open=ratios,transfers=transfers)


def main():
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument("worksheet", type=Path)
    parser.add_argument("--amplitude-error-percent", type=float, default=2.0)
    parser.add_argument("--delay-error-ns", type=float, default=1.0)
    args = parser.parse_args()
    try:
        if not (.5 <= args.amplitude_error_percent <= 8 and .2 <= args.delay_error_ns <= 5):
            raise ValueError("choose a 0.5–8% amplitude allowance and 0.2–5 ns delay allowance")
        fraction = args.amplitude_error_percent / 100
        data = load_worksheet(args.worksheet)
        results = {str(f): assess(data,f,fraction,args.delay_error_ns) for f in FREQUENCIES}
        print(json.dumps(dict(amplitude_error_percent=args.amplitude_error_percent,
                             delay_error_ns=args.delay_error_ns, frequencies=results,
                             scope="Fixture-specific guarded two-frequency comparison."),
                         indent=2,allow_nan=False))
    except (OSError, ValueError, csv.Error) as error:
        print(f"Worksheet rejected: {error}", file=sys.stderr)
        return 2
    return 0


if __name__ == "__main__":
    raise SystemExit(main())

Primary references

See oscilloscope probe compensation for the 10× probe check and generator display and termination for how the source’s voltage depends on the connected load.