A resting electrocardiogram (ECG) is a common test that measures the rhythm of your heart. It's taken when you are sitting or lying still. During the test, small electrodes get attached your chest, arms, and legs. These electrodes send signals to a device that displays a visual graph of your heart's rhythm. A resting ECG can help your doctor dete