An electrocardiogram monitors your heart rhythm. Electrodes are taped to your chest to record your heart's electrical signals, which cause your heart to beat. The signals are shown as waves on an attached computer monitor or printer.