Controller calibration method and system, electronic equipment and storage medium

Through the automated controller calibration method, the calibration time-consuming and low accuracy caused by manual intervention in the prior art is solved, and automated connection, data matching and error check are realized, ensuring the effectiveness and efficiency of calibration.

CN119396114APending Publication Date: 2025-02-07CISDI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411502797.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

The prior art controller calibration method requires manual intervention, which is time-consuming, complicated in operation, and is susceptible to human factors, resulting in low calibration accuracy.

Method used

Provide an automated controller calibration method, by determining the calibration task type in response to the controller calibration request, and closing the connection between the to-calibration controller and the target calibration tool according to the calibration task type, performing calibration execution based on the preset calibration test data table Steps to obtain the calibration and acquisition data table. If the data table meets the calibration error conditions, calibrate it.

Benefits of technology

The automatic closing of the connection between the controller and the calibration tool is realized, the manual setting steps are reduced, the preset calibration test data table is automatically matched, and the calibration collected data is automatically checked whether the calibration is in compliance with the predetermined error conditions, ensuring the calibration validity and Accuracy reduces the need for manual intervention and makes the entire calibration process more efficient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396114A_ABST
    Figure CN119396114A_ABST
Patent Text Reader

Abstract

The invention provides a controller calibration method and system, an electronic device and a storage medium, and the method comprises the steps: determining a calibration task type in response to a controller calibration request, determining associated calibration execution steps and calibration error conditions, and closing the connection between a to-be-calibrated controller and a target calibration tool according to the calibration task type. Matching a corresponding preset calibration test data table based on the calibration task type, executing a calibration execution step to obtain a calibration acquisition data table, and if the calibration acquisition data table meets a calibration error condition, calibrating the to-be-calibrated controller; according to the embodiment of the invention, the connection between the controller and the calibration tool is automatically closed, the manual setting step is reduced, the preset calibration test data table is matched according to the calibration task type, and then whether the calibration collection data meets the preset error condition is checked, so that the calibration effectiveness and accuracy can be ensured, and the calibration efficiency is improved. And the automatic process reduces the demand of manual intervention, so that the whole calibration process is more efficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a controller calibration method, system, electronic device and storage medium. Background Art

[0002] The embedded servo vibration cylinder controller is a micro electronic controller specially used to control the vibration cylinder. Due to its fast response speed, low network dependence, small size and easy deployment, it has gradually been widely used in the field of industrial vibration control. In actual use, the controller needs to connect multiple signals, including control signals, feedback signals, actuator signals and sensor signals, among which many signals exist in the form of analog quantities. For example, the pressure in the cylinder collected by the pressure sensor and the cylinder temperature collected by the temperature sensor are usually expressed as analog current signals, while the vibration signal feedback is usually presented as an acceleration signal in the form of analog voltage. Due to the inherent errors in the embedded hardware circuit itself, there will be deviations between the actual measured value and the output value. In order to ensure that the controller can be accurately controlled during use, all analog input and output channels must be calibrated in the production test link. The calibration method of the prior art often requires manual intervention, which is time-consuming, complicated to operate, and easily affected by human factors, resulting in low calibration accuracy. Summary of the invention

[0003] The purpose of the embodiments of the present invention is to provide a controller calibration method, system, electronic device and storage medium to solve the above technical problems.

[0004] The present invention provides a controller calibration method, which includes: in response to a controller calibration request, determining a calibration task type, and determining calibration execution steps and calibration error conditions associated with the calibration task type; closing the connection between a controller to be calibrated and a target calibration tool according to the calibration task type, and controlling the opening of the controller to be calibrated; matching a corresponding preset calibration test data table based on the calibration task type, and executing the calibration execution steps according to the preset calibration test data table and the target calibration tool to obtain a calibration collection data table; if the calibration collection data table meets the calibration error condition, calibrating the controller to be calibrated according to the calibration collection data table.

[0005] In one embodiment of the present invention, the calibration collection data table satisfies the calibration error condition, including: performing linear fitting based on the calibration collection data table and the corresponding preset calibration test data table to obtain linear fitting relationship parameters; determining a fitting error value based on the linear fitting relationship parameters and preset linear expectation parameters; if the fitting error value is less than or equal to a preset error threshold, determining that the calibration collection data table satisfies the calibration error condition.

