An electrocardiogram (ECG) is a recording of the electrical forces in the heart. It allows for the detection of heart rhythm abnormalities such as supraventricular tachycardia or atrioventricular block. It can be done on children of any age and is completely painless.