Recording of the position and motion of the heart walls or internal structures of the heart and neighbouring tissue by the echo obtained from beams of ultrasonic waves directed through the chest wall.