[0006] In one embodiment of the present invention, the calibration task types include voltage-type analog input channel calibration, current-type analog input channel calibration, voltage-type analog output channel calibration, and current-type analog output channel calibration.

[0007] In one embodiment of the present invention, if the calibration task type is voltage-type analog input channel calibration, and the target calibration tool is a standard voltage input source, then the corresponding preset calibration test data table is matched based on the calibration task type, and the calibration execution steps are performed according to the preset calibration test data table and the target calibration tool, including: calling a preset voltage input calibration data table, wherein the preset voltage input calibration data table includes a plurality of different calibration test voltage input values; controlling the standard voltage input source to input in sequence according to each calibration test voltage input value in the preset voltage input calibration data table, and receiving the voltage input calibration collection value of the controller to be calibrated each time to obtain a plurality of voltage input calibration collection values; generating a voltage input calibration collection data table according to each of the voltage input calibration collection values ​​and the preset voltage input calibration data table.

[0008] In one embodiment of the present invention, if the calibration task type is current type analog input channel calibration, and the target calibration tool is a standard current input source, then the corresponding preset calibration test data table is matched based on the calibration task type, and the calibration execution steps are performed according to the preset calibration test data table and the target calibration tool, including: calling the preset current input calibration data table, the preset current input calibration data table including a plurality of different calibration test current input values; controlling the standard current input source to input in sequence according to each calibration test current input value in the preset current input calibration data table, and receiving the current input calibration collection value of the controller to be calibrated each time to obtain a plurality of current input calibration collection values; generating a current input calibration collection data table according to each of the current input calibration collection values ​​and the preset current input calibration data table.

[0009] In one embodiment of the present invention, if the calibration task type is voltage-type analog output channel calibration, the target calibration tool is a multimeter, and the multimeter is used to measure the output voltage of the controller to be calibrated, then the corresponding preset calibration test data table is matched based on the calibration task type, and the calibration execution steps are performed according to the preset calibration test data table and the target calibration tool, including: calling a preset voltage output calibration data table, the preset voltage output calibration data table including a plurality of different calibration test voltage output values; generating output control instructions according to each calibration test voltage output value in the preset voltage output calibration data table, and controlling the controller to be calibrated to output according to the output control instructions, and reading the voltage output measurement value of the multimeter each time to obtain a plurality of voltage output calibration collection values; generating a voltage output calibration collection data table according to each of the voltage output calibration collection values ​​and the preset voltage output calibration data table.

[0010] In one embodiment of the present invention, if the calibration task type is current type analog output channel calibration, the target calibration tool is a load resistor and a multimeter, the load resistor is connected in series with the controller to be calibrated, and the multimeter is used to measure the voltage of the load resistor, then the corresponding preset calibration test data table is matched based on the calibration task type, and the calibration execution steps are performed according to the preset calibration test data table and the target calibration tool, including: obtaining the resistance value of the load resistor, calling a preset current output calibration data table, the preset current output calibration data table including a plurality of different calibration test current output values; generating output control instructions according to each calibration test current output value in the preset current output calibration data table, and controlling the controller to be calibrated to output according to the output control instructions, and obtaining a plurality of load resistor voltage acquisition values ​​based on the multimeter reading the voltage of the load resistor each time; determining a plurality of current output calibration acquisition values ​​according to the acquisition values ​​of each load resistor voltage and the resistance value of the load resistor; generating a current output calibration acquisition data table according to each current output calibration acquisition value and the preset current output calibration data table.

[0011] An embodiment of the present invention also provides a controller calibration system, which includes: a calibration information acquisition module, which is used to determine the calibration task type in response to a controller calibration request, and determine the calibration execution steps and calibration error conditions associated with the calibration task type; a calibration test preparation module, which is used to close the connection between the controller to be calibrated and the target calibration tool according to the calibration task type, and control the opening of the controller to be calibrated; a calibration step execution module, which is used to match the corresponding preset calibration test data table based on the calibration task type, and execute the calibration execution steps according to the preset calibration test data table and the target calibration tool to obtain a calibration collection data table; a calibration standard verification module, which is used to calibrate the controller to be calibrated according to the calibration collection data table if the calibration collection data table meets the calibration error condition.

