Calibration method and device of multi-channel power supply, computer equipment, readable storage medium and program product
The calibration method and device for multi-channel power supplies automate the calibration process, enhancing efficiency and accuracy by using a controller to connect channels and adjust circuit parameters based on data groups, addressing the inefficiencies of existing methods.
Patent Information
- Application Number
- CN202411552691.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-01
- Publication Date
- 2024-12-31
AI Technical Summary
The existing methods for calibrating multi-channel power supplies in display product inspection machines are cumbersome and inefficient, with a complicated process and low calibration efficiency.
A calibration method and device that utilize an electrically connected measuring instrument and power supply test box, controlled by a controller, to automatically connect channels, determine calibration values, and adjust circuit parameters based on calibration data groups, ensuring the difference between preset and measured values falls within a preset range.
This approach simplifies the calibration process, improves efficiency, and ensures accurate output accuracy of multi-channel power supplies, suitable for various application scenarios.
Smart Images

Figure CN119224671A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power supply calibration, and in particular to a calibration method, apparatus, computer equipment, computer-readable storage medium and computer program product for a multi-channel power supply. Background Art
[0002] In order to ensure the stability and reliability of the functions of display products, it is usually necessary to test the display products. Among them, the inspection machine can be used to test the functions of display products. The first step of the test is to turn on the power supply to light up the screen. With the increasing sophistication of display products, the accuracy requirements for power supply in the test process are also getting higher and higher. Therefore, the power supply calibration of the inspection machine is very important.
[0003] In the related art, the channels can be switched in sequence, and the voltage and current data of the power supply of the inspection machine can be measured in sequence by using a multimeter, so as to calibrate the power supply. However, this method has a complicated process, cumbersome operation and low calibration efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a calibration method, device, computer equipment, computer-readable storage medium and computer program product for a multi-channel power supply that can simplify the process and improve efficiency in response to the above technical problems.
[0005] In a first aspect, the present application provides a calibration method for a multi-channel power supply, the method being applied to a controller of a calibration system for a multi-channel power supply, the calibration system for the multi-channel power supply comprising an electrically connected measuring instrument and a power supply test box, the power supply test box being electrically connected to a plurality of channels of a power supply to be tested, the controller being electrically connected to the measuring instrument, the power supply test box, and the power supply to be tested, respectively, the method comprising:
[0006] Obtaining a calibration preset value, and controlling the power supply test box to connect the channel to be tested and the measuring instrument;
[0007] Determine the calibration value corresponding to the calibration preset value according to the calibration data group corresponding to the channel to be measured, wherein the calibration data group includes the calibration measurement value of the measuring instrument obtained after sending the preset power parameter value to the channel to be measured and the calibration power parameter value of the channel to be measured;
[0008] Adjusting the circuit parameters corresponding to the channel to be measured according to the calibration value, and obtaining the measurement value of the measuring instrument and the power parameter value corresponding to the channel to be measured;
[0009] When the first difference between the calibration preset value and the measured value and the second difference between the power parameter value and the measured value are both within a preset range, it is determined that the calibration of the channel to be measured has passed.
[0010] In one embodiment, determining the calibration value corresponding to the calibration preset value according to the calibration data group corresponding to the channel to be tested includes:
[0011] Obtaining a calibration data group corresponding to the channel to be tested;
[0012] Determine, according to the multiple groups of calibration measurement values and calibration power parameter values in the calibration data group, a relationship between the measurement value of the measuring instrument and the power parameter value of the channel to be measured;
[0013] The measured value in the relationship is set as the calibration preset value to obtain a calibration value corresponding to the calibration preset value.
[0014] In one embodiment, determining the relationship between the measurement value of the measuring instrument and the power parameter value of the channel to be measured according to the multiple groups of calibration measurement values and calibration power parameter values in the calibration data group includes:
[0015] According to the calibration preset value, determining a target data group from the calibration data group, wherein the target data group includes a plurality of groups of calibration measurement values and calibration power parameter values;
[0016] According to the target data group, a relationship between the measurement value of the measuring instrument and the power parameter value of the channel to be measured is determined.
[0017] In one embodiment, the method for obtaining the calibration data set includes:
[0018] In response to receiving the calibration instruction, determining a target channel from the plurality of channels, and controlling the power supply test box to connect the target channel with the measuring instrument;
[0019] Sending the preset power parameter value to the target channel, and obtaining the calibrated measurement value of the measuring instrument and the calibrated power parameter value of the target channel;
[0020] When the difference between the calibration measurement value and the calibration power parameter value is less than a preset difference, the calibration measurement value and the calibration power parameter value are recorded to obtain a calibration data group corresponding to the target channel.
[0021] In one embodiment, after obtaining the calibrated measurement value of the measuring instrument and the calibrated power parameter value of the target channel, the method further includes:
[0022] When the calibrated measurement value and / or the calibrated power parameter value is outside a preset parameter range, a warning message is sent.
[0023] In one embodiment, obtaining the calibration preset value includes:
[0024] In response to receiving a calibration instruction, determining a channel to be tested that matches the calibration instruction;
[0025] A calibration preset value is determined according to the power type corresponding to the channel to be tested.
[0026] In a second aspect, the present application further provides a calibration device for a multi-channel power supply, the device being applied to a controller of a calibration system for a multi-channel power supply, the calibration system for the multi-channel power supply comprising an electrically connected measuring instrument and a power supply test box, the power supply test box being electrically connected to a plurality of channels of a power supply to be tested, the controller being electrically connected to the measuring instrument, the power supply test box, and the power supply to be tested, respectively, the device comprising:
[0027] An acquisition module, used for acquiring a calibration preset value and controlling the power supply test box to connect the channel to be tested with the measuring instrument;
[0028] A first determination module, configured to determine the calibration value corresponding to the calibration preset value according to the calibration data group corresponding to the channel to be measured, wherein the calibration data group includes the calibration measurement value of the measuring instrument obtained after sending the preset power parameter value to the channel to be measured and the calibration power parameter value of the channel to be measured;
[0029] An adjustment module, used for adjusting the circuit parameters corresponding to the channel to be measured according to the calibration value, and obtaining the measurement value of the measuring instrument and the power parameter value corresponding to the channel to be measured;
[0030] The second determination module is used to determine that the calibration of the channel to be measured has passed when a first difference between the calibration preset value and the measured value and a second difference between the power parameter value and the measured value are both within a preset range.
[0031] In one embodiment, the first determining module is further configured to:
[0032] Obtaining a calibration data group corresponding to the channel to be tested;
[0033] Determine, according to the multiple groups of calibration measurement values and calibration power parameter values in the calibration data group, a relationship between the measurement value of the measuring instrument and the power parameter value of the channel to be measured;
[0034] The measured value in the relationship is set as the calibration preset value to obtain a calibration value corresponding to the calibration preset value.
[0035] In one embodiment, the first determining module is further configured to:
[0036] According to the calibration preset value, determining a target data group from the calibration data group, wherein the target data group includes a plurality of groups of calibration measurement values and calibration power parameter values;
[0037] According to the target data group, a relationship between the measurement value of the measuring instrument and the power parameter value of the channel to be measured is determined.
[0038] In one embodiment, the device further comprises a module for acquiring the calibration data set, and the module for acquiring the calibration data set is further used for:
[0039] In response to receiving the calibration instruction, determining a target channel from the plurality of channels, and controlling the power supply test box to connect the target channel with the measuring instrument;
[0040] Sending the preset power parameter value to the target channel, and obtaining the calibrated measurement value of the measuring instrument and the calibrated power parameter value of the target channel;
[0041] When the difference between the calibration measurement value and the calibration power parameter value is less than a preset difference, the calibration measurement value and the calibration power parameter value are recorded to obtain a calibration data group corresponding to the target channel.
[0042] In one embodiment, the module for acquiring the calibration data set is further used for:
[0043] When the calibrated measurement value and / or the calibrated power parameter value is outside a preset parameter range, a warning message is sent.
[0044] In one embodiment, the acquisition module is further used for:
[0045] In response to receiving a calibration instruction, determining a channel to be tested that matches the calibration instruction;
[0046] A calibration preset value is determined according to the power type corresponding to the channel to be tested.
[0047] In a third aspect, an embodiment of the present disclosure further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the methods in the embodiments of the present disclosure are implemented.
[0048] In a fourth aspect, the embodiments of the present disclosure further provide a computer-readable storage medium, wherein a computer program is stored thereon, and when the computer program is executed by a processor, the steps of any one of the methods in the embodiments of the present disclosure are implemented.
[0049] In a fifth aspect, the embodiments of the present disclosure further provide a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of any one of the methods in the embodiments of the present disclosure are implemented.
[0050] The calibration method, device, computer equipment, computer-readable storage medium and computer program product of the multi-channel power supply are electrically connected to multiple channels of the power supply to be tested through the power supply test box of the calibration system, and can realize automatic switching and connection of the channels during the calibration process, without the need for manual plug-in and switching by the user, which effectively simplifies the process. When calibrating, the calibration preset value is obtained, and the channel to be tested and the measuring instrument are connected. According to the calibration data group corresponding to the channel to be tested, the calibration value corresponding to the calibration preset value can be determined, and the circuit parameters corresponding to the channel to be tested are adjusted using the calibration value, and the measured value and the power parameter value are obtained. When the error between the power parameter value and the calibration preset value and the measured value is within the preset range, it is determined that the calibration of the channel to be tested has passed. The calibration data group can quickly and accurately determine the calibration value, and the circuit parameters corresponding to the channel to be tested are adjusted according to the calibration value to ensure the output accuracy of the channel to be tested after the adjustment. The power parameter value and the calibration preset value obtained after the adjustment are compared with the measured value to determine whether the calibration has passed, which ensures the output accuracy of the channel to be tested after the calibration, and is suitable for more application scenarios. The channels to be tested are connected through the power supply test box, and each channel has a corresponding calibration data group, which realizes the automatic calibration and calibration of multi-channel power supplies, effectively improves the calibration efficiency and simplifies the operation process. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 is a flow chart of a calibration method for a multi-channel power supply in one embodiment;
[0053] Figure 2 is a schematic diagram of a calibration system for a multi-channel power supply in one embodiment;
[0054] Figure 3 is a schematic diagram of a calibration system for a multi-channel power supply in another embodiment;
[0055] Figure 4 A schematic diagram of the structure of a power supply test box in one embodiment;
[0056] Figure 5A schematic diagram of a flow chart of a method for acquiring a calibration data set in one embodiment;
[0057] Figure 6 is a flow chart of a calibration method for a multi-channel power supply in another embodiment;
[0058] Figure 7 It is a structural block diagram of a calibration method and device of a multi-channel power supply in one embodiment;
[0059] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0061] In one embodiment, Figure 1 As shown, a calibration method for a multi-channel power supply is provided, the method is applied to a controller of a calibration system for a multi-channel power supply, the calibration system for the multi-channel power supply comprises an electrically connected measuring instrument and a power supply test box, the power supply test box is electrically connected to a plurality of channels of a power supply to be tested, the controller is electrically connected to the measuring instrument, the power supply test box, and the power supply to be tested, respectively, the method comprises:
[0062] Step S110, obtaining a calibration preset value, and controlling the power supply test box to connect the channel to be tested and the measuring instrument;
[0063] Exemplarily, the calibration system of the multi-channel power supply includes an electrically connected test instrument and a power supply test box, wherein the measuring instrument includes a measuring instrument for measuring power parameters, such as a multimeter, etc., which can be determined according to the actual application scenario. The power supply test box can be electrically connected to multiple channels of the power supply to be tested through multiple interfaces. In one example, a switch circuit is provided inside the power supply test box, and the measuring instrument can be connected to one or more of the multiple channels through the control of the switch, which can be set according to the actual application scenario.
[0064] In one example, the controller may include but is not limited to a host computer. The controller is electrically connected to the measuring instrument, the power test box, and the power supply to be tested, respectively, and can be used to obtain the measurement value of the measuring instrument and control the connection state of the power test box and the power supply to be tested. Among them, the controller can also be used to obtain the power parameter values of different power channels in the power supply to be tested. Generally, the principle of the controller directly obtaining the power parameter value is different from that of the measuring instrument obtaining the measurement value, and the measurement value obtained by the measuring instrument can be regarded as the actual power parameter value of the corresponding channel.
[0065] Optionally, the power supply to be tested is a multi-channel power supply, and different channels can be controlled to output according to different power parameter values according to actual application scenarios. In one example, different channels can correspond to different types of power outputs, such as VDD output, VCI output, etc. Taking the calibration scenario of the inspection machine power supply as an example, the multi-channel power supply can be the inspection machine power board.
[0066] Figure 2 FIG. 1 is a schematic diagram of a calibration system for a multi-channel power supply according to an exemplary embodiment. Figure 2 As shown, the controller PC is electrically connected to the power supply PG to be tested, the power supply test box PT, and the test instrument respectively, and the power supply test box is electrically connected to the power supply to be tested and the test instrument respectively. In a possible implementation, the PC is connected to the PG via a Mini USB 2.0 serial port cable; the PC is connected to the PT via a square port USB serial port cable; the PC is connected to the measuring instrument via an RS232 USB serial port; the PG is connected to the PT via a cable line; and the PT is connected to the measuring instrument via a cable line.
[0067] In one possible implementation, Figure 3 As shown in the figure, the power supply to be tested includes a single-chip microcomputer MCU, a digital-to-analog converter DAC, a switching power supply, and a power acquisition chip. Among them, the PC sends the set values such as the calibration value and the preset power parameter value to the MCU (single-chip microcomputer) through the serial port, and the MCU sets the set values to the channel to be tested and the target channel through the DAC (digital-to-analog converter), and then turns on the power switch, and then returns the collected voltage information to the MCU through the power acquisition chip. In an example, the power acquisition chip can be set to INA228.
[0068] Figure 4 FIG. 1 is a schematic diagram of a power supply test box according to an exemplary embodiment. Figure 4 As shown, the power supply test box contains multiple switch circuits, each of which is connected to multiple channels of the power supply to be tested through an interface. In one example, each switch circuit is connected to a PG channel through an interface and a cable line. At the same time, multiple switch circuits are connected to a single test instrument (such as an ammeter, a voltmeter, a multimeter, etc.) through a voltage line, a current line, and a ground line. Optionally, when calibrating the power supply, switch the PT to the voltage detection mode, and then turn on the corresponding channel switch of the PT, and the voltage value of the PG reaches the measuring instrument through the cable line.
[0069] Exemplarily, a calibration preset value is obtained, and the power supply test box is controlled to connect the channel to be tested and the measuring instrument, wherein the corresponding channel to be tested can be obtained simultaneously when the calibration preset value is obtained. In one example, each channel can be set to correspond to a different channel identifier, the channel identifier corresponding to the calibration preset value is obtained, and the matching channel is determined as the channel to be tested from multiple channels of the power supply to be tested according to the channel identifier. The calibration preset value can be set according to the actual application scenario, and different channels and different power supply types can correspond to different calibration preset values.
[0070] In one example, the power parameters may include but are not limited to current, voltage, resistance, capacitance, and other types of power parameters. In this embodiment, the measured values, power parameter values, data in the calibration data group, etc. all correspond to the same type of power parameters, which can be determined based on the actual application scenario, for example, it can be a voltage value or a current value.
[0071] Step S120, determining the calibration value corresponding to the calibration preset value according to the calibration data group corresponding to the channel to be measured, wherein the calibration data group includes the calibration measurement value of the measuring instrument obtained after sending the preset power parameter value to the channel to be measured and the calibration power parameter value of the channel to be measured;
[0072] Exemplarily, after determining the channel to be tested, the calibration data group corresponding to the channel to be tested is obtained, and the calibration value corresponding to the calibration preset value is determined according to the calibration data group corresponding to the channel to be tested. In one example, the calibration data group includes multiple groups of one-to-one corresponding calibration measurement values and calibration power parameter values.
[0073] Optionally, before calibrating the power supply, a calibration step is performed first, and calibration is performed after the calibration is passed. During the calibration process, the calibration data is recorded to obtain a calibration data group, and each channel can correspond to a different calibration data group.
[0074] In one possible implementation, during the calibration process, a preset power parameter value is sent to the channel to be measured. After the circuit is stable, the measurement value of the measuring instrument, i.e., the calibration measurement value, and the power parameter value of the channel to be measured, i.e., the calibration power parameter value, are obtained.
[0075] Exemplarily, due to equipment errors and other reasons, the set value of the power parameter of the channel is not necessarily the same as the power parameter value actually output by the channel. In this embodiment, the measured value of the measuring instrument is used as the actual power parameter value output by the channel. According to the calibration data group, the correlation between the actual power parameter value of the channel and the power parameter value obtained by the controller can be determined, so that the calibration preset value is substituted into the correlation as the actual power parameter value, and the power parameter value obtained by the controller is determined to be the calibration value. The calibration value is used to adjust the circuit so that the difference between the actual power parameter value output by the channel, that is, the measured value, and the calibration preset value is as small as possible.
[0076] Step S130, adjusting the circuit parameters corresponding to the channel to be measured according to the calibration value, and obtaining the measurement value of the measuring instrument and the power parameter value corresponding to the channel to be measured;
[0077] Exemplarily, the circuit parameters corresponding to the channel to be tested are adjusted according to the calibration value. In one example, the controller stores circuit parameter adjustment logic, and according to the calibration value, the circuit parameters of the channel to be tested are adjusted according to the circuit parameter adjustment logic. Through the calibration data group, the error deviation that may exist in the device can be calibrated, and the device hardware can be optimized by adjusting the circuit parameters, so that the channel output value is closer to or equal to the set value, ensuring the accuracy of the channel output.
[0078] In one example, after the circuit parameter adjustment is completed, after the circuit is stabilized, the measured value of the measuring instrument and the power parameter value corresponding to the channel to be measured are obtained, wherein the power parameter value corresponding to the channel to be measured is directly obtained by the controller. In one example, a stabilization time can be set, such as 1 minute, and after the circuit parameter adjustment is completed, after the stabilization time has passed, the measured value and the power parameter value corresponding to the channel are obtained.
[0079] In an example, the circuit parameter may be a hardware parameter, and the circuit parameter may be adjusted by a controller.
[0080] Step S140, when the first difference between the calibration preset value and the measured value and the second difference between the power parameter value and the measured value are both within a preset range, it is determined that the calibration of the channel to be measured has passed.
[0081] Exemplarily, a first difference between the calibration preset value and the measured value and a second difference between the power parameter value and the measured value are determined. In one example, the measured value is considered as the actual power parameter value output by the channel, and the difference between the actual output of the channel and the preset value can be determined according to the first difference, and the difference between the actual output of the channel and the power parameter value obtained by the controller can be determined according to the second difference.
[0082] Optionally, if the first difference and the second difference are both within a preset range, it can be considered that the accuracy of the channel to be measured meets the requirement and the calibration of the channel to be measured is passed.
[0083] In one example, the preset range can be determined according to an actual application scenario. When the first difference and / or the second difference is outside the preset range, it can be considered that the accuracy of the channel to be measured does not meet the requirements, the calibration fails, and a notification message is sent. For example, the preset range can be set according to the power accuracy requirements in the actual application scenario.
[0084] In one example, the calibration preset value may include multiple preset values. In this case, the above calibration method is executed in sequence for each preset value. After all the calibrations pass, it can be considered that the calibration of the channel to be tested has passed.
[0085] In a possible implementation, the power supply to be tested includes multiple channels, and the above calibration process is performed sequentially for each channel. After multiple channels have passed the calibration, it is confirmed that the power supply to be tested has passed the calibration.
[0086] In the disclosed embodiment, the power supply test box of the calibration system is electrically connected to multiple channels of the power supply to be tested, and the automatic switching of the channels can be realized during the calibration process, without the need for manual plug-in and switching by the user, which effectively simplifies the process. When performing calibration, the calibration preset value is obtained, and the channel to be tested and the measuring instrument are connected. According to the calibration data group corresponding to the channel to be tested, the calibration value corresponding to the calibration preset value can be determined, and the circuit parameter corresponding to the channel to be tested can be adjusted by using the calibration value to achieve the optimization adjustment of the circuit and other hardware on the device, and the measured value and the power parameter value are obtained. When the error between the power parameter value and the calibration preset value and the measured value is within the preset range, it is determined that the calibration of the channel to be tested has passed. The calibration data group can quickly and accurately determine the calibration value, and the circuit parameter corresponding to the channel to be tested is adjusted according to the calibration value, so as to achieve the optimization adjustment of the circuit and other hardware on the device, and ensure the output accuracy of the channel to be tested after the adjustment. According to the power parameter value and the calibration preset value obtained after the adjustment, it is determined whether the calibration has passed, and the output accuracy of the channel to be tested after the calibration is ensured, which is suitable for more application scenarios. The channels to be tested are connected through the power supply test box, and each channel has a corresponding calibration data group, which realizes the automatic calibration and calibration of multi-channel power supplies, effectively improves the calibration efficiency and simplifies the operation process.
[0087] In one embodiment, determining the calibration value corresponding to the calibration preset value according to the calibration data group corresponding to the channel to be tested includes:
[0088] Obtaining a calibration data group corresponding to the channel to be tested;
[0089] Determine, according to the multiple groups of calibration measurement values and calibration power parameter values in the calibration data group, a relationship between the measurement value of the measuring instrument and the power parameter value of the channel to be measured;
[0090] The measured value in the relationship is set as the calibration preset value to obtain a calibration value corresponding to the calibration preset value.
[0091] Exemplarily, when calculating the calibration value, the calibration data group corresponding to the channel to be measured is obtained. In one example, the calibration data group is stored in a preset storage area, different channels may correspond to different channel identifiers, and the calibration data group corresponds to the channel identifier when stored. According to the channel identifier, the calibration data group corresponding to the channel to be measured can be obtained from the preset storage area.
[0092] The calibration data group may include multiple sets of calibration measurement values and calibration power parameter values. According to these multiple sets of calibration measurement values and calibration power parameter values, the relationship between the measurement value of the measuring instrument and the power parameter value of the channel to be measured can be determined. In an example, data fitting can be performed based on the multiple sets of calibration measurement values and calibration power parameter values to obtain a relationship, and the data fitting method can be set according to the actual application scenario.
[0093] Optionally, after obtaining the relationship, the measured value in the relationship is set as a calibration preset value, and the corresponding power parameter value under the calibration preset value is obtained, which is the calibration value.
[0094] In the embodiments of the present disclosure, a relationship between the measured value of the measuring instrument and the power parameter value of the channel to be measured is determined according to a calibration data group, and the measured value in the relationship is set as a calibration preset value, so that the calibration value corresponding to the calibration preset value can be obtained. By determining the relationship through the calibration data group, the correlation between the power parameter value of the channel to be measured and the measured value of the instrument can be obtained quickly and accurately, so that the calibration value of the channel to be measured in the actual application scenario can be determined according to the calibration preset value, and then the accuracy of the output of the channel to be measured is ensured through a subsequent calibration process, which is suitable for more application scenarios.
[0095] In one embodiment, determining the relationship between the measurement value of the measuring instrument and the power parameter value of the channel to be measured according to the multiple groups of calibration measurement values and calibration power parameter values in the calibration data group includes:
[0096] According to the calibration preset value, determining a target data group from the calibration data group, wherein the target data group includes a plurality of groups of calibration measurement values and calibration power parameter values;
[0097] According to the target data group, a relationship between the measurement value of the measuring instrument and the power parameter value of the channel to be measured is determined.
[0098] Exemplarily, when calculating the relationship, a portion of data can be selected from the calibration data group as the target data group for calculation. In a possible implementation, the target data group is determined from the calibration data group according to the obtained calibration preset value. In one example, the data group with a preset number of groups closest to the calibration preset value can be determined as the target data group. The preset number of groups is set according to the actual application scenario. For example, the preset number of groups can be set to 2.
[0099] According to the target data group, the relationship between the measured value and the power parameter value is determined, wherein the target data group can be fitted with data by a preset data fitting method to obtain the relationship; or a linear expression between the measured value and the power parameter value can be directly calculated according to the target data group, that is, the relationship between the two; specifically, it can be determined according to the actual application scenario.
[0100] In the embodiment of the present disclosure, when determining the relationship, the target data group is determined from the calibration data group according to the calibration preset value, and the relationship is determined according to the target data group, so that the target data group associated with the calibration preset value can be obtained in a targeted manner, thereby improving the accuracy and reliability of the relationship, so that more accurate calibration values can be obtained, and high-precision calibration of the channel to be measured can be achieved.
[0101] In one embodiment, the method for obtaining the calibration data set includes:
[0102] In response to receiving the calibration instruction, determining a target channel from the plurality of channels, and controlling the power supply test box to connect the target channel with the measuring instrument;
[0103] Sending the preset power parameter value to the target channel, and obtaining the calibrated measurement value of the measuring instrument and the calibrated power parameter value of the target channel;
[0104] When the difference between the calibration measurement value and the calibration power parameter value is less than a preset difference, the calibration measurement value and the calibration power parameter value are recorded to obtain a calibration data group corresponding to the target channel.
[0105] Exemplarily, the calibration data group may be recorded during the calibration process. In a possible implementation, when a calibration instruction is received, a target channel is determined from multiple channels according to the calibration instruction. In one example, the calibration instruction may carry a channel identifier, and the target channel may be determined according to the channel identifier. After the target channel is determined, the power supply test box is controlled to connect the target channel and the measuring instrument, so that the measuring instrument can measure the power parameters output by the target channel.
[0106] The preset power parameter value is sent to the target channel, wherein the preset power parameter value can be set according to the actual application scenario, different channels and different power supply types can correspond to different preset power parameter values, and the preset power parameter value can include multiple. When the preset power parameter value includes multiple, the circuit parameters of the target channel are adjusted in turn according to the multiple preset power parameter values and recorded to obtain multiple groups of calibrated measurement values and calibrated power parameter values, which are calibration data groups.
[0107] Optionally, the preset power parameters can be automatically determined after receiving the calibration instruction. For example, the preset power parameters can be determined based on the historical calibration data of the target channel; the preset power parameters can be determined based on the power type of the target channel, the power parameter output range of the target channel, etc.
[0108] After the target channel receives the preset power parameter value, it outputs it according to the preset power parameter value. Due to equipment errors and other reasons, there may be a difference between the value output by the target channel and the preset power parameter value. When the circuit is stable, obtain the measurement value of the measuring instrument, that is, the calibration measurement value, and obtain the power parameter value of the target channel, that is, the calibration power parameter value. When the difference between the calibration measurement value and the calibration power parameter value is less than the preset difference, it can be considered that the calibration measurement value and the calibration power parameter value are within the allowable error range, and the calibration measurement value and the calibration power parameter value are recorded to obtain the calibration data group corresponding to the target channel. The preset difference can be determined according to the actual application scenario. When the difference between the two is greater than or equal to the preset difference, it can be considered that there may be equipment failure and other problems that cause the deviation to be too large, and an early warning message can be sent to troubleshoot the problem.
[0109] In one example, after the calibration data set is obtained, the calibration data set is stored in a preset storage area.
[0110] In the embodiment of the present disclosure, when obtaining a calibration data group, in response to receiving a calibration instruction, a target channel is determined from multiple channels, and the power supply test box is controlled to connect the target channel and the measuring instrument. When the difference between the calibration measurement value and the calibration power parameter value is less than a preset difference, the calibration data group is recorded, thereby enabling automatic calibration of a multi-channel power supply. By judging the difference between the calibration measurement value and the calibration power parameter value, the output accuracy and reliability of the target channel are guaranteed, the calibration process steps are effectively simplified, and the calibration efficiency is improved.
[0111] In one embodiment, after obtaining the calibrated measurement value of the measuring instrument and the calibrated power parameter value of the target channel, the method further includes:
[0112] When the calibrated measurement value and / or the calibrated power parameter value is outside a preset parameter range, a warning message is sent.
[0113] For example, a preset parameter range can be set according to an actual application scenario, and the preset parameter range can be set according to a reasonable parameter range. When the calibration measurement value and / or the calibration power parameter value is outside the preset parameter range, it can be considered that there may be a device failure at this time, and an early warning message is sent.
[0114] In one example, the warning information can be sent to a preset operation and maintenance account to notify the operation and maintenance personnel to perform troubleshooting. Optionally, the warning information can also include the channel identifier of the target channel, parameters and parameter values outside the preset parameter range, etc., which can be determined based on the actual application scenario. In one example, while sending the warning information, the power supply test box can also be controlled to cut off the connection between the measuring instrument and the power supply to be tested.
[0115] Figure 5 FIG. 1 is a flow chart showing a method for obtaining a calibration data set according to an exemplary embodiment. Figure 5 As shown, the preset power parameter value is obtained and sent to the target channel; after the circuit is stable, the measurement value of the measuring instrument and the power parameter value of the target channel, that is, the calibration measurement value and the calibration power parameter value, are read; it is determined whether the calibration measurement value and the calibration power parameter value are within the preset parameter range and the difference is less than the preset difference. If not, it is considered that there is an abnormality and the calibration process is terminated. If it is consistent, the subsequent process is continued and the data is recorded; the above steps are performed for each channel until the calibration of all channels of the power supply to be tested is completed; according to the channel identification of each channel, the calibration data is downloaded and stored in the preset storage area, and the calibration is completed.
[0116] In the embodiments of the present disclosure, when the calibration measurement value and / or the calibration power parameter value is outside the preset parameter range, it can be considered that there is an output fault in the target channel at this time, and an early warning message is sent to enable relevant operation and maintenance personnel to quickly and accurately locate the target channel and perform troubleshooting, thereby ensuring the safety and reliability of the calibration process, improving the calibration efficiency, and effectively improving the accuracy of power supply output, avoiding problems such as power supply output errors or large output deviations caused by output faults.
[0117] In one embodiment, obtaining the calibration preset value includes:
[0118] In response to receiving a calibration instruction, determining a channel to be tested that matches the calibration instruction;
[0119] A calibration preset value is determined according to the power type corresponding to the channel to be tested.
[0120] Exemplarily, the calibration preset value is determined according to the calibration instruction. In one example, a calibration instruction is received, and a channel to be tested that matches the calibration instruction is determined, wherein the calibration instruction may carry a channel identifier corresponding to the channel to be tested, and the channel to be tested may be determined from multiple channels of the power supply to be tested according to the channel identifier.
[0121] Different channels may correspond to different power types, and different power types may correspond to different parameter output ranges. Optionally, a calibration preset value is determined according to the power type corresponding to the channel to be tested. In one example, the relationship between the power type and the calibration preset value may be stored in a preset storage area in advance, and the calibration preset value is a parameter value determined within the parameter output range corresponding to the power type.
[0122] The embodiment of the present disclosure, after receiving the calibration instruction, determines the matching channel to be tested, and determines the calibration preset value according to the power supply type of the channel to be tested, so that it can automatically match the channel to be tested and automatically determine the calibration preset value, thereby realizing automatic calibration of multi-channel power supplies, being suitable for more application scenarios, effectively simplifying the calibration process, eliminating the need for manual switching and setting of calibration preset values, and improving calibration efficiency.
[0123] Figure 6 FIG. 1 is a flow chart of a calibration method for a multi-channel power supply according to an exemplary embodiment. Figure 6 As shown, obtain the calibration preset value n; select the target data group from the calibration data group of the channel to be measured, and calculate the relationship; calculate the calibration value corresponding to the calibration preset value according to the relationship, and adjust the circuit parameters of the channel to be measured according to the calibration value; read the measurement value d of the measuring instrument and the power parameter value p of the channel to be measured; when the difference between n and d and the difference between p and d are less than the preset difference, determine that the calibration is passed. In an example, the absolute value of the error between n and d abs1=|nd| and the absolute value of the error between p and d abs2=|pd| can be calculated, and the accuracy c corresponding to the channel to be measured is used as the preset difference. When both the absolute values of the errors are less than or equal to the preset difference, determine that the calibration is passed. Through the calibration data group, the error deviation that may exist in the equipment can be calibrated, and the equipment hardware can be optimized by adjusting the circuit parameters, so that the channel output value is closer to or equal to the set value, and the accuracy of the channel output is guaranteed.
[0124] In a possible implementation, the straight line equation can be calculated based on the target data set, and the straight line equation is used as the calculated relationship. Among them, the two data sets (x1, y1) and (x2, y2) with the closest distance n can be taken as the target data set, x1 and x2 are the calibration measurement values, y1 and y2 are the calibration power parameter values, and the slope k is calculated, k=(y2-y1) / (x2-x1); the intercept b is calculated, using the first point (x1, y1), b=y1-k*x1; the straight line equation y is output, y=k*x+b; n is substituted into the straight line equation to obtain the calibration value p, p=k*n+b.
[0125] In one example, if any of the above differences is greater than a preset difference, the calibration is considered to have failed, and the data can be marked for subsequent retesting. Optionally, after each channel is calibrated, a calibration report is generated to end the calibration process.
[0126] Through this embodiment, frequent switching of channels and power supply types is avoided, the calibration process is effectively simplified, and the time cost is reduced; the calibration data and calibration data of different channels and different power supply types can be directly displayed, which is convenient for data proofreading and hidden danger elimination.
[0127] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0128] Based on the same inventive concept, the embodiment of the present application also provides a multi-channel power supply calibration device for implementing the multi-channel power supply calibration method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the calibration device for one or more multi-channel power supplies provided below can refer to the limitations of the calibration method for the multi-channel power supply above, and will not be repeated here.
[0129] In an exemplary embodiment, Figure 7As shown, a calibration device for a multi-channel power supply is provided, the device is applied to a controller of a calibration system for a multi-channel power supply, the calibration system for the multi-channel power supply comprises an electrically connected measuring instrument and a power supply test box, the power supply test box is electrically connected to a plurality of channels of a power supply to be tested, the controller is electrically connected to the measuring instrument, the power supply test box, and the power supply to be tested, respectively, the device comprises:
[0130] The acquisition module 710 is used to acquire the calibration preset value and control the power supply test box to connect the channel to be tested and the measuring instrument;
[0131] A first determination module 720 is used to determine the calibration value corresponding to the calibration preset value according to the calibration data group corresponding to the channel to be measured, wherein the calibration data group includes the calibration measurement value of the measuring instrument obtained after sending the preset power parameter value to the channel to be measured and the calibration power parameter value of the channel to be measured;
[0132] An adjustment module 730, configured to adjust the circuit parameters corresponding to the channel to be measured according to the calibration value, and obtain the measurement value of the measuring instrument and the power parameter value corresponding to the channel to be measured;
[0133] The second determination module 740 is used to determine that the calibration of the channel to be measured has passed when a first difference between the calibration preset value and the measured value and a second difference between the power parameter value and the measured value are both within a preset range.
[0134] In one embodiment, the first determining module is further configured to:
[0135] Obtaining a calibration data group corresponding to the channel to be tested;
[0136] Determine, according to the multiple groups of calibration measurement values and calibration power parameter values in the calibration data group, a relationship between the measurement value of the measuring instrument and the power parameter value of the channel to be measured;
[0137] The measured value in the relationship is set as the calibration preset value to obtain a calibration value corresponding to the calibration preset value.
[0138] In one embodiment, the first determining module is further configured to:
[0139] According to the calibration preset value, determining a target data group from the calibration data group, wherein the target data group includes a plurality of groups of calibration measurement values and calibration power parameter values;
[0140] According to the target data group, a relationship between the measurement value of the measuring instrument and the power parameter value of the channel to be measured is determined.
[0141] In one embodiment, the device further comprises a module for acquiring the calibration data set, and the module for acquiring the calibration data set is further used for:
[0142] In response to receiving the calibration instruction, determining a target channel from the plurality of channels, and controlling the power supply test box to connect the target channel with the measuring instrument;
[0143] Sending the preset power parameter value to the target channel, and obtaining the calibrated measurement value of the measuring instrument and the calibrated power parameter value of the target channel;
[0144] When the difference between the calibration measurement value and the calibration power parameter value is less than a preset difference, the calibration measurement value and the calibration power parameter value are recorded to obtain a calibration data group corresponding to the target channel.
[0145] In one embodiment, the module for acquiring the calibration data set is further used for:
[0146] When the calibrated measurement value and / or the calibrated power parameter value is outside a preset parameter range, a warning message is sent.
[0147] In one embodiment, the acquisition module is further used for:
[0148] In response to receiving a calibration instruction, determining a channel to be tested that matches the calibration instruction;
[0149] A calibration preset value is determined according to the power type corresponding to the channel to be tested.
[0150] Each module in the calibration device for the multi-channel power supply can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0151] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 8As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store calibration preset values and other data involved in the method described in this embodiment. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a calibration method for a multi-channel power supply is implemented.
[0152] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0153] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0154] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0155] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0156] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0157] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0158] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0159] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A calibration method for a multi-channel power supply, characterized in that: The method is applied to a controller of a calibration system of a multi-channel power supply, wherein the calibration system of the multi-channel power supply comprises an electrically connected measuring instrument and a power supply test box, wherein the power supply test box is electrically connected to a plurality of channels of a power supply to be tested, and wherein the controller is electrically connected to the measuring instrument, the power supply test box, and the power supply to be tested, respectively. The method comprises: Obtaining a calibration preset value, and controlling the power supply test box to connect the channel to be tested and the measuring instrument; Determine the calibration value corresponding to the calibration preset value according to the calibration data group corresponding to the channel to be measured, wherein the calibration data group includes the calibration measurement value of the measuring instrument obtained after sending the preset power parameter value to the channel to be measured and the calibration power parameter value of the channel to be measured; Adjusting the circuit parameters corresponding to the channel to be measured according to the calibration value, and obtaining the measurement value of the measuring instrument and the power parameter value corresponding to the channel to be measured; When the first difference between the calibration preset value and the measured value and the second difference between the power parameter value and the measured value are both within a preset range, it is determined that the calibration of the channel to be measured has passed.
2. The method according to claim 1, characterized in that: The step of determining the calibration value corresponding to the preset calibration value according to the calibration data group corresponding to the channel to be tested includes: Obtaining a calibration data group corresponding to the channel to be tested; Determine, according to the multiple groups of calibration measurement values and calibration power parameter values in the calibration data group, a relationship between the measurement value of the measuring instrument and the power parameter value of the channel to be measured; The measured value in the relationship is set as the calibration preset value to obtain a calibration value corresponding to the calibration preset value.
3. The method according to claim 2, characterized in that Determining the relationship between the measurement value of the measuring instrument and the power parameter value of the channel to be measured according to the multiple groups of calibration measurement values and calibration power parameter values in the calibration data group includes: According to the calibration preset value, determining a target data group from the calibration data group, wherein the target data group includes a plurality of groups of calibration measurement values and calibration power parameter values; According to the target data group, a relationship between the measurement value of the measuring instrument and the power parameter value of the channel to be measured is determined.
4. The method according to claim 1, characterized in that: The method for obtaining the calibration data set includes: In response to receiving the calibration instruction, determining a target channel from the plurality of channels, and controlling the power supply test box to connect the target channel with the measuring instrument; Sending the preset power parameter value to the target channel, and obtaining the calibrated measurement value of the measuring instrument and the calibrated power parameter value of the target channel; When the difference between the calibration measurement value and the calibration power parameter value is less than a preset difference, the calibration measurement value and the calibration power parameter value are recorded to obtain a calibration data group corresponding to the target channel.
5. The method according to claim 4, characterized in that After obtaining the calibrated measurement value of the measuring instrument and the calibrated power parameter value of the target channel, the method further includes: When the calibrated measurement value and / or the calibrated power parameter value is outside a preset parameter range, a warning message is sent.
6. The method according to claim 1, characterized in that The obtaining of the calibration preset value comprises: In response to receiving a calibration instruction, determining a channel to be tested that matches the calibration instruction; A calibration preset value is determined according to the power type corresponding to the channel to be tested.
7. A calibration device for a multi-channel power supply, characterized in that: The device is applied to a controller of a calibration system of a multi-channel power supply, wherein the calibration system of the multi-channel power supply comprises an electrically connected measuring instrument and a power supply test box, wherein the power supply test box is electrically connected to a plurality of channels of a power supply to be tested, and wherein the controller is electrically connected to the measuring instrument, the power supply test box, and the power supply to be tested, respectively. The device comprises: An acquisition module, used for acquiring a calibration preset value and controlling the power supply test box to connect the channel to be tested with the measuring instrument; A first determination module, configured to determine the calibration value corresponding to the calibration preset value according to the calibration data group corresponding to the channel to be measured, wherein the calibration data group includes the calibration measurement value of the measuring instrument obtained after sending the preset power parameter value to the channel to be measured and the calibration power parameter value of the channel to be measured; An adjustment module, used to adjust the circuit parameters corresponding to the channel to be measured according to the calibration value, and obtain the measurement value of the measuring instrument and the power parameter value corresponding to the channel to be measured; The second determination module is used to determine that the calibration of the channel to be measured has passed when a first difference between the calibration preset value and the measured value and a second difference between the power parameter value and the measured value are both within a preset range.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.