A resting electrocardiogram commonly termed an ECG or EKG, is a simple, painless test that detects the electrical activity of your heart. During this procedure, you'll have to relax on a table while small electrodes are placed on your chest, arms, and legs. These electrodes record data to a machine that creates a visual representation of your heart