A resting electrocardiogram (ECG), also called, is a straightforward test that measures the patterns of your heart. During this test, you will lie down in a quiet environment while electrodes are attached to your chest, arms, and legs. These electrodes record the heart's signals to a machine that shows a visual representation of your heart rhythm.