Another test, called a nuclear scan, is used to study heart function. A small amount of radioactive material is injected into a vein and a camera takes pictures of the heart. The parts of the heart that are not getting enough oxygen show up in the picture.