- You will have electrocardiograms (EKGs) to check your heart function. The sensors will be attached at the beginning of the visit and then removed before you leave. You will be attached to the machine for several hours, but you will be able to be disconnected to take bathroom breaks, if needed.