An electrocardiogram (ECG or EKG) records the heart's electrical signal to look for various heart problems. On the chest, electrodes are positioned to capture the electrical impulses that cause the heart to beat. On a computer monitor or printer that is connected, the signals are displayed as waves.