An Electrocardiogram (EKG or ECG) is a diagnostic tool used to measure the electrical activity of the heart. This test is crucial in identifying various cardiac conditions such as arrhythmias, myocardial infarction, and other heart-related abnormalities.