Echocardiography, more commonly known as an ultrasound of the heart, is a painless test that uses sound waves to create moving pictures of the heart.