Your cardiac test , also known as an electrocardiogram or ECG, provides a view of your heart's electrical function while you're relaxed . This standard test involves attaching small electrodes to your chest , arms, and legs . The ECG monitor then records these electrical waves , allowing your doctor to check for any irregularities that might point