Magnetic measurement and diagnostics are critical for the operation of magnetic confinement experimental facilities and plasma analysis, while differential signals are mostly detected by a detector. For this, we have developed and designed a stable and reliable data integration system for HL-2M magnetic measurement and magnetic diagnostics. The system will be used for realtime control of HL-2M after the construction of HL-2M is completed. The system is built based on the PXI platform, and the software system is based on the LABVIEW platform. Key technologies realized by the system primarily include drift compensation, pulse data acquisition technology, multi-threading processing technology and transmission control communication protocol. Trials of the system were successfully carried out on HL-2A, and the results showed that the system could fully meet the construction needs of HL-2M.