A resting electrocardiogram (ECG) offers a valuable glimpse of your heart's rhythm. During this routine test, electrodes are attached to your chest, arms, and legs. These electrodes detect the subtle impulses that control your heart's beat. The resulting tracing, a pattern of curves, reveals important information about the structure of your heart.