A resting electrocardiogram (ECG), also known as a 12-lead ECG, is a common test that detects the electrical activity of your cardiac muscles. During this test, small electrodes are affixed to your chest, arms and legs to capture the rhythmic impulses that control your heart's pumping. A resting ECG can assist doctors in detecting a variety of car