[0012] An embodiment of the present invention also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements a controller calibration method as described in any one of the above embodiments.

[0013] An embodiment of the present invention further provides a computer-readable storage medium on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the controller calibration method as described in any one of the above embodiments.

[0014] The present invention provides a controller calibration method, system, electronic device and storage medium. The method determines the calibration task type in response to a controller calibration request, determines the calibration execution steps and calibration error conditions associated with the calibration task type, closes the connection between the controller to be calibrated and the target calibration tool according to the calibration task type, matches the corresponding preset calibration test data table based on the calibration task type, and executes the calibration execution steps according to the preset calibration test data table and the target calibration tool to obtain a calibration collection data table. If the calibration collection data table meets the calibration error condition, the controller to be calibrated is calibrated according to the calibration collection data table. The beneficial effects that can be achieved by the present application include automatically closing the connection between the controller and the calibration tool and starting the controller, reducing the steps of manual setting, automatically matching the preset calibration test data table according to the calibration task type, avoiding the process of manually searching for a suitable data set, and then automatically checking whether the calibration collection data meets the preset error conditions. Only when the conditions are met will the calibration be performed, so that the effectiveness and accuracy of the calibration can be ensured, and the automated process reduces the need for manual intervention, making the entire calibration process more efficient.

[0015] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0017] Figure 1 is a schematic diagram of an exemplary system architecture shown in an exemplary embodiment of the present application;

[0018] Figure 2 is a flow chart of a controller calibration method shown in an exemplary embodiment of the present application;

[0019] Figure 3 is a specific input channel calibration flow chart shown in an exemplary embodiment of the present application;

[0020] Figure 4 is a specific output channel calibration flow chart shown in an exemplary embodiment of the present application;

[0021] Figure 5 is a schematic diagram of a controller calibration system shown in an exemplary embodiment of the present application;

[0022] Figure 6 It is a structural diagram of a computer system of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will describe the embodiments of the present invention with reference to the accompanying drawings and specific embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0024] It should be noted that the illustrations provided in the following embodiments are only used to illustrate the basic concept of the present invention in a schematic manner, and thus the illustrations only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0025] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.

[0026] The "and / or" mentioned in this application describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0027] Figure 1 It is a schematic diagram of an exemplary system architecture shown in an exemplary embodiment of the present application.

[0028] Reference Figure 1 As shown, the system architecture may include a controller to be calibrated 110 and a host computer 120. The host computer 120 determines the calibration task type in response to the controller calibration request, and determines the calibration execution steps and calibration error conditions associated with the calibration task type, closes the connection between the controller to be calibrated 110 and the target calibration tool according to the calibration task type, and controls the opening of the controller to be calibrated 110, matches the corresponding preset calibration test data table based on the calibration task type, and executes the calibration execution steps according to the preset calibration test data table and the target calibration tool to obtain a calibration collection data table, and if the calibration collection data table meets the calibration error condition, the controller to be calibrated 110 is calibrated according to the calibration collection data table. The above-mentioned host computer 120 can be at least one of a microcomputer, an embedded computer, a network computer, an industrial computer, etc.; the above-mentioned controller to be calibrated 110 includes an embedded servo vibration cylinder controller, which is a microelectronic device dedicated to controlling a vibration cylinder. It can accurately control the movement of the cylinder and has the characteristics of fast response speed, high reliability, small size and easy deployment. It is responsible for monitoring and adjusting the position, speed, pressure and other parameters of the cylinder to ensure the stable operation of the system. By connecting a variety of sensors and actuator signals, the controller can adjust the cylinder state in real time to adapt to different working conditions.

