No special preparation is needed for an electrocardiogram (EKG). Before the test, let your doctor or doctor's office know what medicines you're taking. Some medicines can affect EKG results.