Cobalt nanowires with high perpendicular magnetic anisotropy are formed in a diblock copolymer film template using a pulse-reversed voltage with QCM monitoring. This in situ monitoring system along with the pulse-reversed field enables new control over the magnetic crystal growth.