A resting electrocardiogram referred to as an ECG or EKG, is a simple, painless test that detects the electrical activity of your heart. During this procedure, you'll need to relax on a table while small electrodes are attached to your chest, arms, and legs. These electrodes transmit information to a machine that creates a visual representation of