[0029] Schematically, the upper computer 120 determines the calibration task type and the calibration execution steps and calibration error conditions associated with the calibration task type by responding to the controller calibration request, closes the connection between the controller to be calibrated 110 and the target calibration tool according to the calibration task type, matches the corresponding preset calibration test data table based on the calibration task type, and executes the calibration execution steps according to the preset calibration test data table and the target calibration tool to obtain a calibration collection data table. If the calibration collection data table meets the calibration error condition, the controller to be calibrated is calibrated according to the calibration collection data table; the connection between the controller and the calibration tool is automatically closed, and the controller is started, which reduces the manual setting steps, automatically matches the preset calibration test data table according to the calibration task type, and avoids the process of manually searching for a suitable data set. Secondly, it automatically checks whether the calibration collection data meets the predetermined error conditions, and only calibrates when the conditions are met. This can ensure the effectiveness and accuracy of the calibration, and the automated process reduces the need for manual intervention, making the entire calibration process more efficient.

[0030] Figure 2 is a flowchart of a controller calibration method shown in an exemplary embodiment of the present application. The controller calibration method can be Figure 1 The implementation environment may be implemented in other implementation environments, and the above implementation environments are not specifically limited here. Figure 2 As shown, the flowchart of the controller calibration method includes at least steps S210 to S240, which are described in detail as follows:

[0031] In step S210 , in response to a controller calibration request, a calibration task type is determined, and calibration execution steps and calibration error conditions associated with the calibration task type are determined.

[0032] In one embodiment of the present application, the controller calibration request is based on the operational feedback of the relevant technicians on the controller calibration received by the host computer, and the controller calibration request includes at least one of the request time information, calibration type information, and controller model information. Among them, the host computer is installed with auxiliary calibration software for calibrating the controller, and the auxiliary calibration software can realize the functions of connecting to the controller to be calibrated, receiving the acquisition signal of the controller to be calibrated, sending out analog signals, recording calibration data, storing calibration data, and controlling the connection of calibration tools.

[0033] In one embodiment of the present application, the above-mentioned calibration task types include voltage-type analog input channel calibration, current-type analog input channel calibration, voltage-type analog output channel calibration, and current-type analog output channel calibration.

[0034] In one embodiment of the present application, the calibration execution step associated with the calibration task type is a task execution operation step pre-set for each type of calibration task, which is used to perform different calibration step operations for different calibration types, and is encapsulated in the auxiliary calibration software of the host computer in the form of code to perform automated calibration steps. In some other embodiments, the calibration execution step can be manually operated by relevant technicians to solve the calibration problem of adaptability.

[0035] In one embodiment of the present application, the calibration error condition refers to the controller design calibration standard range that the calibration collection data table obtained after the calibration execution step needs to meet, which includes linear conditions and nonlinear conditions, wherein the linear condition includes the linear parameter value error, and the nonlinear condition includes the nonlinear error.

[0036] In step S220, the connection between the controller to be calibrated and the target calibration tool is closed according to the calibration task type, and the controller to be calibrated is controlled to be turned on.

[0037] In one embodiment of the present application, the connection between the controller to be calibrated and the target calibration tool is achieved by closing the closed channel connection line under the control of a host computer. The controller to be calibrated includes a voltage-type analog input channel, a current-type analog input channel, a voltage-type analog output channel, and a current-type analog output channel.

[0038] In step S230, a corresponding preset calibration test data table is matched based on the calibration task type, and a calibration execution step is performed according to the preset calibration test data table and the target calibration tool to obtain a calibration collection data table.

[0039] In one embodiment of the present application, the preset calibration test data table is called by the auxiliary calibration software. The preset calibration test data table has 2 columns and n rows. If it is a voltage type analog input channel, the first column is the input voltage value USi (i=1.2.3…n), and the second column is the controller acquisition value DINi (i=1.2.3…n); if it is a current type analog input channel, the first column is the input current value ISi (i=1.2.3…n), and the second column is the controller acquisition value DINi (i=1.2.3…n); if it is a voltage type analog output channel or a current type analog output channel, the first column is the controller digital output DOUTi (i=1.2.3…n), and the second column is the voltage signal value UOi. In some other embodiments, the above-mentioned preset calibration test data table can also be automatically generated based on the auxiliary calibration software according to the calibration requirements to meet a variety of calibration tasks. Among them, the value of the number of data groups n should be not less than 10 and not more than 20.

