Error characterization and calibration of real-time magnetic field measurement systems