Measure Real Power and Returned Energy in an RC Load

Before connecting any input or output cables, connect the RIGOL DHO804’s rear Ground Terminal to earth ground using the supplied ground cable, as required by the DHO800 User Guide. Its Type-C power input does not ground the instrument through the power cord. Use the supplied power adapter and keep the AFG1022’s protective earth connected. The G0 signal-return connections described below do not replace this separate chassis earth lead.

Read the complete English article before physical assembly. Use only the named
low-voltage AFG fixture. GeneratorBNCshell,Rsense return and both scope probe
returns shareG0. Positivecurrent enters the Rload+C port from the source side.
Rshunt lies outside that defined load. Change J1 only with generatoroutputoff.
Qualify same-node gain/phase and grounded-tip zero before and after capture.
Use a single simultaneous2channel Memory export for each separate state.
Preserve paired native samples and original export,normalize seconds/volts.

Python3.10+ commands
python3 rc_power.py resistive.csv capacitive.csv restore.csv --load-ohm 1000 --shunt-ohm 1000
python3 -m unittest -v test_rc_power.py
python3 rc_power.py synthetic/resistive.csv synthetic/capacitive.csv synthetic/restore.csv

Replace the nominal resistor values with unpowered actual readings for bench
captures. The five-row observations-blank.csv contains no bench data. All three
syntheticCSV files are analytically constructed at1kHz and4Vpp actualsource.
The program linearly integrates native sample pairs over complete cycles.
Exit0 qualifies all entered records,1 unresolved waveform,2 invalid input.
Capture validity also relies on recorded manual calibration/provenance controls.
Host arithmetic/parser tests and isolated browser checks were performed.
Physical measurements await the reader's experiment.
