A resting electrocardiogram (ECG) is a routine test that measures the signals of your heart. It's taken when you are sitting or lying down. During the test, small electrodes stick to your chest, arms, and legs. These electrodes send signals towards a machine that produces a visual graph of your heart's rhythm. A resting ECG can help your doctor i