CN-121069290-B - Detection method, system and storage medium for voltage sensor precision
Abstract
The application relates to the technical field of precision detection, and discloses a detection method, a detection system and a storage medium for precision of a voltage sensor. The method comprises the steps of completing automatic testing of all voltage testing points of all poles at one time through a closed-loop measurement and control system consisting of a voltage withstanding instrument, a checking instrument, a relay control board and computer-side automatic testing software, and sequentially comprising communication handshake confirmation, automatic generation of a testing script, sequential switching of the relay control board, standard voltage output of the voltage withstanding instrument, high-speed sampling of the checking instrument, stability judgment based on instantaneous curvature, kalman+moving average double-filter amplitude estimation, calculation of ratio difference and angle difference, encryption storage of testing records and judgment of overall qualification with maximum error. The application realizes high-precision rapid batch detection, has no manual intervention in the whole process, and can digitally trace data.
Inventors
- ZHANG XINHONG
- SUN ZHIYIN
- WANG SHUCHAO
- TANG HONG
- CHENG SHIJIE
- LI HAO
Assignees
- 中宝电气有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20250922
Claims (10)
- 1. The method for detecting the precision of the voltage sensor is characterized by comprising the steps of automatically detecting the precision of all pole voltage acquisition channels in the depth fusion circuit breaker in a traceable manner at one time through a closed-loop measurement and control system consisting of a voltage withstanding instrument, a calibration instrument, a relay control board and computer-end automatic test software, wherein the method comprises the following steps: The automatic test software at the computer end sends handshake frames to the voltage withstanding instrument, the checking instrument and the relay control board, if the correct response is obtained within the preset time, the communication link is judged to be normal, otherwise, the test is terminated and a communication fault code is prompted; Generating a test script based on a preset pole number, a voltage value test point and an accuracy threshold value, and testing each voltage value test point of each pole based on the test script, wherein the test script comprises that a relay control board closes a pole line according to a test sequence, controls a checking and correcting instrument to collect sequence data of the pole at a preset sampling frequency, and after judging that the stable phase is reached based on the sequence data, the checking and correcting instrument collects stable sequence data at a preset sampling frequency, and obtains an amplitude average value and a phase based on the stable sequence data and Kalman plus sliding average double filtering, and outputs standard voltage corresponding to the voltage value test point by a voltage withstanding instrument; calculating a ratio difference and an angle difference based on the standard voltage, the amplitude mean value and the phase, generating a test record by using the pole number, the test point percentage, the standard voltage, the actually measured voltage, the ratio difference, the angle difference, the qualified state, the test time stamp and the MD5 check value of the voltage value test point after each voltage value test is finished, and storing the test record; after all voltage value test points of all the polar posts are completed, a plurality of ratio differences and angle differences are obtained, the maximum ratio difference and the maximum angle difference are obtained, the maximum ratio difference is compared with a preset first precision threshold value, the maximum angle difference is compared with a preset second precision threshold value, and whether the precision of the voltage sensor is qualified or not is judged based on the comparison result.
- 2. The method of claim 1, wherein the closed loop measurement and control system is connected based on: the high-voltage output end of the voltage-resistant instrument is connected to the public input end of the relay control board, each output end of the relay control board is respectively connected to the primary side of the corresponding pole, the secondary side small signal output end of each pole is connected to the multi-channel input end of the checking instrument, the voltage-resistant instrument and the checking instrument are respectively connected with the computer-end automatic testing software through RS232 in a two-way communication mode, and the relay control board is connected with the computer-end automatic testing software through the Ethernet in a two-way communication mode.
- 3. The method of claim 1, wherein determining that the steady phase has been reached based on the sequence data comprises: Reading real-time sampling data of a latest sampling period of the calibration instrument, taking the real-time sampling data to perform discrete Fourier transform, taking fundamental component to obtain a complex vector, deleting the earliest sampling data every time the new sampling data is acquired, adding the new sampling data, performing discrete Fourier transform again, taking the fundamental component to obtain a new complex vector, calculating the instantaneous curvature of each sampling data based on the complex vector, continuously calculating the instantaneous curvature of each sampling data in two periods, and judging that a stable stage is reached if the instantaneous curvature of two continuous periods is smaller than a preset threshold value.
- 4. A method according to claim 3, wherein calculating the instantaneous curvature of each sampled data based on the complex vector comprises: For the ith sample data, acquiring the previous sample data and the next sample data of the ith sample data, wherein the complex vectors corresponding to the three adjacent sample data are Z i-1 、Z i and Z i+1 respectively, calculating a first vector X=Z i -Z i-1 , calculating a second vector Y=Z i+1 -Z i , and calculating the instantaneous curvature k i corresponding to the ith sample data based on the first vector and the second vector, wherein the calculation formula is that Where lm represents taking the imaginary part of the complex number.
- 5. The method of claim 1, wherein obtaining the magnitude mean and the phase based on the stable sequence data and the kalman plus moving average double filtering comprises: Taking one sampling period as a sliding window, taking one sampling data as a step length, performing discrete Fourier transform on stable sequence data lines of a plurality of sampling periods to obtain fundamental wave complex vectors corresponding to each period, and obtaining amplitude values and phases of the corresponding periods based on the fundamental wave complex vectors; The amplitude values of the periods form an amplitude value sequence, the phases of the periods form a phase sequence, and the amplitude value sequence is subjected to Kalman plus moving average double filtering processing to obtain an amplitude value average value corresponding to each period.
- 6. The method of claim 1, wherein performing a kalman plus moving average double filter process on the amplitude sequence to obtain an amplitude mean value comprises: The state vector is set as an amplitude sequence, the process noise covariance is configured according to prior thermal noise statistics, the observed noise covariance is estimated in real time through an idle calibration stage, the Kalman filter performs prior estimation, prior covariance calculation, kalman gain calculation, posterior estimation and posterior covariance calculation once in each sampling beat to output real-time optimal estimation at each moment, all optimal estimation forms an optimal estimation sequence, the optimal estimation sequence is input into a sliding average filter with the window length of a preset length, the coefficient of the sliding average filter is determined based on the equal weight average measurement rate of the optimal estimation in the window, and all outputs of the sliding average filter are summed and averaged to obtain a final amplitude average.
- 7. The method of claim 1, wherein calculating the ratio and angular differences based on the standard voltage, the magnitude mean, and the phase comprises: Obtaining a sampling period corresponding to the amplitude mean value, obtaining a standard voltage corresponding to the sampling period of the voltage withstanding instrument, performing discrete Fourier transform on the standard voltage to obtain a corresponding standard amplitude value and a standard phase, taking an absolute value of the standard amplitude value subtracting value mean value to obtain a first difference value, and dividing the first difference value by the standard amplitude value to obtain a ratio difference; the phase corresponding to the obtained amplitude mean value is called actual measurement phase, and the standard phase is subtracted from the actual measurement phase and the absolute value is taken to obtain the angle difference.
- 8. The method of claim 1, wherein determining whether the sensor accuracy is acceptable based on the comparison result comprises: if the maximum ratio difference is smaller than the first precision threshold value and the maximum angle difference is smaller than the second precision threshold value, judging that the precision of the sensor is qualified, otherwise, judging that the precision of the sensor is unqualified.
- 9. Detection system for voltage sensor accuracy for implementing a detection method for voltage sensor accuracy according to any of claims 1-8, characterized in that the system comprises: the communication establishing module is used for transmitting a handshake frame to the voltage withstanding instrument, the checking instrument and the relay control board by the automatic testing software at the computer end, judging that the communication link is normal if the correct response is obtained within the preset time, and stopping the test and prompting a communication fault code if the communication link is not normal; The data processing module generates a test script based on a preset pole number, a voltage value test point and an accuracy threshold value, tests each voltage value test point of each pole based on the test script, and comprises that a relay control board closes a pole line according to a test sequence, controls a calibrator to collect sequence data of the pole at a preset sampling frequency, collects stable sequence data at a preset sampling frequency after judging that the stable phase is reached based on the sequence data, obtains an amplitude average value and a phase based on the stable sequence data and a Kalman plus sliding average double filter, and outputs standard voltage corresponding to the voltage value test point by a voltage withstanding meter; the data storage module calculates a comparison difference and an angle difference based on the standard voltage, the amplitude mean value and the phase, generates a test record from the pole number, the test point percentage, the standard voltage, the actual measurement voltage, the comparison difference, the angle difference, the qualified state, the test time stamp and the MD5 check value of the voltage value test point after each voltage value test is finished, and stores the test record; The precision judging module is used for acquiring a plurality of ratio differences and angle differences after all voltage value test points of all the polar posts are completed, acquiring the maximum ratio difference and the maximum angle difference, comparing the maximum ratio difference with a preset first precision threshold value, comparing the maximum angle difference with a preset second precision threshold value, and judging whether the precision of the voltage sensor is qualified or not based on a comparison result.
- 10. A computer readable storage medium having instructions stored thereon, which when executed by a processor, implement the detection method for voltage sensor accuracy of any of claims 1-8.
Description
Detection method, system and storage medium for voltage sensor precision Technical Field The present application relates to the field of precision detection technologies, and in particular, to a method, a system, and a storage medium for detecting precision of a voltage sensor. Background The internal components of the deep fusion breaker comprise an arc extinguishing switch, a voltage sensor, a current sensor, a spring operating mechanism and the like, wherein voltage signals are acquired by a voltage acquisition box, the voltage sensor and the like, and the voltage acquisition quantity requires higher precision due to certain errors of actual hardware, so that the matched sensor needs to be calibrated on the voltage acquisition box to enable the voltage acquisition precision to reach 0.5S level, and the precision deviation of the voltage acquisition box and the voltage transformer needs to be measured quickly in a mode. A similar China patent application with publication number CN109143145A provides an alternating current withstand voltage detection system suitable for an intelligent electric energy meter and an electricity consumption information acquisition terminal, which comprises an industrial personal computer, an alternating current withstand voltage tester and an alternating current withstand voltage test bench body, wherein the industrial personal computer is connected with a control end of the alternating current withstand voltage tester and is used for controlling the alternating current withstand voltage tester to generate voltage outputs of different grades according to different withstand voltage detection schemes, the industrial personal computer is connected with the control end of the alternating current withstand voltage test bench body and is used for controlling crimping and releasing of different epitopes of the alternating current withstand voltage test bench body and opening and closing of a high-voltage relay, the alternating current withstand voltage tester is connected with the alternating current withstand voltage test bench body and is used for outputting the generated voltages of different grades to the alternating current withstand voltage test bench body, and the alternating current withstand voltage test bench body comprises four detection stations and four sets of high-voltage relay switching units corresponding to the four detection stations respectively. A similar prior art also provides a chinese patent application publication No. CN107064853a, which provides a withstand voltage test system and method for an electric energy meter with an automatic switching function of test voltage, comprising an ac voltage tester having a plurality of voltage output terminals for outputting different voltages; each voltage output end of the alternating current voltage tester corresponds to one relay one by one, each relay is provided with a control input end and a control output end, each control output end comprises a public end and an output connection end, the output connection end of each relay is connected with one voltage output end of the alternating current voltage tester, all public ends of the relays are mutually connected to form a test voltage output end which is connected with an electric energy meter to be tested, the control input end of each relay is connected with a controller, during testing, the controller controls one relay to be in a conducting state, and the other relays to be in a disconnecting state, so that test voltage is selected, and the selected test voltage is loaded on the electric energy meter to be tested to test the voltage endurance capacity. However, the two technical schemes only pay attention to voltage switching and insulation strength of a single electric energy meter withstand voltage test, and do not relate to multichannel precision calibration and whole process data encryption traceability, so that the invention provides a detection method, a detection system and a storage medium for the precision of a voltage sensor. Disclosure of Invention The application provides a detection method, a detection system and a storage medium for the precision of a voltage sensor, which are used for rapidly and accurately detecting the precision of the voltage sensor. In a first aspect, the present application provides a detection method for voltage sensor accuracy, the method comprising: The automatic test software at the computer end sends handshake frames to the voltage withstanding instrument, the checking instrument and the relay control board, if the correct response is obtained within the preset time, the communication link is judged to be normal, otherwise, the test is terminated and a communication fault code is prompted; Generating a test script based on a preset pole number, a voltage value test point and an accuracy threshold value, and testing each voltage value test point of each pole based on the test script, wherein the test script comprises tha