Medical test that uses sound waves (ultrasound) to create a moving picture of the heart to look at its structure and function.