Development of a Real-Time Magnetic Field Measurement System for Synchrotron Control