An echocardiogram is a test that uses ultrasound waves to examine the heart. Because it is a non-invasive test, it is a safe and painless way to aid diagnosis of a number of abnormalities of the heart.