A needle is used to draw blood for blood pH tests. After that, a lab receives the blood sample for analysis. ABG (arterial blood gas) testing is a common component of blood gas analysis. It calculates the levels of carbon dioxide and oxygen in your blood.