[0040] In one embodiment of the present application, if the calibration task type is voltage-type analog input channel calibration and the target calibration tool is a standard voltage input source, a preset voltage input calibration data table is called, and the preset voltage input calibration data table includes multiple different calibration test voltage input values. According to each calibration test voltage input value in the preset voltage input calibration data table, the standard voltage input source is controlled in turn for input, and the voltage input calibration collection value of the controller to be calibrated each time is received to obtain multiple voltage input calibration collection values, and a voltage input calibration collection data table is generated according to each voltage input calibration collection value and the preset voltage input calibration data table.

[0041] In one embodiment of the present application, if the calibration task type is current type analog input channel calibration and the target calibration tool is a standard current input source, a preset current input calibration data table is called, and the preset current input calibration data table includes multiple different calibration test current input values. According to each calibration test current input value in the preset current input calibration data table, the standard current input source is controlled in turn to input, and the current input calibration collection value of the controller to be calibrated each time is received to obtain multiple current input calibration collection values, and a current input calibration collection data table is generated according to each current input calibration collection value and the preset current input calibration data table.

[0042] In one embodiment of the present application, if the calibration task type is voltage-type analog output channel calibration, the target calibration tool is a multimeter, and the multimeter is used to measure the output voltage of the controller to be calibrated, then the preset voltage output calibration data table is called, and the preset voltage output calibration data table includes multiple different calibration test voltage output values. Output control instructions are generated according to each calibration test voltage output value in the preset voltage output calibration data table, and the controller to be calibrated is controlled to output according to the output control instructions, and the voltage output measurement value of the multimeter is read each time to obtain multiple voltage output calibration collection values, and a voltage output calibration collection data table is generated according to each voltage output calibration collection value and the preset voltage output calibration data table.

[0043] In one embodiment of the present application, if the calibration task type is current type analog output channel calibration, the target calibration tools are a load resistor and a multimeter, the load resistor is connected in series with the controller to be calibrated, and the multimeter is used to measure the voltage of the load resistor, then the resistance value of the load resistor is obtained, and a preset current output calibration data table is called, the preset current output calibration data table includes multiple different calibration test current output values, and output control instructions are generated according to each calibration test current output value in the preset current output calibration data table, and the controller to be calibrated is controlled to output according to the output control instructions, based on the multimeter reading the voltage of the load resistor each time, a plurality of load resistor voltage collection values ​​are obtained, and a plurality of current output calibration collection values ​​are determined according to the collection values ​​of each load resistor voltage and the resistance value of the load resistor, and a current output calibration collection data table is generated according to each current output calibration collection value and the preset current output calibration data table.

[0044] In step S240, if the calibration collection data table satisfies the calibration error condition, the controller to be calibrated is calibrated according to the calibration collection data table.

[0045] In one embodiment of the present application, calibrating the controller to be calibrated according to the calibration collection data table includes downloading the calibration collection data table and sending it to the controller to be calibrated, and writing the calibration content of the calibration collection data table into the configuration file of the controller and storing it through the host computer to ensure that the parameters are not lost during power failure.

[0046] In one embodiment of the present application, linear fitting is performed based on the calibration collection data table and the corresponding preset calibration test data table to obtain linear fitting relationship parameters, and a fitting error value is determined based on the linear fitting relationship parameters and the preset linear expectation parameters. The fitting error value is the absolute value of the difference between the fitting relationship parameters and the preset linear expectation parameters. If the fitting error value is less than or equal to the preset error threshold, it is determined that the calibration collection data table meets the calibration error condition.

[0047] Reference Figure 3 As shown, Figure 3 FIG. 1 is a specific input channel calibration flow chart shown in an exemplary embodiment of the present application. Figure 3 As shown, in a specific embodiment of the present application, steps S21 to S27 are included, specifically:

[0048] Step S21: Turn off the power of the controller and the standard voltage source or current source, connect the standard voltage source or current source to the channel to be calibrated, and after confirming that the wiring is correct, turn on the power of the controller and the standard voltage source;

[0049] Step S22: After the controller is powered on, wait for the controller and the host computer to automatically establish a network connection;

[0050] Step S23: Open the upper computer auxiliary calibration software interface, select the channel to be calibrated, and enter the calibration sub-page;

