A method, device and medium for high voltage output calibration
By acquiring and adjusting the calibration quantification of the high-voltage output of the standard machine, the calibration data is formed, and the calibration offset of the to-calibration machine is obtained by using high-voltage feedback detection, the problem of cumbersome high-voltage output calibration process and inability to assist other machines in the prior art is solved, and fast and convenient high-voltage output calibration is achieved.
Patent Information
- Application Number
- CN202210539551.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-18
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2042-05-18
AI Technical Summary
The calibration process between different machines and different energy levels of the existing high-voltage output calibration technology is cumbersome and time-consuming, and it is impossible to use the calibration data of one machine to assist in calibration of other machines.
By obtaining the calibration quantization of the energy level output of the standard machine, the calibration data is formed by adjusting until the calibration quantization of each energy level is obtained. Then, the calibration offset of the machine to be calibrated is obtained by high-voltage feedback detection, and the high-voltage output of the machine to be calibrated is calibrated according to the calibration data and offset of the standard machine.
It realizes fast and convenient high-voltage output calibration of different machines and different energy levels, simplifies the calibration process, and allows the calibration data of one machine to assist in calibration of other machines.
Smart Images

Figure CN114913969B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of piezoelectric shock wave technology, and in particular to a method, device and medium for high voltage output calibration. Background Art
[0002] Piezoelectric shock wave therapy device is a common medical device. When the piezoelectric crystal array elements are stimulated by electric pulses at the same time, the piezoelectric crystal will expand under the action of the electric field. The rhythmic electric field makes the piezoelectric crystal expand and shrink continuously, and radiates through the medium to form a strong shock wave at the focus. The high-voltage power supply output of the piezoelectric shock wave will vary with the different electronic components and hardware when the loop is open. When different energy levels are set, the output voltage of the corresponding energy level is not stable and varies within a large range. In order to keep the output high voltage stable when different machines are set to the same energy level, the output voltage needs to be calibrated, and the relative stability of the high-voltage output is achieved by adjusting the digital-to-analog (DA) control amount.
[0003] In the existing high-voltage output calibration technology, the voltage calibration process for different energy levels on the same machine is relatively cumbersome and time-consuming; and different machines need to be calibrated repeatedly, and the calibration data on one machine cannot be used to assist in the calibration of other machines. Therefore, in the existing high-voltage output calibration technology, the problem of high-voltage output calibration for different energy levels of different machines is relatively complicated.
[0004] It can be seen that how to quickly and conveniently realize the high-voltage output calibration of different machines with different energy levels is a problem that needs to be solved urgently by technical personnel in this field. Summary of the invention
[0005] The purpose of the present application is to provide a method, device and medium for high-voltage output calibration, which are used to quickly and conveniently implement high-voltage output calibration for different machines with different energy levels.
[0006] In order to solve the above technical problems, the present application provides a method for high voltage output calibration, comprising:
[0007] Obtaining a first calibration quantity of the current energy level output high voltage of the standard machine;
[0008] The second calibration quantity is obtained by adjusting the first calibration quantity; and the step of returning to the step of obtaining the first calibration quantity of the standard machine outputting high voltage at the current energy level is performed until the second calibration quantity corresponding to each energy level of the standard machine is obtained;
[0009] Using the second calibration amount corresponding to each of the energy levels and the corresponding energy levels as calibration data of the standard machine;
[0010] Acquiring a calibration offset between the standard machine and the machine to be calibrated through high-voltage feedback detection;
[0011] The high voltage output of the machine to be calibrated is calibrated according to the calibration data of the standard machine and the calibration offset.
[0012] Preferably, the step of obtaining the first calibration amount of the current energy level output high voltage of the standard machine comprises:
[0013] Determining whether the DA control amount corresponding to each of the energy levels is stored in the database;
[0014] If yes, then obtaining the first calibration amount of the high voltage output of the current energy level of the standard machine according to the stored DA control amount corresponding to each energy level;
[0015] If not, the theoretical DA control amount corresponding to each of the energy levels is calculated, and the corresponding theoretical DA control amount is used as the first calibration amount of the standard machine outputting high voltage at the current energy level.
[0016] Preferably, the step of obtaining the first calibration amount of the standard machine outputting high voltage at the current energy level according to the stored DA control amount corresponding to each energy level includes:
[0017] Obtaining the current energy level, the preset high voltage value corresponding to the current energy level, and the DA control amount corresponding to the current energy level;
[0018] Using the DA control amount corresponding to the current energy level to control the output and obtain the corresponding high voltage value;
[0019] Determine whether the high voltage value is less than a preset high voltage value corresponding to the current energy level;
[0020] If not, the DA control amount corresponding to the current energy level is used as the first calibration amount for outputting high voltage at the current energy level;
[0021] If so, adjust the current energy level to the current maximum energy level; obtain the DA control amount corresponding to the current maximum energy level; use the DA control amount corresponding to the current maximum energy level to control the output and obtain the corresponding high voltage value; determine whether the high voltage value is less than the preset high voltage value; if so, use the DA control amount corresponding to the current maximum energy level as the first calibration amount of the high voltage output at the current energy level; if not, adjust the current maximum energy level to half, and return to the step of obtaining the DA control amount corresponding to the current maximum energy level.
[0022] Preferably, obtaining the second calibration amount by adjusting the first calibration amount includes:
[0023] Obtaining a difference between the first calibration amount of the high voltage output at the current energy level and a preset high voltage value corresponding to the current energy level;
[0024] Set corresponding incremental adjustment steps for different difference ranges;
[0025] Adjust the first calibration amount of the high voltage output at the current energy level according to the incremental adjustment step corresponding to the range where the difference value is located; return to the step of obtaining the difference between the first calibration amount of the high voltage output at the current energy level and the preset high voltage value corresponding to the current energy level, and stop adjusting until the difference is within the preset range;
[0026] The adjusted first calibration amount of the high voltage output at the current energy level is used as the second calibration amount of the high voltage output at the current energy level.
[0027] Preferably, after taking the second calibration amount corresponding to each energy level and the corresponding energy level as calibration data of the standard machine, the method further includes:
[0028] The calibration data is stored in FLASH.
[0029] Preferably, the high voltage feedback detection includes:
[0030] The high voltage output is converted to AD through a hardware sampling circuit and the AD value is obtained;
[0031] Obtaining each of the AD values within a preset time;
[0032] Perform FIFO processing on each of the AD values in a queue manner;
[0033] Obtaining an average value of the AD values in the queue according to the AD values;
[0034] The average value of the AD values is taken as the result of the high voltage feedback detection.
[0035] Preferably, the obtaining of the calibration offset between the standard machine and the machine to be calibrated by high-voltage feedback detection comprises:
[0036] Performing the high-voltage feedback detection on the minimum energy level, the intermediate energy level and the maximum energy level of the standard machine and the machine to be calibrated respectively and obtaining corresponding high-voltage feedback results;
[0037] Respectively obtaining a difference in high-voltage feedback results between the standard machine and the machine to be calibrated at the minimum energy level, a difference in high-voltage feedback results at the intermediate energy level, and a difference in high-voltage feedback results at the maximum energy level;
[0038] The difference between the high-voltage feedback results is used as the calibration offset between the standard machine and the machine to be calibrated.
[0039] In order to solve the above technical problems, the present application also provides a device for high voltage output calibration, comprising:
[0040] A first acquisition module, used for acquiring a first calibration quantity of a current energy level output high voltage of a standard machine;
[0041] an adjusting module, configured to obtain a second calibration quantity by adjusting the first calibration quantity; and return to the step of obtaining the first calibration quantity of the standard machine outputting high voltage at the current energy level, until the second calibration quantity corresponding to each energy level of the standard machine is obtained;
[0042] as a module, used to use the second calibration amount corresponding to each of the energy levels and the corresponding energy levels as calibration data of the standard machine;
[0043] A second acquisition module, used for acquiring a calibration offset between the standard machine and the machine to be calibrated through high-voltage feedback detection;
[0044] A calibration module is used to calibrate the high voltage output of the machine to be calibrated according to the calibration data of the standard machine and the calibration offset.
[0045] In order to solve the above technical problems, the present application also provides a device for high voltage output calibration, comprising:
[0046] Memory for storing computer programs;
[0047] A processor is used to implement the steps of the above-mentioned high-voltage output calibration method when executing the computer program.
[0048] In order to solve the above technical problem, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above high-voltage output calibration method are implemented.
[0049] The method for high-voltage output calibration provided in the present application includes: obtaining a first calibration quantity of the high-voltage output of the current energy level of the standard machine; obtaining a second calibration quantity by adjusting the first calibration quantity; and returning to the step of obtaining the first calibration quantity of the high-voltage output of the current energy level of the standard machine, until the second calibration quantity corresponding to each energy level of the standard machine is obtained; using the second calibration quantity corresponding to each energy level and the corresponding energy level as calibration data of the standard machine; obtaining the calibration offset of the standard machine and the machine to be calibrated by high-voltage feedback detection; calibrating the high-voltage output of the machine to be calibrated according to the calibration data of the standard machine and the calibration offset. In this method, since the approximate range of the calibration data of the standard machine is found by the first calibration quantity, and then the second calibration quantity, i.e., the calibration data of the standard machine, is obtained by adjusting the first calibration quantity, the high-voltage output calibration of different energy levels can be quickly realized; secondly, the calibration offset is realized by using the calibration data on one machine to assist in the calibration of other machines, and finally the high-voltage output calibration of different energy levels of different machines is quickly and conveniently realized.
[0050] In addition, the present application also provides a device for high-voltage output calibration and a computer-readable storage medium, which correspond to the above-mentioned method for high-voltage output calibration and have the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0052] Figure 1 A structural diagram of a piezoelectric shock wave device provided in an embodiment of the present application;
[0053] Figure 2 A flow chart of a method for high voltage output calibration provided in this application;
[0054] Figure 3 A flow chart of a method for obtaining a first calibration amount of high voltage output at energy level 1 provided in an embodiment of the present application;
[0055] Figure 4 A second calibration processing flow chart for obtaining a high voltage output with energy level 1 provided in an embodiment of the present application;
[0056] Figure 5 A flowchart of the FLASH data storage process provided in the embodiment of the present application;
[0057] Figure 6 A high voltage output calibration process flow chart of a machine provided in an embodiment of the present application;
[0058] Figure 7 A structural diagram of a high voltage output calibration device provided in one embodiment of the present application;
[0059] Figure 8 A structural diagram of a high voltage output calibration device provided in another embodiment of the present application;
[0060] Fig. 9 A flowchart of different machine calibration processes in applications provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0062] The core of this application is to provide a method, device and medium for high-voltage output calibration, which are used to quickly and conveniently realize high-voltage output calibration of different machines with different energy levels.
[0063] Piezoelectric shock wave devices are often used as therapeutic devices. Figure 1 This is a structural diagram of a piezoelectric shock wave device provided in an embodiment of the present application. Figure 1 As shown, the device includes: a main control board 1, a high-voltage power supply 2, a high-voltage feedback circuit 3, a high-voltage switch 4, a transducer 5, and a display screen 6. The device uses STM32F407VET6 as the control core. The high-voltage power supply 2 realizes 2000V to 6000V voltage output and charges the energy storage capacitor; the high-voltage switch 4 realizes the release of the energy of the high-energy capacitor to the transducer 5, and finally realizes the conversion of electrical energy to mechanical energy and mechanical energy to sound energy.
[0064] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Figure 2 A flow chart of a method for high voltage output calibration provided in this application, such as Figure 2 As shown, the method includes:
[0065] S10: Obtaining a first calibration quantity of the current energy level output high voltage of the standard machine.
[0066] In the process of calibrating the high voltage output of the piezoelectric shock wave device at different energy levels, one or more piezoelectric shock wave devices are selected as standard machines. There is no limitation on the selection of the standard machine. Preferably, a piezoelectric shock wave device with stable performance is selected as the standard machine. Generally, the piezoelectric shock wave device includes 1 to 23 energy levels, and the corresponding preset high voltage value is 2000V to 5000V, such as the preset high voltage value corresponding to energy level 1 is 2000V, and the preset high voltage value corresponding to energy level 23 is 5000V; for each energy level, the preset high voltage value is set according to the actual situation; the DA control amount corresponding to each energy level is 0V to 4095V. When obtaining the first calibration amount of the current energy level output high voltage of the standard machine, read the stored energy level and the corresponding control amount. If no calibration data is stored, the theoretical DA control amount corresponding to different energy levels is calculated according to the formula 4095 / 23*Value, and the theoretical DA control amount is used as the first calibration amount; when the calibration data is stored, the stored calibration data is obtained and the control output is controlled, and the first calibration data corresponding to each energy level is obtained respectively.
[0067] S11: obtaining a second calibration quantity by adjusting the first calibration quantity; and returning to the step of obtaining the first calibration quantity of the standard machine outputting high voltage at the current energy level, until obtaining the second calibration quantity corresponding to each energy level of the standard machine.
[0068] In order to make the calibration data of the standard machine more accurate, it is necessary to fine-tune the first calibration quantity obtained in the above steps to obtain the second calibration quantity of the standard machine. In implementation, in order to obtain the second calibration quantity of the standard machine more quickly, a step-by-step increment can be used when adjusting the first calibration quantity to complete the acquisition of the second calibration quantity of each energy level of the standard machine.
[0069] S12: The second calibration amount corresponding to each energy level and the corresponding energy level are used as calibration data of the standard machine.
[0070] In the above steps, the second calibration quantities corresponding to the energy levels of the standard machine are obtained, and the second calibration quantities and the energy levels corresponding to the second calibration quantities are used as calibration data of the standard machine. After the calibration data is obtained, the calibration data can be stored. There is no limitation on the location and method of storing the calibration data. In this embodiment, the calibration data is stored in the FLASH in the form of a two-dimensional array.
[0071] S13: Obtain the calibration offset between the standard machine and the machine to be calibrated through high-voltage feedback detection.
[0072] In order to realize the calibration of the machine to be calibrated using the calibration data of the same standard machine, the calibration offset is used in this embodiment to represent the difference between the standard machine and the machine to be calibrated. When the calibration offset is obtained through high-voltage feedback detection, analog-to-digital (Analogue-to-Digitalc, AD) conversion is performed through the hardware sampling circuit to obtain the high-voltage detection AD value of each energy level of the standard machine and the machine to be calibrated; the difference between the AD values corresponding to the same energy level of the standard machine and the machine to be calibrated is the calibration offset of the standard machine and the machine to be calibrated at the energy level. In implementation, in order to quickly obtain the calibration offset, only the calibration offset of the standard machine and the machine to be calibrated at the minimum energy level, the calibration offset at the intermediate energy level, and the calibration offset at the maximum energy level can be obtained, that is, the calibration offset is calculated in segments. When it is necessary to obtain the calibration offset at the remaining energy levels, the calibration offset at the minimum energy level, the calibration offset at the intermediate energy level, or the calibration offset at the maximum energy level can be selected according to the range of the energy level as the calibration offset at the energy level.
[0073] S14: Calibrate the high voltage output of the machine to be calibrated according to the calibration data of the standard machine and the calibration offset.
[0074] The calibration data of the acquired standard machine is added with the calibration offset to realize the high voltage output calibration of the machine to be calibrated.
[0075] The method for high-voltage output calibration provided in this embodiment includes: obtaining a first calibration quantity of the high-voltage output of the current energy level of the standard machine; obtaining a second calibration quantity by adjusting the first calibration quantity; and returning to the step of obtaining the first calibration quantity of the high-voltage output of the current energy level of the standard machine, until the second calibration quantity corresponding to each energy level of the standard machine is obtained; using the second calibration quantity corresponding to each energy level and the corresponding energy level as calibration data of the standard machine; obtaining the calibration offset between the standard machine and the machine to be calibrated by high-voltage feedback detection; calibrating the high-voltage output of the machine to be calibrated according to the calibration data of the standard machine and the calibration offset. In this method, since the approximate range of the calibration data of the standard machine is found by the first calibration quantity, and then the second calibration quantity, i.e., the calibration data of the standard machine, is obtained by adjusting the first calibration quantity, the high-voltage output calibration of different energy levels can be quickly realized; secondly, the calibration offset is used to realize the auxiliary calibration of other machines using the calibration data on one machine, and finally the high-voltage output calibration of different energy levels of different machines is quickly and conveniently realized.
[0076] The database may store DA control quantities corresponding to all energy levels, or may store only DA control quantities corresponding to some energy levels. In the process of obtaining the first calibration quantity of the high voltage output at the current energy level, if the DA control quantity corresponding to the current energy level is stored in the database, but the output is controlled by using the theoretical DA control quantity corresponding to the current energy level, the first calibration quantity of the output voltage at the current energy level obtained will be inaccurate. Therefore, in implementation, as a preferred implementation method, obtaining the first calibration quantity of the high voltage output at the current energy level of the standard machine includes:
[0077] Determine whether the DA control amount corresponding to each energy level is stored in the database;
[0078] If yes, then the first calibration quantity of the high voltage output of the current energy level of the standard machine is obtained according to the DA control quantity corresponding to each stored energy level;
[0079] If not, the theoretical DA control amount corresponding to each energy level is calculated, and the corresponding theoretical DA control amount is used as the first calibration amount for the standard machine to output high voltage at the current energy level.
[0080] Read the DA control amount corresponding to the stored energy level. If there is no stored data, calculate the theoretical DA control amount corresponding to different energy levels according to 4095 / 23*Value, and use the theoretical DA control amount as the first calibration amount; if there is stored data, obtain the stored DA control amount and control the output.
[0081] This embodiment provides that according to whether the DA control amount corresponding to the current energy level is stored, the first calibration amount of the current energy level output high voltage is obtained in different ways, so that the first calibration amount of the current energy level output high voltage is more accurate.
[0082] In implementation, in order to quickly obtain the first calibration amount corresponding to each energy level of the standard machine, as a preferred implementation, obtaining the first calibration amount of the standard machine outputting high voltage at the current energy level according to the stored DA control amount corresponding to each energy level includes:
[0083] Obtain the current energy level, the preset high voltage value corresponding to the current energy level, and the DA control amount corresponding to the current energy level;
[0084] Use the DA control amount corresponding to the current energy level to control the output and obtain the corresponding high voltage value;
[0085] Determine whether the high voltage value is less than the preset high voltage value corresponding to the current energy level;
[0086] If not, the DA control amount corresponding to the current energy level is used as the first calibration amount of the current energy level output high voltage;
[0087] If so, adjust the current energy level to the current maximum energy level; obtain the DA control amount corresponding to the current maximum energy level; use the DA control amount corresponding to the current maximum energy level to control the output and obtain the corresponding high voltage value; determine whether the high voltage value is less than the preset high voltage value; if so, use the DA control amount corresponding to the current maximum energy level as the first calibration amount for the current energy level output high voltage; if not, adjust the current maximum energy level to half, and return to the step of obtaining the DA control amount corresponding to the current maximum energy level.
[0088] In the embodiment of the present application, the energy levels of the piezoelectric shock wave device are divided into 1 to 23 energy levels, so the minimum energy level is level 1 and the maximum energy level is level 23. In order to better understand the solution of this embodiment, a method for obtaining a first calibration amount of high voltage output at energy level 1 is used as an example for description. Figure 3 A flowchart of a method for obtaining a first calibration quantity of high voltage output at energy level 1 provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the method includes:
[0089] S15: Reading the DA control amount corresponding to the stored energy level;
[0090] S16: Determine whether the DA control amount corresponding to energy level 1 is stored; if so, proceed to step S17; if not, proceed to step S18;
[0091] S17: taking the theoretical calculated value as the initial value;
[0092] S18: Adjust the energy level to 1, obtain the corresponding DA control amount and control the output;
[0093] S19: Determine whether the output high voltage value is greater than the set high voltage value; if so, proceed to step S20; if not, proceed to step S21;
[0094] S20: Using the DA control amount of this energy level as the first calibration amount of outputting high voltage at energy level 1;
[0095] S21: Adjust the energy level to 23, obtain the corresponding DA control amount and control the output;
[0096] S22: Determine whether the output high voltage value is less than the set high voltage value; if so, proceed to step S23; if not, proceed to step S24;
[0097] S23: Using the DA control amount of this energy level as the first calibration amount of outputting high voltage at energy level 1;
[0098] S24: Adjust the energy level to 12, obtain the corresponding DA control amount and control the output;
[0099] S25: Determine whether the first calibration amount has not been obtained; if not, proceed to step S26; if yes, proceed to step S27;
[0100] S26: stop adjusting, and use the DA control of this energy level as the first calibration quantity of outputting high voltage of energy level 1;
[0101] S27: Energy level halved output control.
[0102] The above steps list the method for obtaining the first calibration quantity of the output high voltage of energy level 1. The process of obtaining the first calibration quantity of the output high voltage of other energy levels is the same as the method for obtaining the first calibration quantity of the output high voltage of energy level 1, and will not be repeated here. So far, the first calibration quantity of the output high voltage of each energy level has been obtained.
[0103] The energy level halving operation provided in this embodiment enables the first calibration amount of the current energy level output high voltage to be obtained quickly and conveniently.
[0104] In order to make the calibration data of the obtained standard machine more accurate, in implementation, as a preferred implementation mode, obtaining the second calibration amount by adjusting the first calibration amount includes:
[0105] Obtain the difference between the first calibration quantity of the high voltage output at the current energy level and the preset high voltage value corresponding to the current energy level;
[0106] Set corresponding incremental adjustment steps for different difference ranges;
[0107] Adjust the first calibration quantity of the high voltage output at the current energy level according to the incremental adjustment step corresponding to the range where the difference value is located; return to the step of obtaining the difference between the first calibration quantity of the high voltage output at the current energy level and the preset high voltage value corresponding to the current energy level, and stop adjusting until the difference is within the preset range;
[0108] The adjusted first calibration amount of the current energy level output high voltage is used as the second calibration amount of the current energy level output high voltage.
[0109] Fine adjustment is performed on the basis of obtaining the first calibration quantity; step-by-step increments are used to adjust the control quantity during adjustment; corresponding incremental adjustment steps are set for different difference ranges. It should be noted that there is no limitation on the incremental adjustment step corresponding to the difference range, and it is set according to actual conditions. In order to better understand the scheme of this embodiment, the method for obtaining the second calibration quantity of the output high voltage of energy level 1 is described here based on the above-mentioned method for obtaining the first calibration quantity of the output high voltage of energy level 1. Figure 4 A second calibration processing flow chart for obtaining a high voltage output with energy level 1 provided in an embodiment of the present application. Figure 4 As shown, the method includes:
[0110] S28: Determine whether the difference between the first calibration value of the output high voltage and the preset high voltage value is greater than 20%; if so, proceed to step S29; if not, proceed to step S30;
[0111] S29: Incremental adjustment step value is 10, output control;
[0112] S30: Determine whether the difference between the first calibration amount of the output high voltage and the preset high voltage value is within 5% to 10%; if so, proceed to step S31; if not, proceed to step S32;
[0113] S31: Incremental adjustment step value is 2, output control;
[0114] S32: Determine whether the difference between the first calibration amount of the output high voltage and the preset high voltage value is within 3% to 5%; if so, proceed to step S33; if not, proceed to step S34;
[0115] S33: The incremental adjustment step value is 1, output control;
[0116] S34: Determine whether the difference between the first calibration value of the output high voltage and the preset high voltage value is less than 3%; if so, proceed to step S35;
[0117] S35: Stop adjusting and use this DA control amount as the second calibration amount of energy level 1.
[0118] The above steps list the method for obtaining the second calibration quantity of the output high voltage of energy level 1. The process for obtaining the second calibration quantity of the output high voltage of the remaining energy levels is the same as the method for obtaining the second calibration quantity of the output high voltage of energy level 1, and will not be repeated here. At this point, the second calibration quantity of the output high voltage of each energy level is obtained. It should be noted that when obtaining the high-voltage output calibration data of a machine, it is possible to obtain the second calibration quantity of the output high voltage of each energy level after obtaining the first calibration quantity of the output high voltage of all energy levels; or it is possible to obtain the second calibration quantity of the output high voltage of each energy level after obtaining the first calibration quantity of the output high voltage of each energy level.
[0119] The second calibration quantity provided in this embodiment is adjusted based on the first calibration quantity, and the control quantity is adjusted by step-by-step increments, so that the second calibration quantity of the standard machine can be obtained quickly and conveniently.
[0120] After the calibration data of the standard machine is obtained, in order to facilitate viewing of the data, as a preferred implementation, after the second calibration amount corresponding to each energy level and the corresponding energy level are used as the calibration data of the standard machine, the following is further included:
[0121] Store the calibration data in FLASH.
[0122] In implementation, in order to facilitate viewing of the calibrated data, the calibrated data can be stored. There is no limitation on the way of storing the calibrated data, and it can be stored in an external memory or in a built-in memory. Since FLASH is a built-in memory, it is convenient to store data; in addition, a large amount of data can be stored using a FLASH memory, so in this embodiment, a FLASH memory is used to store the calibrated data. Figure 5 This is a FLASH data storage process flow chart provided in the embodiment of the present application. Figure 5 As shown, the flow chart includes:
[0123] S36: Determine whether the number of full-page erase times of page 1 is less than the maximum erase value of the flash memory; if so, proceed to step S37; if not, proceed to step S41;
[0124] S37: Erase page 1;
[0125] S38: writing the number of full page erase times of page 1 to the first storage unit of page 1;
[0126] S39: Determine whether the maximum value of the page 1 storage unit is reached; if so, return to step S37; if not, proceed to step S40;
[0127] S40: Write data to the next storage unit of page 1, and return to S39;
[0128] S41: Determine whether the storage page is a data storage area; if so, proceed to step S42; if not, proceed to step S43;
[0129] S42: next page erase processing;
[0130] S43: Searching for a data storage area.
[0131] Figure 6 This is a flow chart of the high voltage output calibration process of a machine provided in the embodiment of the present application. Figure 6 As shown, the flow chart includes:
[0132] S44: storing the energy level 1 and the corresponding second calibration amount in FLASH;
[0133] S45: Determine whether the energy level reaches 23; if not, proceed to step S46; if yes, proceed to step S49;
[0134] S46: Energy level increased by 1;
[0135] S47: Obtaining a first calibration amount and a second calibration amount for setting an energy level;
[0136] S48: Setting the energy level and storing the second calibration amount; returning to step S45;
[0137] S49: Complete the high voltage output calibration of a machine.
[0138] The present embodiment provides that the calibration data is stored in FLASH, which is convenient for storing the calibration data; by storing the calibration data, it is convenient for users to view it.
[0139] In order to obtain the calibration offset between the standard machine and the machine to be calibrated, the high voltage output needs to be converted from an analog signal to a digital signal, so AD conversion is required. After AD conversion, in order to achieve high-speed data collection, processing and transmission, as a preferred implementation, high voltage feedback detection includes:
[0140] The high voltage output is converted to AD through a hardware sampling circuit and the AD value is obtained;
[0141] Get each AD value within the preset time;
[0142] Each AD value is processed in a first-in-first-out (FIFO) manner using a queue;
[0143] Obtain the average value of the AD values in the queue according to each AD value;
[0144] The average value of the AD value is taken as the result of high voltage feedback detection.
[0145] The high voltage output is converted from an analog signal to a digital signal through a sampling circuit; the AD value within the preset time is processed in a queue manner for FIFO. FIFO processing can cache continuous data streams to prevent data loss during machine entry and storage operations; data is centrally stacked and stored to avoid frequent bus operations and reduce the burden on the CPU; the system is allowed to perform DMA operations to increase the data transmission speed, so high-speed acquisition, processing and transmission of AD values can be achieved through FIFO processing. After the AD value is processed by FIFO, the average value of AD is obtained, and the average value of the obtained AD value is used as the result of high-voltage feedback detection. It should be noted that in order to make the obtained AD average value more accurate, the average value of AD is obtained by removing the largest AD value and the smallest AD value. In addition, there is no limitation on the preset time here, and it is selected according to the actual situation.
[0146] The high-voltage feedback detection method provided in this embodiment converts the high-voltage output into a digital signal by adopting a circuit, thereby facilitating the acquisition of the calibration offset between the standard machine and the machine to be calibrated; by adopting FIFO processing, high-speed data collection, processing and transmission are achieved, so that the calibration of the machine to be calibrated can be completed quickly.
[0147] In order to quickly calibrate the machine to be calibrated, in practice, as a preferred implementation method, obtaining the calibration offset between the standard machine and the machine to be calibrated through high-voltage feedback detection includes:
[0148] Perform high-voltage feedback detection on the minimum energy level, the intermediate energy level and the maximum energy level of the standard machine and the machine to be calibrated respectively and obtain corresponding high-voltage feedback results;
[0149] Respectively obtaining the difference in high-voltage feedback results at the minimum energy level, the difference in high-voltage feedback results at the intermediate energy level, and the difference in high-voltage feedback results at the maximum energy level between the standard machine and the machine to be calibrated;
[0150] The difference between each high-voltage feedback result is used as the calibration offset between the standard machine and the machine to be calibrated.
[0151] In the process of calibrating the machine to be calibrated, the calibration offset of each energy level of the machine to be calibrated can be calculated separately. However, it is more complicated to calculate the calibration offset for each energy level. Therefore, in this embodiment, the calibration offsets of the minimum energy level, the middle energy level, and the maximum energy level are calculated. If the current energy level is not one of the above three energy levels, the calibration offset of an energy level closest to the current energy level can be used as the calibration offset of the current energy level to be obtained; it can also be stipulated that the calibration offset of any one of the above three energy levels is used within a certain energy level range, and the corresponding calibration offset is selected according to the range of the current energy level. In the embodiment of the present application, the energy levels are 1 to 23, so the minimum energy level is level 1, the middle energy level is level 12, and the maximum energy level is level 23. According to the high-voltage detection method in the above embodiment, a high-voltage detection AD value AdValue1 of a calibrated machine when it is set to energy level 12 is obtained; similarly, a high-voltage detection AD value AdValue2 of the machine to be calibrated when it is set to energy level 12 is obtained; the difference between AdValue2 and AdValue1 is calculated to obtain a calibration offset Offset2 between the machine to be calibrated and the standard machine, and the calibration offset Offset2 is stored; similarly, calibration offsets Offset1 and Offset3 of energy levels 1 and 23 of the machine to be calibrated and the standard machine are obtained and stored to form a calibration offset array.
[0152] Compared with calculating the calibration offset for each energy level, the segmented calculation of the calibration offset provided in this embodiment reduces the amount of calculation and is therefore convenient to obtain.
[0153] In the above embodiments, the method for high voltage output calibration is described in detail, and the present application also provides an embodiment corresponding to the device for high voltage output calibration. It should be noted that the present application describes the embodiments of the device part from two perspectives, one is based on the perspective of functional modules, and the other is based on the perspective of hardware.
[0154] Figure 7 A structural diagram of a high voltage output calibration device provided in an embodiment of the present application. This embodiment is based on the perspective of functional modules and includes:
[0155] A first acquisition module 10; used to obtain a first calibration quantity of a current energy level output high voltage of a standard machine;
[0156] The adjustment module 11 is used to obtain the second calibration quantity by adjusting the first calibration quantity; and return to the step of obtaining the first calibration quantity of the standard machine outputting high voltage at the current energy level, until the second calibration quantity corresponding to each energy level of the standard machine is obtained;
[0157] As module 12, used to use the second calibration amount corresponding to each energy level and the corresponding energy level as calibration data of the standard machine;
[0158] A second acquisition module 13 is used to acquire the calibration offset between the standard machine and the machine to be calibrated through high-voltage feedback detection;
[0159] The calibration module 14 is used to calibrate the high voltage output of the machine to be calibrated according to the calibration data of the standard machine and the calibration offset.
[0160] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0161] The device for high-voltage output calibration provided in this embodiment obtains the first calibration quantity of the current energy level output high voltage of the standard machine through the first acquisition module; adjusts the first calibration quantity through the adjustment module to obtain the second calibration quantity; and returns to the step of obtaining the first calibration quantity of the current energy level output high voltage of the standard machine until the second calibration quantity corresponding to each energy level of the standard machine is obtained; the second calibration quantity corresponding to each energy level and the corresponding energy level are used as calibration data of the standard machine through the module; the calibration offset of the standard machine and the machine to be calibrated is obtained through the high-voltage feedback detection through the second acquisition module; the high-voltage output of the machine to be calibrated is calibrated according to the calibration data of the standard machine and the calibration offset through the calibration module. In this device, since the approximate range of the calibration data of the standard machine is found through the first calibration quantity, and then the second calibration quantity, i.e., the calibration data of the standard machine, is obtained by adjusting the first calibration quantity, the high-voltage output calibration of different energy levels can be quickly realized; secondly, the calibration offset is realized by using the calibration data on one machine to assist in the calibration of other machines, and finally the high-voltage output calibration of different energy levels of different machines is quickly and conveniently realized.
[0162] Figure 8 This is a structural diagram of a high voltage output calibration device provided by another embodiment of the present application. This embodiment is based on the hardware perspective, such as Figure 8 As shown, the device for high voltage output calibration includes:
[0163] A memory 20, used for storing computer programs;
[0164] The processor 21 is used to implement the steps of the high voltage output calibration method mentioned in the above embodiment when executing the computer program.
[0165] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0166] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the method for high-voltage output calibration disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, the data involved in the method for high-voltage output calibration mentioned above, etc.
[0167] In some embodiments, the high voltage output calibration device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .
[0168] Those skilled in the art will understand that Figure 8 The structure shown in the figure does not constitute a limitation on the device for high-voltage output calibration, and may include more or less components than those shown in the figure.
[0169] The device for high-voltage output calibration provided in the embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: the method for high-voltage output calibration, the effect is the same as above.
[0170] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.
[0171] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0172] The computer-readable storage medium provided in the present application includes the above-mentioned method for high-voltage output calibration, and the effect is the same as above.
[0173] In order to better understand the method of calibrating the machine to be calibrated according to the standard machine in the embodiment of the present application, Fig. 9 This application is further described. Fig. 9 Flowchart of different machine calibration processes in applications provided by the embodiments of the present application. Fig. 9 As shown, the flow chart includes:
[0174] S50: Read the FLASH calibration data and program in the calibrated machine;
[0175] S51: writing the FLASH calibration data and program of the standard machine into the machine to be calibrated;
[0176] S52: Calculate the calibration offset;
[0177] S53: storing the calibration offset into the FLASH of the machine to be calibrated;
[0178] S54: Read the calibration data and offset stored in the FLASH of the machine to be calibrated;
[0179] S55: Use the calibration data to perform output control and complete the calibration.
[0180] The above is a detailed introduction to a method, device and medium for high-voltage output calibration provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
[0181] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A method for high voltage output calibration, characterized in that: include: Obtaining a first calibration quantity of the current energy level output high voltage of the standard machine; Obtaining a second calibration amount by adjusting the first calibration amount; and returning to the step of obtaining the first calibration quantity of the current energy level output high voltage of the standard machine, until the second calibration quantity corresponding to each energy level of the standard machine is obtained; Using the second calibration amount corresponding to each of the energy levels and the corresponding energy levels as calibration data of the standard machine; Acquiring a calibration offset between the standard machine and the machine to be calibrated through high-voltage feedback detection; Calibrate the high voltage output of the machine to be calibrated according to the calibration data of the standard machine and the calibration offset; The first calibration quantity of obtaining the current energy level output high voltage of the standard machine comprises: Determining whether the DA control amount corresponding to each of the energy levels is stored in the database; If yes, then obtaining the first calibration amount of the high voltage output of the current energy level of the standard machine according to the stored DA control amount corresponding to each energy level; If not, then calculating the theoretical DA control amount corresponding to each energy level, and using the corresponding theoretical DA control amount as the first calibration amount of the standard machine outputting high voltage at the current energy level; The obtaining the second calibration amount by adjusting the first calibration amount includes: Obtaining a difference between the first calibration amount of the high voltage output at the current energy level and a preset high voltage value corresponding to the current energy level; Set corresponding incremental adjustment steps for different difference ranges; Adjust the first calibration amount of the high voltage output at the current energy level according to the incremental adjustment step corresponding to the range where the difference value is located; return to the step of obtaining the difference between the first calibration amount of the high voltage output at the current energy level and the preset high voltage value corresponding to the current energy level, and stop adjusting until the difference is within the preset range; The adjusted first calibration amount of the high voltage output at the current energy level is used as the second calibration amount of the high voltage output at the current energy level.
2. The method for high voltage output calibration according to claim 1, characterized in that: The step of obtaining the first calibration amount of the standard machine outputting high voltage at the current energy level according to the stored DA control amount corresponding to each energy level includes: Obtaining the current energy level, the preset high voltage value corresponding to the current energy level, and the DA control amount corresponding to the current energy level; Using the DA control amount corresponding to the current energy level to control the output and obtain the corresponding high voltage value; Determine whether the high voltage value is less than a preset high voltage value corresponding to the current energy level; If not, the DA control amount corresponding to the current energy level is used as the first calibration amount for outputting high voltage at the current energy level; If so, adjust the current energy level to the current maximum energy level; obtain the DA control amount corresponding to the current maximum energy level; use the DA control amount corresponding to the current maximum energy level to control the output and obtain the corresponding high voltage value; determine whether the high voltage value is less than the preset high voltage value; if so, use the DA control amount corresponding to the current maximum energy level as the first calibration amount of the high voltage output at the current energy level; if not, adjust the current maximum energy level to half, and return to the step of obtaining the DA control amount corresponding to the current maximum energy level.
3. The method for high voltage output calibration according to any one of claims 1 to 2, characterized in that: After taking the second calibration amount corresponding to each energy level and the corresponding energy level as calibration data of the standard machine, the method further includes: The calibration data is stored in FLASH.
4. The method for high voltage output calibration according to claim 3, characterized in that: The high voltage feedback detection comprises: The high voltage output is converted to AD through a hardware sampling circuit and the AD value is obtained; Obtaining each of the AD values within a preset time; Perform FIFO processing on each of the AD values in a queue manner; Obtaining an average value of the AD values in the queue according to each of the AD values; The average value of the AD values is taken as the result of the high voltage feedback detection.
5. The method for high voltage output calibration according to claim 4, characterized in that: The step of obtaining the calibration offset between the standard machine and the machine to be calibrated by high-voltage feedback detection includes: Performing the high-voltage feedback detection on the minimum energy level, the intermediate energy level and the maximum energy level of the standard machine and the machine to be calibrated respectively and obtaining corresponding high-voltage feedback results; Respectively obtaining a difference in high-voltage feedback results between the standard machine and the machine to be calibrated at the minimum energy level, a difference in high-voltage feedback results at the intermediate energy level, and a difference in high-voltage feedback results at the maximum energy level; The difference between the high-voltage feedback results is used as the calibration offset between the standard machine and the machine to be calibrated.
6. A device for high voltage output calibration, characterized in that: include: A first acquisition module, used for acquiring a first calibration quantity of a current energy level output high voltage of a standard machine; an adjusting module, configured to obtain a second calibration quantity by adjusting the first calibration quantity; and return to the step of obtaining the first calibration quantity of the standard machine outputting high voltage at the current energy level, until the second calibration quantity corresponding to each energy level of the standard machine is obtained; as a module, used to use the second calibration amount corresponding to each of the energy levels and the corresponding energy levels as calibration data of the standard machine; A second acquisition module, used for acquiring a calibration offset between the standard machine and the machine to be calibrated through high-voltage feedback detection; A calibration module, used for calibrating the high voltage output of the machine to be calibrated according to the calibration data of the standard machine and the calibration offset; The first acquisition module is specifically used for: Determining whether the DA control amount corresponding to each of the energy levels is stored in the database; If yes, then obtaining the first calibration amount of the high voltage output of the current energy level of the standard machine according to the stored DA control amount corresponding to each energy level; If not, then calculating the theoretical DA control amount corresponding to each energy level, and using the corresponding theoretical DA control amount as the first calibration amount of the standard machine outputting high voltage at the current energy level; The adjustment module is specifically used for: Obtaining a difference between the first calibration amount of the high voltage output at the current energy level and a preset high voltage value corresponding to the current energy level; Set corresponding incremental adjustment steps for different difference ranges; Adjust the first calibration amount of the current energy level output high voltage according to the incremental adjustment step corresponding to the range of the difference; Returning to the step of obtaining the difference between the first calibration value of the high voltage output at the current energy level and the preset high voltage value corresponding to the current energy level, and stopping the adjustment until the difference is within a preset range; The adjusted first calibration amount of the high voltage output at the current energy level is used as the second calibration amount of the high voltage output at the current energy level.
7. A device for high voltage output calibration, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the method for high voltage output calibration as claimed in any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for high-voltage output calibration according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Pressure calibration method and apparatus
CN105224133A
Trigger key calibration method, apparatus and device
CN107168554A