Observing magnetic fields related to the workpiece