On-chip SQUID measurements in the presence of high magnetic fields