The ECG is a simple test which is used to detect abnormal heart rhythms and to investigate causes of chest discomfort.