During an EKG (electrocardiogram): Preparation: You will lie down, and electrodes will be attached to your chest, arms, and legs. Procedure: The machine will record the electrical activity of your heart for a few minutes. Completion: The electrodes are removed, and you can return to normal activities immediately.