It’s a common and painless test used to quickly detect heart problems and monitor your heart’s health. Electrocardiograms — also called ECGs or EKGs — are often done in a doctor’s office, a clinic or a hospital room. ECG machines are standard equipment in operating rooms and ambulances