Laser energy data acquisition and restoration method, device, laser equipment and storage medium
By adjusting the collection step size and serial number mapping model, the laser energy data is collected and converted, which solves the problem of insufficient laser energy data collection accuracy in the existing technology and achieves higher-precision data restoration and waveform recovery.
Patent Information
- Application Number
- CN202410634845.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-05-22
AI Technical Summary
In the existing technology, the frequency accuracy of laser energy data collection is limited, and key point data is easily lost, resulting in insufficient collection accuracy to meet the demand for higher accuracy.
By determining the target collection step size and sequence number mapping model, the laser energy data of multiple cycles are collected and sequence number converted, the collection step size is adjusted to improve the collection accuracy, and the data of multiple cycles is restored to a single cycle through the sequence number mapping model. High-precision data.
The collection accuracy of laser energy data is improved, higher data accuracy can be achieved without changing the equipment hardware, and waveform distortion is reduced.
Smart Images

Figure CN118245014B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of laser equipment, and in particular to a laser energy data acquisition and restoration method, device, laser equipment and storage medium. Background Art
[0002] In laser equipment, the energy stability of the laser is crucial, and accurate laser energy data is very important for equipment debugging and abnormal location when the product is defective. Although the relevant technology can collect laser energy data through programs, it is limited by the hardware for collection, and the program has limited frequency accuracy for collecting laser energy data, which is easy to lose key point data. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention provides a laser energy data acquisition and restoration method, device, laser equipment and storage medium, which can improve the acquisition accuracy of laser energy data.
[0004] On the one hand, an embodiment of the present invention provides a laser energy data collection and restoration method, comprising:
[0005] Determine a target acquisition step length, wherein the target acquisition step length includes a minimum acquisition step length and an expected acquisition step length, wherein the minimum acquisition step length is used to characterize a minimum acquisition time interval under the highest acquisition accuracy, and the expected acquisition step length is used to characterize an acquisition time interval under the expected acquisition accuracy;
[0006] Based on the target acquisition step length, a plurality of cycles of continuous target laser energy are acquired to obtain a first laser energy data sequence, wherein the number of cycles of the target laser energy acquisition is determined according to the maximum acquisition accuracy and the expected acquisition accuracy, and the first laser energy data sequence includes a first acquisition sequence number and corresponding laser energy data;
[0007] Based on a preset serial number mapping model, convert the first acquisition serial number into a second acquisition serial number to obtain a second laser energy data sequence, wherein the second laser energy data sequence includes the second acquisition serial number and the laser energy data;
[0008] The second laser energy data sequence is sorted based on the second acquisition sequence number to obtain a third laser energy data sequence of a single period.
[0009] According to some embodiments of the present invention, determining the target acquisition step size includes:
[0010] The target acquisition step length is determined according to the sum of the minimum acquisition step length and the expected acquisition step length.
[0011] According to some embodiments of the present invention, the number of cycles of the target laser energy acquisition is determined according to the highest acquisition accuracy and the expected acquisition accuracy, including:
[0012] Determining a difference in acquisition accuracy level according to the highest acquisition accuracy and the expected acquisition accuracy;
[0013] The number of cycles for collecting the target laser energy is determined according to the collection accuracy level difference.
[0014] According to some embodiments of the present invention, converting the first acquisition sequence number into a second acquisition sequence number based on a preset sequence number mapping model to obtain a second laser energy data sequence includes:
[0015] Determining a difference in acquisition accuracy level according to the highest acquisition accuracy and the expected acquisition accuracy;
[0016] Determining a first operation factor according to the target acquisition step length and the acquisition accuracy magnitude difference;
[0017] Determining a second operation factor according to the period of the target laser energy and the acquisition accuracy magnitude difference;
[0018] Based on the first operation factor and the second operation factor, the first acquisition sequence number is converted into a second acquisition sequence number to obtain a second laser energy data sequence.
[0019] According to some embodiments of the present invention, determining the first operation factor according to the target acquisition step size and the acquisition accuracy magnitude difference includes:
[0020] A first operation factor is determined according to the product of the target acquisition step length and the acquisition accuracy magnitude difference.
[0021] According to some embodiments of the present invention, determining the second operation factor according to the cycle length of the target laser energy and the acquisition accuracy magnitude difference includes:
[0022] The second operation factor is determined according to the product of the cycle length of the target laser energy and the acquisition accuracy level difference.
[0023] According to some embodiments of the present invention, converting the first acquisition sequence number into a second acquisition sequence number based on the first operation factor and the second operation factor to obtain a second laser energy data sequence includes:
[0024] According to the product of the first acquisition sequence number and the first operation factor, the second operation factor is modulo, and a second acquisition sequence number is determined to obtain a second laser energy data sequence.
[0025] On the other hand, an embodiment of the present invention provides a laser energy data acquisition and restoration device, comprising:
[0026] A determination module, used to determine a target acquisition step length, wherein the target acquisition step length includes a minimum acquisition step length and an expected acquisition step length, wherein the minimum acquisition step length is used to characterize a minimum acquisition time interval under the highest acquisition accuracy, and the expected acquisition step length is used to characterize an acquisition time interval under the expected acquisition accuracy;
[0027] an acquisition module, configured to acquire a plurality of cycles of continuous target laser energy based on the target acquisition step length to obtain a first laser energy data sequence, wherein the number of cycles of the target laser energy acquisition is determined according to the maximum acquisition accuracy and the expected acquisition accuracy, and the first laser energy data sequence includes a first acquisition sequence number and corresponding laser energy data;
[0028] a conversion module, configured to convert the first acquisition serial number into a second acquisition serial number based on a preset serial number mapping model, to obtain a second laser energy data sequence, wherein the second laser energy data sequence includes the second acquisition serial number and the laser energy data;
[0029] A sorting module is used to sort the second laser energy data sequence based on the second acquisition sequence number to obtain a third laser energy data sequence of a single cycle.
[0030] On the other hand, an embodiment of the present invention provides a laser device, including a processor and a memory, wherein the memory stores a computer program, and the processor is used to implement the above-mentioned laser energy data acquisition and restoration method when running the computer program.
[0031] On the other hand, an embodiment of the present invention provides a storage medium, wherein a computer program is stored in the storage medium, and when the computer program is executed, the above-mentioned laser energy data acquisition and restoration method is implemented.
[0032] The embodiments of the present invention have at least the following beneficial effects:
[0033] By adjusting the target acquisition step size, acquiring multiple cycles of target laser energy based on the target acquisition step size, and performing serial number conversion on the acquired data based on a serial number mapping model, multiple cycle laser energy data with lower acquisition accuracy can be restored to single cycle laser energy data with higher acquisition accuracy, which is beneficial to improving the acquisition accuracy of laser energy data.
[0034] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0036] Figure 1 A flowchart of the steps of the laser energy data collection and restoration method according to an embodiment of the present invention;
[0037] Figure 2 This is one of the waveform diagrams of the laser energy according to an embodiment of the present invention;
[0038] Figure 3 The second waveform diagram of the laser energy according to the embodiment of the present invention;
[0039] Figure 4 The third waveform diagram of the laser energy of the embodiment of the present invention;
[0040] Figure 5 A schematic diagram of some data with different acquisition step lengths according to an embodiment of the present invention;
[0041] Figure 6 Schematic diagram of waveforms of multiple cycles of laser energy according to an embodiment of the present invention;
[0042] Figure 7 A schematic diagram of a waveform obtained by reducing laser energy according to an embodiment of the present invention;
[0043] Figure 8 A schematic diagram of part of the data of the first laser energy data sequence according to an embodiment of the present invention;
[0044] Fig. 9 It is a partial data schematic diagram of the first acquisition sequence number and the second laser energy data sequence according to an embodiment of the present invention;
[0045] Fig.10 It is a partial data schematic diagram of the first acquisition sequence number and the third laser energy data sequence according to an embodiment of the present invention;
[0046] Fig.11 It is a principle block diagram of the laser energy data acquisition and restoration device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0047] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0048] In the description of the present invention, "several" means one or more, "multiple" means more than two, greater than, less than, and exceeding are understood as not including the number itself, and "above", "below", and "within" are understood as including the number itself. If there is a description of "first", "second", etc., it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0049] In the description of the present invention, unless otherwise clearly defined, words such as “setting”, “installation” and “connection” should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above words in the present invention in combination with the specific content of the technical solution.
[0050] In order to monitor the laser energy, the relevant technology usually uses an oscilloscope to monitor the waveform of the laser energy, but the laser equipment will not be connected to the oscilloscope all the time during the actual operation, and it is impossible to arrange special personnel to observe the oscilloscope all the time. Therefore, it is necessary to collect data on the laser energy through a program to facilitate the subsequent analysis of the laser energy. However, due to the limitations of the acquisition hardware, the accuracy of the program's acquisition frequency of laser energy data is limited. For example, the highest acquisition accuracy is 1μs (microseconds), that is, the minimum acquisition time interval is 1μs. It should be known that the smaller the acquisition time interval, the higher the acquisition frequency and the higher the acquisition accuracy. Since the acquisition frequency of laser energy data is not high enough, for laser energy with a fixed period, the data points that can be collected in one period are fixed. For example, for laser energy with a period length of 25μs, if the acquisition time interval is 1μs, only 25 data points can be collected for one period of laser energy. Since the acquisition accuracy is not high enough, the waveform of the laser energy restored by using 25 data points is quite different from the actual laser energy waveform, and the sampling signal and laser energy both show periodic changes. Even if the laser energy of multiple consecutive cycles is collected, the relative time of the data points collected in each cycle is consistent within the cycle. For example, starting from the starting point of the laser energy cycle, a data point is collected every 1μs, and the collection time of the first data point is recorded as 1μs, then the collection time of the second data point is 2μs, and the collection time of the third data point is 3μs, and so on until the end of the laser energy cycle. This results in the data collected in each cycle losing key data points, and the restored waveform will also be distorted. Therefore, this embodiment provides a laser energy data acquisition and restoration method, device, laser equipment and storage medium, which can improve the acquisition accuracy of laser energy data.
[0051] Please refer to Figure 1This embodiment discloses a laser energy data collection and restoration method, including steps S100 to S400. It should be noted that the steps in this embodiment are numbered only for the convenience of review and understanding, rather than limiting the execution order of the steps. In practical applications, adaptive adjustments can be made based on the logical relationship between the steps. The contents of each step are described in detail below:
[0052] S100, determining a target acquisition step length, where the target acquisition step length includes a minimum acquisition step length and an expected acquisition step length, where the minimum acquisition step length is used to characterize a minimum acquisition time interval at the highest acquisition accuracy, and the expected acquisition step length is used to characterize an acquisition time interval at the expected acquisition accuracy;
[0053] For example, the highest acquisition accuracy varies according to different application requirements. For example, the highest acquisition accuracy can be 10μs, 5μs, 1μs or 0.1μs, etc., that is, the device can only collect data once every 10μs, 5μs, 1μs or 0.1μs at the fastest. Under the highest acquisition accuracy, the user can set the acquisition time interval according to the actual application requirements. For example, for a device with a maximum acquisition accuracy of 1μs, the user can set the acquisition time interval to 1μs, 1.5μs, 2μs, 2.55μs, etc. As long as the acquisition time interval is not less than the minimum acquisition time interval under the highest acquisition accuracy, the device can collect data on the laser energy at the acquisition frequency corresponding to the acquisition time interval. In order to restore the actual laser waveform as much as possible, the relevant technology usually uses the minimum acquisition time interval (for example, 1μs) under the highest acquisition accuracy for data acquisition, but it still cannot meet the requirements, for example, it cannot meet the acquisition requirements of higher accuracy levels such as 0.1μs, 0.01μs or 0.001μs. In this embodiment, the acquisition time interval (i.e., the target acquisition step length) is adjusted without changing the highest acquisition accuracy of the device, so that the data points collected in each period of multiple consecutive periods are staggered at relative moments within the period, so as to achieve higher data accuracy.
[0054] For example, the minimum acquisition time interval (i.e., the minimum acquisition step length) at the highest acquisition accuracy is 1 μs, and the expected acquisition accuracy is 0.01 μs, then the expected acquisition step length can be 0.01 μs, and the target acquisition step length is 1.01 μs; similarly, if the expected acquisition accuracy is 0.1 μs or 0.001 μs, the target acquisition step length can be determined as 1.1 μs or 1.001 μs. In short, the target acquisition step length can be determined according to the sum of the minimum acquisition step length and the expected acquisition step length, that is, step S100, determining the target acquisition step length, including: S110, determining the target acquisition step length according to the sum of the minimum acquisition step length and the expected acquisition step length. It should be noted that the expected acquisition step length can be set according to multiple factors such as application requirements, device computing power, and program computing power, so as to determine the appropriate target acquisition step length, that is, the sampling period of the laser energy. Among them, in order to achieve the ideal acquisition effect, the expected acquisition step length should be the minimum acquisition time interval under the expected acquisition accuracy and the last digit value should be an odd number.
[0055] S200, based on the target acquisition step length, a plurality of cycles of continuous target laser energy are acquired to obtain a first laser energy data sequence, wherein the number of cycles of target laser energy acquisition is determined according to a maximum acquisition accuracy and an expected acquisition accuracy, and the first laser energy data sequence includes a first acquisition sequence number and corresponding laser energy data;
[0056] For example, in actual use, laser energy is a periodic continuous waveform. For the convenience of analysis, part of the laser energy (i.e., target laser energy) can be sampled and analyzed. In actual application, real-time data collection of the target laser energy can be performed, and then part or all of it can be restored. It should be known that the laser energy waveform has two dimensions of data. The first dimension is the time dimension, i.e., the horizontal axis of the waveform, and the second dimension is the laser energy data, i.e., the vertical axis of the waveform. The two dimensions of data form data points in pairs.
[0057] Please refer to Figure 2 , Figure 3 and Figure 4, for the sake of ease of understanding, for the same laser energy, sampling begins at the same starting time, t0 is used to represent the sampling time change sequence of the related technology, and t is used to represent the sampling time change sequence of this embodiment. In the related technology, the acquisition step of laser energy data is 1μs. Since the laser energy changes periodically, for laser energy with a cycle length of 25μs, 25 data points can be collected in one cycle. Since the cycle length is an integer multiple of the acquisition step, in the time dimension, the relative distance between the relative sampling moment of each cycle and the cycle starting point of the laser energy corresponding cycle is the same, then the laser energy data (denoted as power) corresponding to the data points collected in each cycle is the same. The target acquisition step of this embodiment is determined according to the sum of the minimum acquisition step and the expected acquisition step, that is, 1μs+0.01μs=1.01μs, please refer to Figure 4 and Figure 5 , it can be seen from the time difference Δt between t0 and t that Δt gradually accumulates with the change of time. Within a certain number of cycles, the relative sampling time of each cycle is staggered. The related technology can only collect laser energy data with an order of 1μs (for example, t0=1μs, 2μs, 3μs...), and this embodiment can collect laser energy data with an order of 0.01μs (for example, t=1.01μs, 2.02μs, 3.03μs...). Among them, the order of magnitude usually refers to the scale of the number or the level of size, and a fixed ratio is maintained between each level, and these ratios are usually powers of 10. For example, 10, 100, 1000, etc. are all powers of 10, and they represent different orders of magnitude. The concept of order of magnitude is used to describe the size relationship between two numbers. For example, if one number is 10 times another number, then it can be considered that the two numbers differ by one order of magnitude.
[0058] Thus, compared with the related art, although this embodiment realizes the staggered acquisition of laser energy data in the time dimension by adjusting the target acquisition step size, the acquisition accuracy has not changed (still 1μs), and the number of data points collected in each cycle has not increased, that is, the acquisition accuracy of a single cycle has not been improved. Figure 6, because laser energy has the characteristic of periodic change, that is, in different cycles, at the same distance from the starting point of the cycle, the laser energy data (power) is the same, that is, if the waveforms of laser energy of different cycles are translated to the same cycle starting point in the time dimension, the waveforms of laser energy of all cycles will overlap and present a waveform of one cycle. As mentioned above, laser energy data is acquired in a staggered manner in the time dimension, and the sampling time is in the order of 0.01μs. Then, within a certain number of cycles, if the laser energy data of different cycles are translated in the time dimension, the laser energy data of a single cycle can be obtained, and the time difference between two adjacent data points is 0.01μs, that is, the acquisition time interval is 0.01μs, that is, the data accuracy of laser energy data can be improved to 0.01μs.
[0059] Please refer to Figure 6 and Figure 7 In order to achieve the superposition of laser energy data of multiple cycles, the laser energy waveform of a single cycle obtained after superposition can be abstracted into multiple data points. The horizontal coordinate of each data point can be represented by the serial number index, and the vertical coordinate can be represented by power. Similarly, before the data is superimposed, the laser energy data of multiple cycles are arranged in sequence in the time dimension, and the horizontal coordinate of each data point can be represented by the serial number index0. Since the laser energy data will not change before and after superposition, the vertical coordinate is also represented by power. Therefore, the first laser energy data sequence can be represented by an array: [index0, power].
[0060] When collecting laser energy data, for laser energy with a cycle length of 25μs, if the highest collection accuracy is 1μs, then at most 25 data points can be collected per cycle. If the collection accuracy is to reach 0.01μs, then the number of data points for laser energy in one cycle is 2500, that is, the laser energy waveform of a single cycle obtained after superposition needs to be abstracted into 2500 data points, that is, data collection is required for 100 cycles of continuous laser energy. It can be seen that the number of cycles for target laser energy collection can be determined based on the highest collection accuracy and the expected collection accuracy.
[0061] Specifically, the number of cycles for target laser energy collection is determined based on the highest collection accuracy and the expected collection accuracy, including:
[0062] S210, determining a difference in the magnitude of acquisition accuracy according to the highest acquisition accuracy and the expected acquisition accuracy;
[0063] S220, determining the number of cycles for collecting target laser energy according to the difference in the level of collection accuracy.
[0064] In the above example, the maximum acquisition accuracy is 1 μs, that is, 10 0 μs, and the expected acquisition accuracy is 0.01 μs, that is, 10 -2 μs, the difference in acquisition accuracy between the two is 10 2 Therefore, the number of cycles for target laser energy acquisition can be determined as 100. For another example, if the maximum acquisition accuracy is 1 μs, and the expected acquisition accuracy is 0.001 μs, that is, 10 -3 μs, then the number of cycles for target laser energy collection can be determined as 10 3 , that is, 1000. For example, if the maximum acquisition accuracy is 0.1μs, that is, 10 -1 μs, and the expected acquisition accuracy is 0.001 μs, that is, 10 -3 μs, then the number of cycles for target laser energy collection can be determined as 10 2 , that is, 100. It should be conceived that in the actual acquisition process, the number of data acquisition cycles of the target laser energy can be greater, but the laser energy data of an appropriate number of cycles are taken for analysis.
[0065] S300, based on a preset serial number mapping model, convert the first acquisition serial number into a second acquisition serial number to obtain a second laser energy data sequence, where the second laser energy data sequence includes the second acquisition serial number and laser energy data;
[0066] For example, the target acquisition step is 1.01 μs and the number of acquisition cycles is 100. Figure 8 Part of the data of the first laser energy data sequence is shown in the figure, where the data shown in the power column is only an example and has no substantive meaning. Since the first laser energy data sequence is collected in chronological order, the serial number index0 (i.e., the first collection serial number) is arranged in sequence, that is, when index0 is 1, 2, 3..., it represents the 1st, 2nd, 3... data points respectively. In order to restore the waveform of the laser energy of a single cycle, it is necessary to determine the serial number index corresponding to each laser energy data (power), that is, to convert index0 into index. This embodiment is based on the serial number mapping model, converts the first collection serial number into the second collection serial number, and obtains the second laser energy data sequence, where, Fig. 9 2 shows part of the data of the first acquisition sequence number and the second laser energy data sequence. It should be noted that the laser energy data (power) does not change during the sequence number conversion process.
[0067] S400, sorting the second laser energy data sequence based on the second acquisition sequence number to obtain a third laser energy data sequence.
[0068] For example, after the conversion of the serial number mapping model, the serial number of each laser energy data (power) in a single cycle (ie, the relative position to the starting point of the cycle) can be determined after the cycle overlap. Fig.10 , based on the second acquisition sequence number (sequence number index), the second laser energy data sequence (i.e., array [index, power]) is sorted so that the laser energy data (power) of multiple cycles are arranged in sequence according to the sequence number in a single cycle, thereby displaying the waveform of a single cycle of laser energy (such as Figure 7 Before and after the periodic overlap, the number of data points remains unchanged, but the time interval between adjacent data points is reduced to 0.01 μs (i.e., the minimum time interval under the desired acquisition accuracy), achieving the purpose of transforming the laser energy data from low acquisition accuracy to high acquisition accuracy.
[0069] Therefore, by adjusting the target acquisition step size, acquiring multiple cycles of target laser energy based on the target acquisition step size, and performing serial number conversion on the acquired data based on the serial number mapping model, multiple cycle laser energy data with lower acquisition accuracy can be restored to single cycle laser energy data with higher acquisition accuracy, which is beneficial to improving the acquisition accuracy of laser energy data.
[0070] Step S300: based on a preset serial number mapping model, convert the first acquisition serial number into a second acquisition serial number to obtain a second laser energy data sequence, including:
[0071] S310, determining a magnitude difference of acquisition accuracy according to the highest acquisition accuracy and the expected acquisition accuracy;
[0072] For example, the highest acquisition accuracy is 1 μs, that is, 10 0 μs, the expected acquisition accuracy is 0.01μs, that is, 10 -2 μs, the acquisition accuracy difference is 10 2 For example, the maximum acquisition accuracy is 1μs, that is, 10 0 μs, the expected acquisition accuracy is 0.001μs, that is, 10 -3 μs, the acquisition accuracy difference is 10 3 For example, the maximum acquisition accuracy is 0.1μs, that is, 10 -1 μs, the expected acquisition accuracy is 0.001μs, that is, 10 -3 μs, the acquisition accuracy difference is 10 2 .
[0073] S320, determining a first operation factor according to the target acquisition step length and the acquisition accuracy magnitude difference;
[0074] Exemplarily, step S320 includes: determining a first operation factor according to the product of the target acquisition step length and the acquisition accuracy magnitude difference.
[0075] For example, suppose the target acquisition step is 1 and the acquisition accuracy level is 10 n (n is a positive integer), then the first operation factor K1=I×10 n .
[0076] S330, determining a second operation factor according to the cycle length of the target laser energy and the magnitude difference of the acquisition accuracy;
[0077] Exemplarily, step S330 includes: determining a second operation factor according to the product of the cycle length of the target laser energy and the acquisition accuracy level difference.
[0078] For example, suppose the cycle length of the target laser energy is T and the acquisition accuracy is 10 n (n is a positive integer), then the second operation factor K2=T×10 n .
[0079] S340: Based on the first operation factor and the second operation factor, convert the first acquisition sequence number into a second acquisition sequence number to obtain a second laser energy data sequence.
[0080] Exemplarily, step S340 includes: taking the modulus of a second operation factor according to the product of the first acquisition sequence number and the first operation factor, and determining a second acquisition sequence number to obtain a second laser energy data sequence.
[0081] For example, let the first acquisition sequence number be index0, the second acquisition sequence number be index, and the laser energy data be power. Then the first laser energy data sequence is represented by an array as: [index0, power], and the second laser energy data sequence is represented by an array as: [index, power]. The mapping relationship between the first acquisition sequence number and the second acquisition sequence number can be expressed as: index = index0×K1 % K2 = index0×(I×10 n )%(T×10 n ), where % represents the remainder operation. In the process of serial number mapping, the serial numbers of data points of multiple cycles are converted into the serial numbers of data points of one cycle, and the parameter power is not involved in the operation. Therefore, the value of the power sequence and its relative position do not change. When the second laser energy data sequence is sorted based on the serial number index, it is equivalent to arranging multiple data points dispersed in one cycle according to the serial number, thereby restoring the waveform of the laser energy of one cycle, which is conducive to improving data accuracy.
[0082] Please refer to Fig.11This embodiment also provides a laser energy data acquisition and restoration device, including a determination module 100, an acquisition module 200, a conversion module 300 and a sorting module 400.
[0083] The determination module 100 is used to determine the target acquisition step length, which includes a minimum acquisition step length and an expected acquisition step length, wherein the minimum acquisition step length is used to characterize the minimum acquisition time interval under the highest acquisition accuracy, and the expected acquisition step length is used to characterize the acquisition time interval under the expected acquisition accuracy;
[0084] The acquisition module 200 is used to acquire multiple cycles of continuous target laser energy based on the target acquisition step length to obtain a first laser energy data sequence. The number of cycles of target laser energy acquisition is determined according to the highest acquisition accuracy and the expected acquisition accuracy. The first laser energy data sequence includes a first acquisition sequence number and corresponding laser energy data.
[0085] The conversion module 300 is used to convert the first acquisition serial number into a second acquisition serial number based on a preset serial number mapping model to obtain a second laser energy data sequence, wherein the second laser energy data sequence includes the second acquisition serial number and laser energy data;
[0086] The sorting module 400 is used to sort the second laser energy data sequence based on the second acquisition sequence number to obtain a third laser energy data sequence.
[0087] By adjusting the target acquisition step length, acquiring multiple cycles of target laser energy based on the target acquisition step length, and converting the acquired data into serial numbers based on the serial number mapping model, multiple cycles of laser energy data with lower acquisition accuracy can be restored to single-cycle laser energy data with higher acquisition accuracy, which is beneficial to improving the acquisition accuracy of laser energy data. It is hoped that the inventive concept of the embodiment of the laser energy data acquisition and restoration device is the same as that of the above embodiment of the laser energy data acquisition and restoration method. In order to avoid redundancy, the contents not involved in the embodiment of the laser energy data acquisition and restoration device can refer to the above embodiment of the laser energy data acquisition and restoration method.
[0088] This embodiment also provides a laser device, including a processor and a memory, wherein a computer program is stored in the memory, and when the processor runs the computer program, it is used to implement the above-mentioned laser energy data acquisition and restoration method.
[0089] By adjusting the target acquisition step length, acquiring multiple cycles of target laser energy based on the target acquisition step length, and converting the acquired data into serial numbers based on the serial number mapping model, multiple cycles of laser energy data with lower acquisition accuracy can be restored to single-cycle laser energy data with higher acquisition accuracy, which is beneficial to improving the acquisition accuracy of laser energy data. It is hoped that, in order to avoid redundancy, the contents not involved in the laser device embodiment can refer to the laser energy data acquisition and restoration method embodiment above.
[0090] This embodiment also provides a storage medium, in which a computer program is stored. When the computer program is executed, the above-mentioned laser energy data acquisition and restoration method is implemented.
[0091] By adjusting the target acquisition step length, acquiring target laser energy of multiple cycles based on the target acquisition step length, and converting the acquired data into a serial number based on a serial number mapping model, multiple cycles of laser energy data with lower acquisition accuracy are restored to single-cycle laser energy data with higher acquisition accuracy, which is beneficial to improving the acquisition accuracy of laser energy data. It is hoped that, in order to avoid redundancy, the contents not involved in the storage medium embodiment can refer to the above laser energy data acquisition and restoration method embodiment.
[0092] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present invention.
Claims
1. A laser energy data collection and restoration method, It is characterized in that include: Determine the target acquisition step length according to the sum of the minimum acquisition step length and the expected acquisition step length, wherein the minimum acquisition step length is used to characterize the minimum acquisition time interval under the highest acquisition accuracy, and the expected acquisition step length is used to characterize the acquisition time interval under the expected acquisition accuracy; Based on the target acquisition step length, a plurality of cycles of continuous target laser energy are acquired to obtain a first laser energy data sequence, wherein the number of cycles of the target laser energy acquisition is determined according to an acquisition precision magnitude difference, wherein the acquisition precision magnitude difference is determined according to the maximum acquisition precision and the expected acquisition precision, and the first laser energy data sequence includes a first acquisition sequence number and corresponding laser energy data; Determining a first operation factor according to the target acquisition step length and the acquisition accuracy magnitude difference; Determining a second operation factor according to the cycle length of the target laser energy and the acquisition accuracy magnitude difference; Based on the first operation factor and the second operation factor, the first acquisition sequence number is converted into a second acquisition sequence number to obtain a second laser energy data sequence, wherein the second laser energy data sequence includes the second acquisition sequence number and the laser energy data; The second laser energy data sequence is sorted based on the second acquisition sequence number to obtain a third laser energy data sequence of a single period.
2. The laser energy data acquisition and restoration method according to claim 1, It is characterized in that The determining of the first operation factor according to the target acquisition step length and the acquisition accuracy magnitude difference comprises: A first operation factor is determined according to the product of the target acquisition step length and the acquisition accuracy magnitude difference.
3. The laser energy data acquisition and restoration method according to claim 1, It is characterized in that The determining of the second operation factor according to the cycle length of the target laser energy and the acquisition accuracy magnitude difference comprises: The second operation factor is determined according to the product of the cycle length of the target laser energy and the acquisition accuracy level difference.
4. The laser energy data acquisition and restoration method according to claim 1, 2 or 3, It is characterized in that The converting the first acquisition sequence number into a second acquisition sequence number based on the first operation factor and the second operation factor to obtain a second laser energy data sequence includes: According to the product of the first acquisition sequence number and the first operation factor, the second operation factor is modulo, and a second acquisition sequence number is determined to obtain a second laser energy data sequence.
5. A laser energy data collection and restoration device, It is characterized in that include: A determination module, used to determine a target acquisition step length according to the sum of a minimum acquisition step length and an expected acquisition step length, wherein the minimum acquisition step length is used to characterize a minimum acquisition time interval under the highest acquisition accuracy, and the expected acquisition step length is used to characterize an acquisition time interval under the expected acquisition accuracy; An acquisition module, configured to acquire a plurality of cycles of continuous target laser energy based on the target acquisition step length to obtain a first laser energy data sequence, wherein the number of cycles of the target laser energy acquisition is determined according to an acquisition precision magnitude difference, wherein the acquisition precision magnitude difference is determined according to the maximum acquisition precision and the expected acquisition precision, and the first laser energy data sequence includes a first acquisition sequence number and corresponding laser energy data; a conversion module, configured to determine a first operation factor according to the target acquisition step length and the acquisition precision magnitude difference, determine a second operation factor according to the target laser energy cycle length and the acquisition precision magnitude difference, and convert the first acquisition sequence number into a second acquisition sequence number based on the first operation factor and the second operation factor to obtain a second laser energy data sequence, wherein the second laser energy data sequence includes the second acquisition sequence number and the laser energy data; A sorting module is used to sort the second laser energy data sequence based on the second acquisition sequence number to obtain a third laser energy data sequence of a single cycle.
6. A laser device comprising a processor and a memory, wherein the memory stores a computer program. It is characterized in that When the processor runs the computer program, it is used to implement the laser energy data acquisition and restoration method according to any one of claims 1 to 4.
7. A storage medium having a computer program stored therein, It is characterized in that When the computer program is executed, the laser energy data acquisition and restoration method as claimed in any one of claims 1 to 4 is implemented.