[0051] Step S24: Fill in the channel's allowed input voltage or current range and the number of test data groups n, click "Generate", and automatically generate a calibration data record table. The record table has 2 columns and n rows. If it is a voltage type channel, the first column is the input voltage value USi (i=1.2.3...n), if it is a current type channel, the first column is the input current value ISi (i=1.2.3...n), and the second column is the controller acquisition value DINi (i=1.2.3...n). USi or ISi is automatically generated when generating the record table, and DINi is obtained during the calibration process;

[0052] Step S25: adjust the output voltage of the standard voltage source to USi (i=1.2.3…n) or the output current of the current source to ISi (i=1.2.3…n) and output it. After observing that the corresponding DINi value is stable in the record table, record it and turn off the output;

[0053] Step S26: repeat step S25 until n sets of data records are completed;

[0054] Step S27: Automatically generate and display the linear fitting result between the input voltage or input current and the collected value according to the data in the record table. If the parameter value and the nonlinear error value meet the design requirements, the calibration of the channel is completed.

[0055] Reference Figure 4 As shown, Figure 4 FIG. 1 is a specific output channel calibration flow chart shown in an exemplary embodiment of the present application. Figure 4 As shown, in a specific embodiment of the present application, steps S21 to S27 are included, specifically:

[0056] Step S31: The multimeter is adjusted to the DC voltage test position, and the controller power is turned off. For voltage output signals, the output voltage is directly tested with the multimeter; for current output signals, a load resistor is required to be connected in series, and the current is indirectly tested by measuring the voltage at the resistor end. After confirming that the wiring is correct, the controller power is turned on;

[0057] Step S32: After the controller is powered on, wait for the controller and the host computer to automatically establish a network connection;

[0058] Step S33: Open the upper computer auxiliary calibration software interface, select the channel to be calibrated, and enter the calibration sub-page;

[0059] Step S34: Fill in the controller digital output range and the number of test data groups n. For current output, you also need to fill in the load resistance value. Click "Generate" to automatically generate a calibration data record table. The record table has 2 columns and n rows. The first column is the controller digital output DOUTi (i=1.2.3...n), and the second column is the voltage signal value UOi. DOUTi is automatically generated when generating the record table, and UOi is obtained during the calibration process.

[0060] Step S35: put into use according to the calibration data record table, generate output control instructions, wait for the multimeter reading to stabilize, and record the voltage value UOi in row i and column 2 of the table;

[0061] Step S36: repeat step S35 until n sets of data records are completed;

[0062] Step S37: Click the "Calculate" button to automatically generate and display the linear fitting results between the controller digital output and the output voltage or output current according to the data in the record table. If the parameter value and the nonlinear error value meet the design requirements, the calibration of the channel is completed. The upper computer software automatically generates the calibration table, calculates the calibration parameters, and downloads the calibration results with one click, which is convenient for testers to complete the calibration work better and faster, and helps to improve work efficiency.

[0063] The present invention provides a controller calibration method, system, electronic device and storage medium. The method determines the calibration task type in response to a controller calibration request, determines the calibration execution steps and calibration error conditions associated with the calibration task type, closes the connection between the controller to be calibrated and the target calibration tool according to the calibration task type, matches the corresponding preset calibration test data table based on the calibration task type, and executes the calibration execution steps according to the preset calibration test data table and the target calibration tool to obtain a calibration collection data table. If the calibration collection data table meets the calibration error condition, the controller to be calibrated is calibrated according to the calibration collection data table. The beneficial effects that can be achieved by the present application include automatically closing the connection between the controller and the calibration tool and starting the controller, reducing the manual setting steps, automatically matching the preset calibration test data table according to the calibration task type, avoiding the process of manually searching for a suitable data set, and then automatically checking whether the calibration collection data meets the preset error conditions. Only when the conditions are met will the calibration be performed, so that the effectiveness and accuracy of the calibration can be ensured, and the automated process reduces the need for manual intervention, making the entire calibration process more efficient.

[0064] The following describes a system embodiment of the present application, which can be used to execute the controller calibration method in the above embodiment of the present application. For details not disclosed in the system embodiment of the present application, please refer to the above embodiment of the controller calibration method of the present application.

