A Hall probe composed of three planar hall sensors is the fundamental tool to measure three-dimensional magnetic field value.The factors affecting accuracy of the measurement
such as the ambient temperature
manufacturing quality of the probe and so on
must be corrected by calibrating the probe effectively.In this paper
we use a rotatable standard electromagnet to calibrate the probe and correct the temperature and planar Hall effect.The calibrated probe has been used successfully at Shanghai Synchrotron Radiation Facility in magnetic field measurements of the elliptically polarized undulators
where the horizontal and vertical magnetic fields co-exist.