A test that records the electrical activity of the heart. The ECG is used to measure the rate and regularity of beats as well as the size and position of the chambers, any damage to the heart, and effects of drugs or devices to regulate the heart (pacemaker). See also exercise treadmill ECG , Holter monitor (24h) .