An electrocardiogram (ECG) is one of the simplest and fastest tests used to evaluate the heart. Electrodes (small, plastic patches that stick to the skin) are placed at certain locations on the chest, arms, and legs. When the electrodes are connected to an ECG machine by lead wires, the electrical activity of the heart is measured, interpreted, and printed out.