Electrocardiogram (EKG or ECG) machines are used to record the electrical activity of the heart over a period of time. The resulting EKG tracings, or electrocardiograms, provide important information about the heart's rhythm and can help diagnose various cardiac conditions.