A tester precision self-calibration method and tester
The ADC conversion value and temperature drift coefficient are calculated through the self-test path, the working status of the high-precision reference source device is determined, and the multi-channel ADC and DAC circuits are calibrated. This solves the problem of increased tester error in multi-terminal differential protection systems and realizes precision self-calibration and accurate testing in different environments.
Patent Information
- Application Number
- CN202411664352.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2044-11-20
AI Technical Summary
Differential terminal equipment from different manufacturers in a multi-terminal differential protection system is incompatible, causing the tester's test error to increase after a period of operation, affecting the accuracy of consistency testing.
The ADC conversion value is calculated through the self-test path to obtain the temperature drift coefficient and theoretical working value, to determine whether the high-precision reference source device is working normally, and to calibrate the multi-channel high-speed ADC and DAC circuits, and to achieve precision self-calibration using temperature sensors and FPGA main controller.
Maintain the accuracy of the tester in different working environments, avoid self-calibration failures caused by abnormalities in the high-precision reference source device, ensure the calibration effect of multi-channel ADC and DAC circuits, and improve test accuracy.
Smart Images

Figure CN119471531B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of testers, and in particular to a tester precision self-calibration method and a tester. Background Art
[0002] With the large-scale integration of renewable energy, pilot programs are underway for the application of multi-terminal differential protection in distribution networks. However, because different manufacturers utilize different models, parameters, and protocols for differential system equipment, differential terminals from different vendors are not interoperable or interchangeable. Consequently, only a single vendor's differential terminal equipment can be used on the same line, creating significant risks and inconvenience for subsequent system operations and maintenance.
[0003] The multi-terminal differential protection consistency tester fundamentally solves the incompatibility problem of distribution terminals from different manufacturers on the same line of the multi-terminal differential protection system through consistency testing. However, after the tester has been running for a period of time, the test error may become larger, thereby affecting the accuracy of the consistency test. Summary of the Invention
[0004] The present invention provides a tester precision self-calibration method and a tester. The method first calculates a first ADC conversion value through a self-test path, and then sequentially calibrates a multi-channel high-speed ADC circuit and a multi-channel high-speed ADC circuit according to the first ADC conversion value. Thus, even in different working environments, the tester precision self-calibration can be completed based on the temperature value of the current working environment.
[0005] An embodiment of the present invention provides a tester accuracy self-calibration method, comprising:
[0006] Upon receiving the calibration signal, reading the instantaneous temperature value of the current working environment from the temperature sensor, obtaining the temperature drift coefficient of the high-precision reference source device at the instantaneous temperature value and the first theoretical working value of the high-precision reference source device at standard room temperature;
[0007] When determining that the self-test path is in a connected state, obtaining a first ADC conversion value output by a single-channel high-precision ADC circuit; wherein the self-test path is composed of the temperature sensor, the high-precision reference source device, and the single-channel high-precision ADC circuit connected in sequence;
[0008] determining whether the high-precision reference source device is in a normal working state according to the temperature drift coefficient, the first theoretical working value, and the first ADC conversion value;
[0009] When it is determined that the high-precision reference source device is in a normal working state, the self-test path is in a disconnected state, and the first sampling loop is in a connected state, reading a second ADC conversion value output by a multi-channel high-speed ADC circuit in the first sampling loop, and calibrating the multi-channel high-speed ADC circuit in the first sampling loop based on the second ADC conversion value and the first ADC conversion value;
[0010] When it is determined that the first sampling loop is in a disconnected state and the second sampling loop is in a connected state, a digital signal is sent to the second sampling loop so that the second sampling loop outputs a corresponding third ADC conversion value based on the received digital signal; wherein the second sampling loop is composed of a multi-channel DAC circuit, a DAC conditioning circuit, and a calibrated multi-channel high-speed ADC circuit connected in sequence;
[0011] The multi-channel DAC circuit in the second sampling loop is calibrated according to the third ADC conversion value and the digital signal.
[0012] Furthermore, judging whether the high-precision reference source device is in a normal working state according to the temperature drift coefficient, the first theoretical working value, and the first ADC conversion value includes:
[0013] Calculating a second theoretical operating value of the high-precision reference source device at the instantaneous temperature value according to the temperature drift coefficient and the first theoretical operating value;
[0014] When it is determined that the self-test path is in a connected state, reading a first ADC conversion value output by a single-channel high-precision ADC circuit in the self-test circuit;
[0015] Calculating a sampling error according to the first ADC conversion value and the second theoretical working value;
[0016] Determine whether the sampling error is within a preset error range,
[0017] If so, it is determined that the high-precision reference source device is in normal working condition.
[0018] If not, it is determined that the high-precision reference source device is not in a normal working state.
[0019] Furthermore, calibrating the multi-channel high-speed ADC circuit in the first sampling loop according to the second ADC conversion value and the first ADC conversion value includes:
[0020] Calculating a first precision calibration value according to the second ADC conversion value and the first ADC conversion value;
[0021] Replace a first historical precision calibration value existing in a first calibration parameter with the first precision calibration value to obtain a calibrated multi-channel high-speed ADC circuit; wherein the first calibration parameter is used to calibrate the multi-channel high-speed ADC circuit.
[0022] Further, the calibration of the multi-channel DAC circuit in the second sampling loop according to the third ADC conversion value and the digital signal comprises:
[0023] According to the third ADC conversion value and the digital signal, a second precision calibration value is calculated;
[0024] Replace a second historical precision calibration value existing in a second calibration parameter with the second precision calibration value to obtain a calibrated multi-channel DAC circuit; wherein the second calibration parameter is used to calibrate the multi-channel DAC circuit.
[0025] Further, the test instrument precision self-calibration method further comprises:
[0026] The historical temperature value detected by the temperature sensor when the first historical precision calibration value is solved is called;
[0027] According to the first precision calibration value, the first historical precision calibration value, the real-time temperature value, the historical temperature value, and a preset first temperature drift compensation constant, a first coefficient and a second coefficient for measuring the relationship between temperature and calibration parameters are solved;
[0028] According to the first coefficient, the second coefficient, and the first temperature drift compensation constant, an original first calibration equation is updated to obtain an updated second calibration equation; wherein the first calibration equation is used to calibrate the first calibration parameter of the multi-channel high-speed ADC circuit.
[0029] Further, the test instrument precision self-calibration method further comprises:
[0030] According to the second precision calibration value, the second historical precision calibration value, the real-time temperature value, the historical temperature value, and a preset second temperature drift compensation constant, a third coefficient and a fourth coefficient for measuring the relationship between temperature and calibration parameters are solved;
[0031] According to the third coefficient, the fourth coefficient, and the second temperature drift compensation constant, an original third calibration equation is updated to obtain an updated fourth calibration equation; wherein the third calibration equation is used to calibrate the second calibration parameter of the multi-channel DAC circuit.
[0032] Further, the test instrument precision self-calibration method further comprises:
[0033] When it is determined that the high-precision reference source device is not in a normal working state, the precision self-calibration is terminated.
[0034] An embodiment of the present invention further provides a tester, comprising: an FPGA main controller, a temperature sensor, a high-precision reference source device, a single-channel high-precision ADC circuit, a multi-channel high-speed ADC circuit, an ADC conditioning circuit, a multi-channel DAC circuit, a DAC conditioning circuit, a first single-pole double-throw switch, a second single-pole double-throw switch, and a single-pole triple-throw switch;
[0035] One end of the temperature sensor is connected to the FPGA main controller, and the other end is connected to the high-precision reference source device; the first moving end of the first single-pole double-throw switch is connected to the high-precision reference source device, the first fixed end of the first single-pole double-throw switch is connected to the input end of the single-channel high-precision ADC circuit, and the second fixed end of the first single-pole double-throw switch is connected to the third fixed end of the single-pole triple-throw switch; the output end of the single-channel high-precision ADC circuit is connected to the FPGA main controller; the second moving end of the single-pole triple-throw switch is connected to the input end of the ADC conditioning circuit, and the fourth fixed end of the single-pole triple-throw switch is connected to the fifth fixed end of the second single-pole double-throw switch; the input end of the multi-channel high-speed ADC circuit is connected to the output end of the ADC conditioning circuit, and the output end of the multi-channel high-speed ADC circuit is connected to the FPGA main controller; the input end of the multi-channel DAC circuit is connected to the FPGA main controller, and the output end of the multi-channel DAC circuit is connected to the input end of the DAC conditioning circuit; the third moving end of the second single-pole double-throw switch is connected to the output end of the DAC conditioning circuit;
[0036] The FPGA main controller is configured to, upon receiving a calibration signal, read the instantaneous temperature value of the current working environment from the temperature sensor, obtain the temperature drift coefficient of the high-precision reference source device at the instantaneous temperature value, and the first theoretical working value of the high-precision reference source device at standard room temperature; obtain the first ADC conversion value output by the single-channel high-precision ADC circuit when the first movable end is connected to the first fixed end, and determine whether the high-precision reference source device is in a normal working state based on the temperature drift coefficient, the first theoretical working value, and the first ADC conversion value; and determine whether the high-precision reference source device is in a normal working state after determining that the high-precision reference source device is in a normal working state, the first movable end is connected to the second fixed end, and the second movable end is in a normal working state. When the third movable terminal is connected to the fifth fixed terminal, the second ADC conversion value output by the multi-channel high-speed ADC circuit is read, and the multi-channel high-speed ADC circuit is calibrated based on the second ADC conversion value and the first ADC conversion value to obtain a calibrated multi-channel high-speed ADC circuit. When the third movable terminal is connected to the fifth fixed terminal and the second movable terminal is connected to the fourth fixed terminal, a first digital signal is sent to the multi-channel DAC circuit, and a third ADC conversion value output by the calibrated multi-channel high-speed ADC circuit is read, and the multi-channel DAC circuit is calibrated based on the third ADC conversion value and the first digital signal to obtain a calibrated multi-channel DAC circuit.
[0037] Furthermore, the tester further includes: an input port and an output port; the input port is connected to the sixth fixed terminal of the single-pole triple-throw switch; the output port is connected to the seventh fixed terminal of the second single-pole double-throw switch;
[0038] The input port is configured to receive a first initial analog signal when the sixth fixed terminal is connected to the second movable terminal and the seventh fixed terminal is connected to the third movable terminal, and transmit the first initial analog signal to the ADC conditioning circuit;
[0039] The ADC conditioning circuit is configured to condition the first initial analog signal to obtain a conditioned first analog signal, and transmit the first analog signal to the calibrated multi-channel high-speed ADC circuit;
[0040] The calibrated multi-channel high-speed ADC circuit is used to convert the first analog signal into a second digital signal to be processed, and transmit the second digital signal to the FPGA main controller;
[0041] The FPGA main controller is further configured to process the second digital signal according to a preset processing logic to obtain a processed third digital signal, and transmit the third digital signal to the calibrated multi-channel DAC circuit;
[0042] The calibrated multi-channel DAC circuit is used to convert the third digital signal into a second analog signal and transmit the second analog signal to the DAC conditioning circuit;
[0043] The DAC conditioning circuit is configured to condition the second analog signal to obtain a conditioned third analog signal, and transmit the third analog signal to the output port;
[0044] The output port is used to output the third analog signal.
[0045] Furthermore, the tester further includes: an ADC protection circuit and a DAC protection circuit; one end of the ADC protection circuit is connected to the input port, and one end is connected to the sixth fixed terminal; one end of the DAC protection circuit is connected to the output port, and one end is connected to the seventh fixed terminal;
[0046] The input port is further configured to receive a second initial analog signal when the sixth fixed terminal is connected to the second movable terminal and the seventh fixed terminal is connected to the third movable terminal, and transmit the second initial analog signal to the ADC protection circuit;
[0047] The ADC protection circuit is configured to filter out noise in the second initial analog signal to obtain a filtered fourth analog signal, and transmit the fourth analog signal to the ADC conditioning circuit;
[0048] The ADC conditioning circuit is further configured to condition the fourth analog signal to obtain a conditioned fifth analog signal, and transmit the fifth analog signal to the calibrated multi-channel high-speed ADC circuit;
[0049] The calibrated multi-channel high-speed ADC circuit is further used to convert the fifth analog signal into a fourth digital signal to be processed, and transmit the fourth digital signal to the FPGA main controller;
[0050] The FPGA main controller is further configured to process the fourth digital signal according to a preset processing logic to obtain a processed fifth digital signal, and transmit the fifth digital signal to the calibrated multi-channel DAC circuit;
[0051] The calibrated multi-channel DAC circuit is further configured to convert the fifth digital signal into a sixth analog signal, and transmit the sixth analog signal to the DAC conditioning circuit;
[0052] The DAC conditioning circuit is further configured to condition the sixth analog signal to obtain a conditioned seventh analog signal, and transmit the seventh analog signal to the DAC protection circuit;
[0053] The DAC protection circuit is configured to filter out noise in the seventh analog signal to obtain a filtered eighth analog signal, and transmit the eighth analog signal to the output port;
[0054] The output port is further used to output the eighth analog signal.
[0055] The following beneficial effects are achieved by implementing the present invention:
[0056] The present invention provides a tester precision self-calibration method and a tester. The method obtains an instantaneous temperature value of a current working environment read by a temperature sensor, thereby determining a temperature drift coefficient of a high-precision reference source device at the instantaneous temperature value. The method then determines whether the high-precision reference source device is in a normal working state based on the temperature drift coefficient, a first theoretical working value, and a first ADC conversion value obtained when a self-test path is connected. The high-precision reference source device is sampled by a single-channel high-precision ADC circuit and compared and calculated with data pre-stored in an FPGA main controller, thereby avoiding self-calibration failures due to abnormalities of the high-precision reference source device.
[0057] Then, when it is determined that the high-precision reference source device is in a normal working state, the first sampling loop is connected, and the second ADC conversion value output by the multi-channel high-speed ADC circuit in the first sampling loop is read. The multi-channel high-speed ADC circuit is calibrated based on the first ADC conversion value obtained when the self-test path is connected, and the multi-channel DAC circuit is calibrated based on the calibrated multi-channel high-speed ADC circuit. Since temperature is a key factor affecting the accuracy of the tester, the multi-channel high-speed ADC circuit and the multi-channel DAC circuit are calibrated based on the current operating temperature of the tester, thereby achieving the purpose of self-calibration of the tester accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the implementation. Obviously, the drawings described below are only some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0059] Figure 1 This is a flowchart of a tester accuracy self-calibration method provided by an embodiment of the present application;
[0060] Figure 2 This is a first connection diagram of a tester provided in one embodiment of the present application;
[0061] Figure 3This is a second connection diagram of a tester provided in one embodiment of the present application;
[0062] Figure 4 This is a third connection diagram of a tester provided in one embodiment of the present application;
[0063] Figure 5 This is a fourth connection diagram of a tester provided in one embodiment of the present application;
[0064] Figure 6 This is the fifth connection diagram of the tester provided in another embodiment of the present application. DETAILED DESCRIPTION
[0065] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions in this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.
[0066] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned figure descriptions are intended to cover non-exclusive inclusions.
[0067] In the description of the embodiments of this application, the technical terms "first" and "second" are used only to distinguish different objects and should not be understood to indicate or imply relative importance or implicitly specify the quantity, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, the meaning of "plurality" is more than two, unless otherwise clearly and specifically defined.
[0068] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0069] In the description of the embodiments of this application, the term "and / or" is simply a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent the following three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.
[0070] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0071] In the description of the embodiments of the present application, unless otherwise expressly specified or limited, technical terms such as "installed," "connected," "connected," and "fixed" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integration; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; internal connections between two components or interactions between two components. Those skilled in the art can understand the specific meanings of the above terms in the embodiments of the present application based on specific circumstances.
[0072] See also Figure 1 , is a flow chart of a tester accuracy self-calibration method provided by one embodiment of the present invention, comprising:
[0073] S1. Upon receiving a calibration signal, reading the instantaneous temperature value of the current working environment from the temperature sensor, obtaining a temperature drift coefficient of the high-precision reference source device at the instantaneous temperature value and a first theoretical working value of the high-precision reference source device at standard room temperature;
[0074] Specifically, upon receiving the calibration signal, the self-test process is started, and the FPGA main controller reads the instantaneous temperature value T1 sensed by the temperature detection chip in the temperature sensor under the current working environment, wherein the temperature sensor is located next to the high-precision reference source device, and the ambient temperatures of the two are consistent;
[0075] Then, the temperature drift coefficient k corresponding to the high-precision reference source device at the instantaneous temperature value T1 is determined based on the temperature drift curve. T1 ;
[0076] At the same time, a first theoretical working value of the high-precision reference source device at standard room temperature is obtained, that is, an actual output voltage value V0 of the high-precision reference source device at a normal temperature of 25° C.
[0077] S2. When determining that the self-test path is in a connected state, obtaining a first ADC conversion value output by a single-channel high-precision ADC circuit; wherein the self-test path is composed of the temperature sensor, the high-precision reference source device, and the single-channel high-precision ADC circuit connected in sequence;
[0078] S3. Determine whether the high-precision reference source device is in a normal working state according to the temperature drift coefficient, the first theoretical working value, and the first ADC conversion value;
[0079] In a preferred embodiment, judging whether the high-precision reference source device is in a normal working state according to the temperature drift coefficient, the first theoretical working value, and the first ADC conversion value includes:
[0080] Calculating a second theoretical operating value of the high-precision reference source device at the instantaneous temperature value according to the temperature drift coefficient and the first theoretical operating value;
[0081] When it is determined that the self-test path is in a connected state, reading a first ADC conversion value output by a single-channel high-precision ADC circuit in the self-test circuit;
[0082] Calculating a sampling error according to the first ADC conversion value and the second theoretical working value;
[0083] Determine whether the sampling error is within a preset error range,
[0084] If so, it is determined that the high-precision reference source device is in normal working condition.
[0085] If not, it is determined that the high-precision reference source device is not in a normal working state;
[0086] In a preferred embodiment, the tester accuracy self-calibration method further includes:
[0087] When it is determined that the high-precision reference source device is not in a normal working state, terminating the precision self-calibration;
[0088] Specifically, when it is determined that the self-test path is in a connected state, a first ADC conversion value V2 output by a single-channel high-precision ADC circuit in the self-test circuit is read;
[0089] Then according to the temperature drift coefficient And the first theoretical working value V0, the second theoretical working value V1 of the high-precision reference source device at the instantaneous temperature value T1 is calculated, and the calculation formula is as follows:
[0090]
[0091] After the second theoretical working value V1 is calculated, a sampling error η is calculated according to the first ADC conversion value V2 and the second theoretical working value V1, and it is determined whether the sampling error η is within a preset error range. The specific calculation formula is as follows:
[0092] η=|(V2-V1) / V2×100%|; (2)
[0093] Specifically, if the sampling error η exceeds 5%, it is determined that the high-precision reference source device is not in a normal working state and an abnormality exists, and then when it is determined that the high-precision reference source device is not in a normal working state, the precision self-calibration is terminated;
[0094] Specifically, if the sampling error η does not exceed 5%, it is determined that the high-precision reference source device is in a normal working state.
[0095] S4. When it is determined that the high-precision reference source device is in a normal working state, the self-test path is in a disconnected state, and the first sampling loop is in a connected state, reading a second ADC conversion value output by a multi-channel high-speed ADC circuit in the first sampling loop, and calibrating the multi-channel high-speed ADC circuit in the first sampling loop based on the second ADC conversion value and the first ADC conversion value;
[0096] In a preferred embodiment, calibrating the multi-channel high-speed ADC circuit in the first sampling loop according to the second ADC conversion value and the first ADC conversion value includes:
[0097] Calculating a first precision calibration value according to the second ADC conversion value and the first ADC conversion value;
[0098] Replacing the first historical precision calibration value already existing in the first calibration parameter with the first precision calibration value to obtain a calibrated multi-channel high-speed ADC circuit; wherein the first calibration parameter is used to calibrate the multi-channel high-speed ADC circuit;
[0099] Specifically, when it is determined that the high-precision reference source device is in a normal working state, the self-test path is in a disconnected state, and the first sampling loop is in a connected state, a second ADC conversion value V3 output by the multi-channel high-speed ADC circuit in the first sampling loop is read, and a first precision calibration value K1 is calculated based on the second ADC conversion value V3 and the first ADC conversion value V2. The calculation formula is as follows:
[0100] K1=(V3-V2) / V2×100%;(3)
[0101] After calculating the first precision calibration value K1, the FPGA controller will save the first precision calibration value K1, replace the first historical precision calibration value already existing in the first calibration parameter with the first precision calibration value K1, and complete the calibration of the multi-channel high-speed ADC circuit.
[0102] S5. When determining that the first sampling loop is in a disconnected state and the second sampling loop is in a connected state, sending a digital signal to the second sampling loop so that the second sampling loop outputs a corresponding third ADC conversion value based on the received digital signal; wherein the second sampling loop is composed of a multi-channel DAC circuit, a DAC conditioning circuit, and a calibrated multi-channel high-speed ADC circuit connected in sequence;
[0103] Specifically, when it is determined that the first sampling loop is in a disconnected state and the second sampling loop is in a connected state, the FPGA main controller sends a digital signal V4 to the second sampling loop. The digital signal V4 is converted into an analog signal after passing through the multi-channel DAC circuit, and then input into the calibrated multi-channel high-speed ADC circuit through the DAC conditioning circuit. The third ADC conversion value V4' is obtained by sampling through the calibrated multi-channel high-speed ADC circuit.
[0104] S6. Calibrate the multi-channel DAC circuit in the second sampling loop according to the third ADC conversion value and the digital signal.
[0105] In a preferred embodiment, calibrating the multi-channel DAC circuit in the second sampling loop according to the third ADC conversion value and the digital signal includes:
[0106] Calculating a second precision calibration value according to the third ADC conversion value and the digital signal;
[0107] Replacing the second historical precision calibration value already existing in the second calibration parameter with the second precision calibration value to obtain a calibrated multi-channel DAC circuit; wherein the second calibration parameter is used to calibrate the multi-channel DAC circuit;
[0108] Specifically, after obtaining the third ADC conversion value V4', the FPGA main controller calculates the second precision calibration value K2 using formula (4). The calculation formula is as follows:
[0109] K2=(V4'-V4) / V4×100%; (4)
[0110] After calculating the second precision calibration value K2, the FPGA controller will save the second precision calibration value K2, replace the second historical precision calibration value already existing in the second calibration parameter with the second precision calibration value, and complete the calibration of the multi-channel DAC circuit.
[0111] In a preferred embodiment, the tester accuracy self-calibration method further includes:
[0112] Retrieving a historical temperature value detected by the temperature sensor when solving the first historical precision calibration value;
[0113] Obtaining, based on the first precision calibration value, the first historical precision calibration value, the instantaneous temperature value, the historical temperature value, and a preset first temperature drift compensation constant, a first coefficient and a second coefficient for measuring the relationship between temperature and a calibration parameter;
[0114] updating the original first calibration equation according to the first coefficient, the second coefficient, and the first temperature drift compensation constant to obtain an updated second calibration equation; wherein the first calibration equation is used to calibrate the first calibration parameter of the multi-channel high-speed ADC circuit;
[0115] Indicatively, after obtaining the first precision calibration value K1, it is necessary to call the first historical precision calibration value K 1_HIST The historical temperature value T detected by the temperature sensor HIST Then, according to the first precision calibration value K1 and the first historical precision calibration value K 1_HIST , the instantaneous temperature value T1, the historical temperature value T HIST And the preset first temperature drift compensation constant C1, the first coefficient used to measure the relationship between temperature and calibration parameters is obtained by solving and the second coefficient β1;
[0116] Specifically, according to the first historical accuracy calibration value K 1_HIST , the historical temperature value T HIST And the preset first temperature drift compensation constant C1, the formula (5) is constructed as follows:
[0117]
[0118] Similarly, according to the first precision calibration value K1, the instantaneous temperature value T1 and the preset first temperature drift compensation constant C1, formula (6) is constructed as follows:
[0119]
[0120] It should be noted that the first temperature drift compensation constant C1 is an empirical value;
[0121] Combining equations (5) and (6), we can solve for the first coefficient and the second coefficient β1, then according to the first coefficient The second coefficient β1 and the first temperature drift compensation constant C1 are used to update the original first calibration equation to obtain an updated second calibration equation. The second calibration equation is specifically as follows:
[0122]
[0123] It should be noted that when T HIST ≤T1, T i Condition T must be met HIST ≤T i ≤T1; when T1≤T HIST When T i The condition T1≤T must be met i ≤T HIST ; When the above conditions are met, the relationship between the tester operating temperature and the first precision calibration value satisfies formula (7);
[0124] It should be noted that K i_1 The meaning is: when the temperature read by the temperature sensor is T i When , the first calibration parameter corresponds to the updated specific value.
[0125] In a preferred embodiment, the tester accuracy self-calibration method further includes:
[0126] Obtaining, based on the second precision calibration value, the second historical precision calibration value, the instantaneous temperature value, the historical temperature value, and a preset second temperature drift compensation constant, a third coefficient and a fourth coefficient for measuring the relationship between temperature and the calibration parameter;
[0127] updating the original third calibration equation according to the third coefficient, the fourth coefficient, and the second temperature drift compensation constant to obtain an updated fourth calibration equation; wherein the third calibration equation is used to calibrate the second calibration parameter of the multi-channel DAC circuit;
[0128] In an illustrative manner, after obtaining the second precision calibration value K2, according to the second precision calibration value K2 and the second historical precision calibration value K 2_HIST , the instantaneous temperature value T1, the historical temperature value T HIST And the preset second temperature drift compensation constant C2, the third coefficient used to measure the relationship between temperature and calibration parameters is obtained and the fourth coefficient β2;
[0129] Specifically, according to the second historical accuracy calibration value K 2_HIST , the historical temperature value T HIST And the preset second temperature drift compensation constant C2, the formula (8) is constructed as follows:
[0130]
[0131] Similarly, according to the second precision calibration value K2, the instantaneous temperature value T1 and the preset second temperature drift compensation constant C2, formula (9) is constructed as follows:
[0132]
[0133] It should be noted that the second temperature drift compensation constant C2 is an empirical value;
[0134] Combining equations (8) and (9), we can solve for the third coefficient and the fourth coefficient β2, then according to the third coefficient The fourth coefficient β2 and the second temperature drift compensation constant C2 are used to update the original third calibration equation to obtain an updated fourth calibration equation. The second calibration equation is specifically as follows:
[0135]
[0136] It should be noted that when T HIST When ≤T1, T i Condition T must be met HIST ≤T i ≤T1; when T1≤T HIST When T i The condition T1≤T must be met i ≤T HIST ; When the above conditions are met, the relationship between temperature and the second precision calibration value satisfies formula (10);
[0137] It should be noted that K i_2 The meaning is: when the temperature read by the temperature sensor is T i When , the second calibration parameter corresponds to the updated specific value.
[0138] See also Figure 2 , is a tester provided by an embodiment of the present invention, comprising: an FPGA main controller 1, a temperature sensor 2, a high-precision reference source device 3, a single-channel high-precision ADC circuit 4, an ADC conditioning circuit 5, a multi-channel high-speed ADC circuit 6, a multi-channel DAC circuit 7, a DAC conditioning circuit 8, a first single-pole double-throw switch S1, a second single-pole double-throw switch S2, and a single-pole triple-throw switch S3;
[0139] One end of the temperature sensor 2 is connected to the FPGA main controller 1, and the other end is connected to the high-precision reference source device 3; the first moving end of the first single-pole double-throw switch S1 is connected to the high-precision reference source device 3, the first fixed end of the first single-pole double-throw switch S1 is connected to the input end of the single-channel high-precision ADC circuit 4, and the second fixed end of the first single-pole double-throw switch S1 is connected to the third fixed end of the single-pole triple-throw switch S3; the output end of the single-channel high-precision ADC circuit 4 is connected to the FPGA main controller 1; the second moving end of the single-pole triple-throw switch S3 is connected to the ADC conditioning circuit 5, the fourth fixed terminal of the single-pole triple-throw switch S3 is connected to the fifth fixed terminal of the second single-pole double-throw switch S2; the input terminal of the multi-channel high-speed ADC circuit 6 is connected to the output terminal of the ADC conditioning circuit 5, and the output terminal of the multi-channel high-speed ADC circuit 6 is connected to the FPGA main controller 1; the input terminal of the multi-channel DAC circuit 7 is connected to the FPGA main controller 1, and the output terminal of the multi-channel DAC circuit 7 is connected to the input terminal of the DAC conditioning circuit 8; the third movable terminal of the second single-pole double-throw switch S2 is connected to the output terminal of the DAC conditioning circuit 8;
[0140] The FPGA main controller 1 is used to read the instantaneous temperature value of the current working environment from the temperature sensor 2 when receiving the calibration signal, obtain the temperature drift coefficient of the high-precision reference source device 3 at the instantaneous temperature value and the first theoretical working value of the high-precision reference source device 3 at standard room temperature; when the first moving end is connected to the first fixed end, obtain the first ADC conversion value output by the single-channel high-precision ADC circuit 4, and judge whether the high-precision reference source device 3 is in a normal working state based on the temperature drift coefficient, the first theoretical working value and the first ADC conversion value; after determining that the high-precision reference source device 3 is in a normal working state, the first moving end is connected to the second fixed end and the second moving end is When the third movable terminal is connected to the fifth fixed terminal, the second ADC conversion value output by the multi-channel high-speed ADC circuit 6 is read, and the multi-channel high-speed ADC circuit 6 is calibrated based on the second ADC conversion value and the first ADC conversion value to obtain a calibrated multi-channel high-speed ADC circuit 6. When the third movable terminal is connected to the fifth fixed terminal and the second movable terminal is connected to the fourth fixed terminal, the first digital signal is sent to the multi-channel DAC circuit 7, and the third ADC conversion value output by the calibrated multi-channel high-speed ADC circuit 6 is read, and the multi-channel DAC circuit 7 is calibrated based on the third ADC conversion value and the first digital signal to obtain a calibrated multi-channel DAC circuit 7.
[0141] Specifically, see Figure 2When the first active terminal of the first single-pole double-throw switch S1 is connected to the first fixed terminal of the first single-pole double-throw switch S1, the self-test path is connected, and the first ADC conversion value V2 output by the single-channel high-precision ADC circuit 4 is read by the FPGA main controller 1;
[0142] Specifically, see Figure 3 , when it is determined that the high-precision reference source device 3 is in a normal working state, the first movable terminal of the first single-pole double-throw switch S1 is connected to the second fixed terminal of the first single-pole double-throw switch S1, and the second movable terminal of the single-pole triple-throw switch S3 is connected to the third fixed terminal of the single-pole triple-throw switch S3, reading the second ADC conversion value V3 output by the multi-channel high-speed ADC circuit 6, and calibrating the multi-channel high-speed ADC circuit 6 based on the second ADC conversion value V3 and the first ADC conversion value V2 to obtain a calibrated multi-channel high-speed ADC circuit 6;
[0143] Specifically, see Figure 4 When the third active terminal of the second single-pole double-throw switch S2 is connected to the fifth fixed terminal of the second single-pole double-throw switch S2 and the second active terminal of the single-pole triple-throw switch S3 is connected to the fourth fixed terminal of the single-pole triple-throw switch S3, a first digital signal V4 is sent to the multi-channel DAC circuit 7, and a third ADC conversion value V4' output by the calibrated multi-channel high-speed ADC circuit 6 is read. The multi-channel DAC circuit 7 is calibrated according to the third ADC conversion value V4' and the first digital signal V4 to obtain a calibrated multi-channel DAC circuit 7.
[0144] See also Figure 5 In a preferred embodiment, the tester further includes: an input port 9 and an output port 10; the input port 9 is connected to the sixth fixed terminal of the single-pole triple-throw switch S3; the output port 10 is connected to the seventh fixed terminal of the second single-pole double-throw switch S2;
[0145] The input port 9 is configured to receive a first initial analog signal when the sixth fixed terminal of the single-pole triple-throw switch S3 is connected to the second movable terminal of the single-pole triple-throw switch S3 and the seventh fixed terminal of the second single-pole double-throw switch S2 is connected to the third movable terminal of the second single-pole double-throw switch S2, and transmit the first initial analog signal to the ADC conditioning circuit 5;
[0146] The ADC conditioning circuit 5 is configured to condition the first initial analog signal to obtain a conditioned first analog signal, and transmit the first analog signal to the calibrated multi-channel high-speed ADC circuit 6;
[0147] The calibrated multi-channel high-speed ADC circuit 6 is used to convert the first analog signal into a second digital signal to be processed, and transmit the second digital signal to the FPGA main controller 1;
[0148] The FPGA main controller 1 is further configured to process the second digital signal according to a preset processing logic to obtain a processed third digital signal, and transmit the third digital signal to the calibrated multi-channel DAC circuit 7;
[0149] The calibrated multi-channel DAC circuit 7 is configured to convert the third digital signal into a second analog signal, and transmit the second analog signal to the DAC conditioning circuit 8;
[0150] The DAC conditioning circuit 8 is configured to condition the second analog signal to obtain a conditioned third analog signal, and transmit the third analog signal to the output port 10;
[0151] The output port 10 is used to output the third analog signal.
[0152] See also Figure 6 The tester further includes: an ADC protection circuit 11 and a DAC protection circuit 12; one end of the ADC protection circuit 11 is connected to the input port 9, and one end is connected to the sixth fixed end; one end of the DAC protection circuit 12 is connected to the output port 10, and one end is connected to the seventh fixed end;
[0153] The input port 9 is further configured to receive a second initial analog signal when the sixth fixed terminal of the single-pole triple-throw switch S3 is connected to the second movable terminal of the single-pole triple-throw switch S3 and the seventh fixed terminal of the second single-pole double-throw switch S2 is connected to the third movable terminal of the second single-pole double-throw switch S2, and transmit the second initial analog signal to the ADC protection circuit 11;
[0154] The ADC protection circuit 11 is configured to filter out noise in the second initial analog signal to obtain a filtered fourth analog signal, and transmit the fourth analog signal to the ADC conditioning circuit 5;
[0155] The ADC conditioning circuit 5 is further configured to condition the fourth analog signal to obtain a conditioned fifth analog signal, and transmit the fifth analog signal to the calibrated multi-channel high-speed ADC circuit 6;
[0156] The calibrated multi-channel high-speed ADC circuit 6 is further used to convert the fifth analog signal into a fourth digital signal to be processed, and transmit the fourth digital signal to the FPGA main controller 1;
[0157] The FPGA main controller 1 is further configured to process the fourth digital signal according to a preset processing logic to obtain a processed fifth digital signal, and transmit the fifth digital signal to the calibrated multi-channel DAC circuit 7;
[0158] The calibrated multi-channel DAC circuit 7 is further configured to convert the fifth digital signal into a sixth analog signal, and transmit the sixth analog signal to the DAC conditioning circuit 8;
[0159] The DAC conditioning circuit 8 is further configured to condition the sixth analog signal to obtain a conditioned seventh analog signal, and transmit the seventh analog signal to the DAC protection circuit 12;
[0160] The DAC protection circuit 12 is configured to filter out noise in the seventh analog signal to obtain a filtered eighth analog signal, and transmit the eighth analog signal to the output port 10;
[0161] The output port 10 is further configured to output the eighth analog signal.
Claims
1. A tester precision self-calibration method, characterized in that: Suitable for testers including: Upon receiving the calibration signal, reading the instantaneous temperature value of the current working environment from the temperature sensor, obtaining the temperature drift coefficient of the high-precision reference source device at the instantaneous temperature value and the first theoretical working value of the high-precision reference source device at standard room temperature; When determining that the self-test path is in a connected state, obtaining a first ADC conversion value output by a single-channel high-precision ADC circuit; wherein the self-test path is composed of the temperature sensor, the high-precision reference source device, and the single-channel high-precision ADC circuit connected in sequence; determining whether the high-precision reference source device is in a normal working state according to the temperature drift coefficient, the first theoretical working value, and the first ADC conversion value; When it is determined that the high-precision reference source device is in a normal working state, the self-test path is in a disconnected state, and the first sampling loop is in a connected state, reading a second ADC conversion value output by a multi-channel high-speed ADC circuit in the first sampling loop, and calibrating the multi-channel high-speed ADC circuit in the first sampling loop based on the second ADC conversion value and the first ADC conversion value; When it is determined that the first sampling loop is in a disconnected state and the second sampling loop is in a connected state, a digital signal is sent to the second sampling loop so that the second sampling loop outputs a corresponding third ADC conversion value based on the received digital signal; wherein the second sampling loop is composed of a multi-channel DAC circuit, a DAC conditioning circuit, and a calibrated multi-channel high-speed ADC circuit connected in sequence; The multi-channel DAC circuit in the second sampling loop is calibrated according to the third ADC conversion value and the digital signal.
2. The tester accuracy self-calibration method according to claim 1, characterized in that: The determining, based on the temperature drift coefficient, the first theoretical operating value, and the first ADC conversion value, whether the high-precision reference source device is in a normal operating state includes: Calculating a second theoretical operating value of the high-precision reference source device at the instantaneous temperature value according to the temperature drift coefficient and the first theoretical operating value; When it is determined that the self-test path is in a connected state, reading a first ADC conversion value output by a single-channel high-precision ADC circuit in the self-test circuit; Calculating a sampling error according to the first ADC conversion value and the second theoretical working value; Determine whether the sampling error is within a preset error range, If so, it is determined that the high-precision reference source device is in normal working condition. If not, it is determined that the high-precision reference source device is not in a normal working state.
3. The tester accuracy self-calibration method according to claim 1, characterized in that: The calibrating the multi-channel high-speed ADC circuit in the first sampling loop according to the second ADC conversion value and the first ADC conversion value includes: Calculating a first precision calibration value according to the second ADC conversion value and the first ADC conversion value; The first historical precision calibration value existing in the first calibration parameter is replaced with the first precision calibration value to obtain a calibrated multi-channel high-speed ADC circuit; wherein the first calibration parameter is used to calibrate the multi-channel high-speed ADC circuit.
4. The tester accuracy self-calibration method according to claim 3, characterized in that: The calibrating the multi-channel DAC circuit in the second sampling loop according to the third ADC conversion value and the digital signal includes: Calculating a second precision calibration value according to the third ADC conversion value and the digital signal; The second historical precision calibration value existing in the second calibration parameter is replaced with the second precision calibration value to obtain a calibrated multi-channel DAC circuit; wherein the second calibration parameter is used to calibrate the multi-channel DAC circuit.
5. The tester accuracy self-calibration method according to claim 4, characterized in that: Also includes: Retrieving a historical temperature value detected by the temperature sensor when solving the first historical precision calibration value; Obtaining, based on the first precision calibration value, the first historical precision calibration value, the instantaneous temperature value, the historical temperature value, and a preset first temperature drift compensation constant, a first coefficient and a second coefficient for measuring the relationship between temperature and a calibration parameter; The original first calibration equation is updated according to the first coefficient, the second coefficient and the first temperature drift compensation constant to obtain an updated second calibration equation; wherein the first calibration equation is used to calibrate the first calibration parameter of the multi-channel high-speed ADC circuit.
6. The tester accuracy self-calibration method according to claim 5, characterized in that: Also includes: Obtaining, based on the second precision calibration value, the second historical precision calibration value, the instantaneous temperature value, the historical temperature value, and a preset second temperature drift compensation constant, a third coefficient and a fourth coefficient for measuring the relationship between temperature and the calibration parameter; The original third calibration equation is updated according to the third coefficient, the fourth coefficient and the second temperature drift compensation constant to obtain an updated fourth calibration equation; wherein the third calibration equation is used to calibrate the second calibration parameter of the multi-channel DAC circuit.
7. The tester accuracy self-calibration method according to claim 1, wherein: Also includes: When it is determined that the high-precision reference source device is not in a normal working state, the precision self-calibration is terminated.
8. A tester, characterized in that: include: FPGA main controller, temperature sensor, high-precision reference source device, single-channel high-precision ADC circuit, multi-channel high-speed ADC circuit, ADC conditioning circuit, multi-channel DAC circuit, DAC conditioning circuit, first single-pole double-throw switch, second single-pole double-throw switch and single-pole triple-throw switch; One end of the temperature sensor is connected to the FPGA main controller, and the other end is connected to the high-precision reference source device; the first moving end of the first single-pole double-throw switch is connected to the high-precision reference source device, the first fixed end of the first single-pole double-throw switch is connected to the input end of the single-channel high-precision ADC circuit, and the second fixed end of the first single-pole double-throw switch is connected to the third fixed end of the single-pole triple-throw switch; the output end of the single-channel high-precision ADC circuit is connected to the FPGA main controller; the second moving end of the single-pole triple-throw switch is connected to the input end of the ADC conditioning circuit, and the fourth fixed end of the single-pole triple-throw switch is connected to the fifth fixed end of the second single-pole double-throw switch; the input end of the multi-channel high-speed ADC circuit is connected to the output end of the ADC conditioning circuit, and the output end of the multi-channel high-speed ADC circuit is connected to the FPGA main controller; the input end of the multi-channel DAC circuit is connected to the FPGA main controller, and the output end of the multi-channel DAC circuit is connected to the input end of the DAC conditioning circuit; the third moving end of the second single-pole double-throw switch is connected to the output end of the DAC conditioning circuit; The FPGA main controller is configured to, upon receiving a calibration signal, read the instantaneous temperature value of the current working environment from the temperature sensor, obtain the temperature drift coefficient of the high-precision reference source device at the instantaneous temperature value, and the first theoretical working value of the high-precision reference source device at standard room temperature; obtain the first ADC conversion value output by the single-channel high-precision ADC circuit when the first movable end is connected to the first fixed end, and determine whether the high-precision reference source device is in a normal working state based on the temperature drift coefficient, the first theoretical working value, and the first ADC conversion value; and determine whether the high-precision reference source device is in a normal working state after determining that the high-precision reference source device is in a normal working state, the first movable end is connected to the second fixed end, and the second movable end is in a normal working state. When the third movable terminal is connected to the fifth fixed terminal, the second ADC conversion value output by the multi-channel high-speed ADC circuit is read, and the multi-channel high-speed ADC circuit is calibrated based on the second ADC conversion value and the first ADC conversion value to obtain a calibrated multi-channel high-speed ADC circuit. When the third movable terminal is connected to the fifth fixed terminal and the second movable terminal is connected to the fourth fixed terminal, a first digital signal is sent to the multi-channel DAC circuit, and a third ADC conversion value output by the calibrated multi-channel high-speed ADC circuit is read, and the multi-channel DAC circuit is calibrated based on the third ADC conversion value and the first digital signal to obtain a calibrated multi-channel DAC circuit.
9. The tester according to claim 8, wherein: It also includes: an input port and an output port; the input port is connected to the sixth fixed terminal of the single-pole triple-throw switch; the output port is connected to the seventh fixed terminal of the second single-pole double-throw switch; The input port is configured to receive a first initial analog signal when the sixth fixed terminal is connected to the second movable terminal and the seventh fixed terminal is connected to the third movable terminal, and transmit the first initial analog signal to the ADC conditioning circuit; The ADC conditioning circuit is configured to condition the first initial analog signal to obtain a conditioned first analog signal, and transmit the first analog signal to the calibrated multi-channel high-speed ADC circuit; The calibrated multi-channel high-speed ADC circuit is used to convert the first analog signal into a second digital signal to be processed, and transmit the second digital signal to the FPGA main controller; The FPGA main controller is further configured to process the second digital signal according to a preset processing logic to obtain a processed third digital signal, and transmit the third digital signal to the calibrated multi-channel DAC circuit; The calibrated multi-channel DAC circuit is used to convert the third digital signal into a second analog signal and transmit the second analog signal to the DAC conditioning circuit; The DAC conditioning circuit is configured to condition the second analog signal to obtain a conditioned third analog signal, and transmit the third analog signal to the output port; The output port is used to output the third analog signal.
10. The tester according to claim 9, wherein: Also includes: an ADC protection circuit and a DAC protection circuit; one end of the ADC protection circuit is connected to the input port, and one end is connected to the sixth fixed terminal; one end of the DAC protection circuit is connected to the output port, and one end is connected to the seventh fixed terminal; The input port is further configured to receive a second initial analog signal when the sixth fixed terminal is connected to the second movable terminal and the seventh fixed terminal is connected to the third movable terminal, and transmit the second initial analog signal to the ADC protection circuit; The ADC protection circuit is configured to filter out noise in the second initial analog signal to obtain a filtered fourth analog signal, and transmit the fourth analog signal to the ADC conditioning circuit; The ADC conditioning circuit is further configured to condition the fourth analog signal to obtain a conditioned fifth analog signal, and transmit the fifth analog signal to the calibrated multi-channel high-speed ADC circuit; The calibrated multi-channel high-speed ADC circuit is further used to convert the fifth analog signal into a fourth digital signal to be processed, and transmit the fourth digital signal to the FPGA main controller; The FPGA main controller is further configured to process the fourth digital signal according to a preset processing logic to obtain a processed fifth digital signal, and transmit the fifth digital signal to the calibrated multi-channel DAC circuit; The calibrated multi-channel DAC circuit is further configured to convert the fifth digital signal into a sixth analog signal, and transmit the sixth analog signal to the DAC conditioning circuit; The DAC conditioning circuit is further configured to condition the sixth analog signal to obtain a conditioned seventh analog signal, and transmit the seventh analog signal to the DAC protection circuit; The DAC protection circuit is configured to filter out noise in the seventh analog signal to obtain a filtered eighth analog signal, and transmit the eighth analog signal to the output port; The output port is further used to output the eighth analog signal.
Citation Information
Patent Citations
High-speed high-precision process parameter online calibration tester
CN101738947A
Analog acquisition circuit with automatic calibration function and calibration method of analog acquisition circuit
CN104660258A