An electrocardiogram or ECG is a common medical examination to record cardiac activity. It is based on the measurement of electrical currents crossing the organ at each of its contractions.