During an ECG, small electrodes are placed on the skin of the chest, arms, and legs. These electrodes detect the electrical impulses generated by the heart and transmit them to a machine, which records the electrical activity as a series of waves on graph paper or a computer screen. The waves represent different phases of the cardiac cycle, including depolarization and repolarization of the heart chambers. The resulting ECG tracing provides information about the heart's rhythm, rate, and conduction pathways, which can be analyzed by a healthcare provider to make diagnostic and therapeutic decisions. ECGs are quick, painless, and non-invasive, making them a valuable tool in the evaluation of cardiac function.