It is made by reacting cadmium with iodine .
Also , the compound can be made by heating cadmium with iodine .