Follow the Energy When Two Capacitors Share Charge

Before connecting any input or output cables, connect the DHO804’s rear Ground Terminal to earth ground with the supplied ground cable, following the DHO800 User Guide. Its Type-C power input does not ground the instrument through the power cord. Use the supplied DHO804 power adapter and keep the SPD3303X’s protective earth connected. The probe grounds and signal return do not replace the DHO804’s required earth lead.

Use the original SVG or PNG with the article and circuit-contract.json.
Keep the capacitor positions and probe settings fixed. Remove the power
supply and reset resistors before closing S1. All probe grounds go to G0.
Save simultaneous CH1, CH3, CH2 samples with the scope's Memory CSV option.

Use the blank template header and place actual measured samples in two
files, trace-a.csv and trace-b.csv. Keep the raw exports and use seconds
and volts in the four-column analysis copies.

Run the analyzer with Python 3.9 or newer. It uses the standard library.

    python3 charge_share.py trace-a.csv trace-b.csv --voltage-error-v 0.15
    python3 -m unittest -v test_charge_share.py

Adjust the per-channel voltage allowance for the actual capture chain.
Output energy is the integral over the captured resistor voltage only.
Host tests use constructed traces. The blank worksheet contains no readings.