[0065] Figure 5is a schematic diagram of a controller calibration system shown in an exemplary embodiment of the present application. The system can be applied to Figure 2 The method implementation process shown in the figure can be based on Figure 1 The system is executed in the implementation environment shown in the figure, and may also be applicable to other exemplary implementation environments and specifically configured in other devices. This embodiment does not limit the implementation environment to which the system is applicable.

[0066] like Figure 5 As shown, the exemplary controller calibration system includes: a calibration information acquisition module 501 , a calibration test preparation module 502 , a calibration step execution module 503 , and a calibration standard verification module 504 .

[0067] Among them, the calibration information acquisition module 501 is used to respond to the controller calibration request, determine the calibration task type, and determine the calibration execution steps and calibration error conditions associated with the calibration task type; the calibration test preparation module 502 is used to close the connection between the controller to be calibrated and the target calibration tool according to the calibration task type, and control the opening of the controller to be calibrated; the calibration step execution module 503 is used to match the corresponding preset calibration test data table based on the calibration task type, and execute the calibration execution steps according to the preset calibration test data table and the target calibration tool to obtain the calibration collection data table; the calibration standard verification module 504 is used to calibrate the controller to be calibrated according to the calibration collection data table if the calibration collection data table meets the calibration error condition.

[0068] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the electronic device implements the controller calibration method provided in the above-mentioned embodiments.

[0069] Figure 6 is a schematic diagram of the structure of a computer system of an electronic device according to an exemplary embodiment of the present application. It should be noted that: Figure 6 The computer system 600 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0070] like Figure 6As shown, computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to the program stored in a read-only memory (ROM) 602 or the program loaded from the storage part to a random access memory (RAM) 603, such as the method in the above embodiment. In RAM 603, various programs and data required for system operation are also stored. CPU 601, ROM 602 and RAM 603 are connected to each other via a bus. Input / output (I / O) interface 605 is also connected to bus 604.

[0071] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed so that a computer program read therefrom is installed into the storage section 608 as needed.

[0072] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 609, and / or installed from a removable medium 611. When the computer program is executed by a central processing unit (CPU) 601, various functions defined in the system of the present application are executed.

[0073] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0074] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0075] In the corresponding drawings of the above embodiments, connecting lines may indicate the connection relationship between the various components to indicate more constituent signal paths (constituent_signalpath) and / or one or more ends of some lines may have arrows to indicate the main information flow direction. Connecting lines, as a mark, are not a limitation to the scheme itself, but the use of these lines in combination with one or more exemplary embodiments helps to connect circuits or logic units more easily. Any represented signal (determined by design requirements or preferences) may actually include one or more signals that can be transmitted in either direction and implemented with any appropriate type of signal scheme.

[0076] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0077] Another aspect of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0078] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0079] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0080] It should be noted that the present application can be used in many general or special computing system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.

[0081] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0082] It should be understood that the above content of the present application is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. Ordinary technicians in this field can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application should be the scope of protection required by the claims.

Claims

1. A controller calibration method, characterized in that: The controller calibration method comprises: In response to a controller calibration request, determining a calibration task type, and determining a calibration execution step and a calibration error condition associated with the calibration task type; Closing the connection between the controller to be calibrated and the target calibration tool according to the calibration task type, and controlling the opening of the controller to be calibrated; Matching a corresponding preset calibration test data table based on the calibration task type, and executing the calibration execution step according to the preset calibration test data table and the target calibration tool to obtain a calibration collection data table; If the calibration collection data table satisfies the calibration error condition, the controller to be calibrated is calibrated according to the calibration collection data table.

2. The controller calibration method according to claim 1, characterized in that: The calibration collection data table meets the calibration error conditions including: Performing linear fitting according to the calibration collection data table and the corresponding preset calibration test data table to obtain linear fitting relationship parameters; Determining a fitting error value based on the linear fitting relationship parameter and a preset linear expectation parameter; If the fitting error value is less than or equal to a preset error threshold, it is determined that the calibration collection data table meets the calibration error condition.

3. The controller calibration method according to claim 1, characterized in that: The calibration task types include voltage-type analog input channel calibration, current-type analog input channel calibration, voltage-type analog output channel calibration, and current-type analog output channel calibration.

