In order to solve the problem of high error in the process of measuring the rheology of drilling fluids by the common pipe flow method, an online measurement device for the rheology of drilling fluids with rectangular tubular drilling fluids was fabricated, and a calibration method for the measurement error of rheological parameters was proposed and corresponding experiments were carried out. By measuring the differential pressure value and flow, flow rate and other parameters when the drilling fluid flows through the measuring tube, upload them to the host computer for processing, use VMD to decompose the measured differential pressure data, remove the residual term, and then perform Hibert transform on each modal component to obtain its analytical signal, modulate the amplitude and phase of each analytical signal, and then reconstruct the signal to obtain the optimized differential data, and finally bring it into the constructed calibration model of the rheological parameter measurement error of drilling fluid to obtain the rheological parameters. The experimental results show that the proposed method can obtain more accurate rheological parameters of drilling fluid, improve the measurement accuracy of drilling fluid rheology parameters, so as to judge the downhole situation more accurately and ensure the personal safety of on-site staff.