Willem Einthoven invented the first practical electrocardiogram (ECG) in 1895 and received the Nobel Prize for it. An ECG records the electrical signals of the heart and is a common, painless test used to quickly detect heart problems. ECGs are often done in a doctor's office, clinic, or hospital and provide information about the electrical function of the heart to help diagnose conditions like abnormal heart rhythms, coronary artery disease, and heart attacks. Different types of ECGs include Holter monitors that continuously record the ECG for 24-48 hours and event monitors that record only at certain times over a longer period.