This medical illustration depicts a patient undergoing electrocardiography. This test results in a tracing, seen in the upper left of the illustration, called an electrocardiogram (ECG, EKG). The different waves in the EKG represent the depolarization and repolarization of the atria and ventricles of the heart. This test is performed to measure the electrical activity of the heart.