A resting electrocardiogram also known as an ECG or EKG, is a simple, painless test that detects the electrical activity of your heart. During this procedure, you'll be asked to rest comfortably a table while small electrodes are placed on your chest, arms, and legs. These electrodes send signals to a machine that creates a visual representation of