4. The controller calibration method according to claim 3, characterized in that: If the calibration task type is voltage type analog input channel calibration, and the target calibration tool is a standard voltage input source, matching a corresponding preset calibration test data table based on the calibration task type, and executing the calibration execution step according to the preset calibration test data table and the target calibration tool includes: Calling a preset voltage input calibration data table, wherein the preset voltage input calibration data table includes a plurality of different calibration test voltage input values; Controlling the standard voltage input source to input in sequence according to each calibration test voltage input value in the preset voltage input calibration data table, and receiving the voltage input calibration collection value of the controller to be calibrated each time to obtain multiple voltage input calibration collection values; A voltage input calibration collection data table is generated according to each of the voltage input calibration collection values ​​and a preset voltage input calibration data table.

5. The controller calibration method according to claim 3, characterized in that: If the calibration task type is current type analog input channel calibration, and the target calibration tool is a standard current input source, matching a corresponding preset calibration test data table based on the calibration task type, and executing the calibration execution step according to the preset calibration test data table and the target calibration tool includes: Calling a preset current input calibration data table, wherein the preset current input calibration data table includes a plurality of different calibration test current input values; Controlling the standard current input source to input in sequence according to each calibration test current input value in the preset current input calibration data table, and receiving the current input calibration collection value of the controller to be calibrated each time to obtain multiple current input calibration collection values; A current input calibration collection data table is generated according to each of the current input calibration collection values ​​and a preset current input calibration data table.

6. The controller calibration method according to claim 3, characterized in that: If the calibration task type is voltage type analog output channel calibration, the target calibration tool is a multimeter, and the multimeter is used to measure the output voltage of the controller to be calibrated, then matching the corresponding preset calibration test data table based on the calibration task type, and executing the calibration execution step according to the preset calibration test data table and the target calibration tool includes: Calling a preset voltage output calibration data table, wherein the preset voltage output calibration data table includes a plurality of different calibration test voltage output values; Generate output control instructions respectively according to the calibration test voltage output values ​​in the preset voltage output calibration data table, control the controller to be calibrated to output according to the output control instructions, and read the voltage output measurement value of the multimeter each time to obtain multiple voltage output calibration collection values; A voltage output calibration collection data table is generated according to each of the voltage output calibration collection values ​​and the preset voltage output calibration data table.

7. The controller calibration method according to claim 3, characterized in that: If the calibration task type is current type analog output channel calibration, the target calibration tool is a load resistor and a multimeter, the load resistor is connected in series with the controller to be calibrated, and the multimeter is used to measure the voltage of the load resistor, then matching the corresponding preset calibration test data table based on the calibration task type, and executing the calibration execution step according to the preset calibration test data table and the target calibration tool includes: Obtaining the resistance value of the load resistor, calling a preset current output calibration data table, wherein the preset current output calibration data table includes a plurality of different calibration test current output values; Generate output control instructions respectively according to the calibration test current output values ​​in the preset current output calibration data table, and control the controller to be calibrated to output according to the output control instructions, and obtain the collected values ​​of multiple load resistance voltages based on the multimeter reading the voltage of the load resistance each time; Determining a plurality of current output calibration collection values ​​according to the collection values ​​of the load resistor voltages and the resistance value of the load resistor; A current output calibration collection data table is generated according to each of the current output calibration collection values ​​and the preset current output calibration data table.

8. A controller calibration system, characterized in that: The controller calibration system comprises: A calibration information acquisition module, configured to determine a calibration task type in response to a controller calibration request, and to determine a calibration execution step and a calibration error condition associated with the calibration task type; A calibration test preparation module, used to close the connection between the controller to be calibrated and the target calibration tool according to the calibration task type, and control the opening of the controller to be calibrated; A calibration step execution module, used to match a corresponding preset calibration test data table based on the calibration task type, and execute the calibration execution step according to the preset calibration test data table and the target calibration tool to obtain a calibration collection data table; The calibration standard verification module is used to calibrate the controller to be calibrated according to the calibration collection data table if the calibration collection data table meets the calibration error condition.

9. An electronic device, characterized in that: It comprises a processor, a memory and a communication bus; the communication bus is used to connect the processor and the memory; the processor is used to execute a computer program stored in the memory to implement the controller calibration method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is used to enable a computer to execute the controller calibration method as described in any one of claims 1-7.