Automatic calibration method and device for detector tester, electronic equipment and medium
By acquiring sample signals in a detector tester and automatically determining the start time T0 of the damped oscillation signal using weighted filtering and threshold comparison methods, the problem of low calibration efficiency and accuracy in existing technologies is solved, achieving efficient and accurate automatic calibration.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA NAT PETROLEUM CORP
- Filing Date
- 2024-11-07
- Publication Date
- 2026-05-08
AI Technical Summary
In the calibration process of existing detector testers, it is difficult to accurately capture the start-up time T0 of the damped oscillation curve, resulting in low calibration efficiency and low accuracy.
By acquiring the sample signals from the detector tester, the starting time T0 of the damped oscillation signal is automatically determined using weighted filtering and threshold comparison methods. The damping coefficient, natural frequency, and sensitivity are then calculated to achieve automatic calibration.
This improves the efficiency and accuracy of detector tester calibration, reduces manual operation, and ensures the accuracy of calibration results.
Smart Images

Figure CN121995528A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of calibration and metrology testing, and more specifically, to an automatic calibration method, apparatus, electronic device, and medium for a detector tester. Background Technology
[0002] A detector tester is an instrument used for on-site testing and inspection of detectors. According to relevant regulations, detectors must be calibrated and verified periodically to ensure their performance stability and accuracy meet requirements. The tester typically measures parameters including DC resistance, polarity, damping coefficient, natural frequency, sensitivity, and distortion. The parameters calibrated mainly include DC resistance, damping coefficient, natural frequency, sensitivity, and distortion. The damping coefficient, natural frequency, and sensitivity are all determined using a damped oscillation curve with specified parameters; therefore, they are collectively referred to as the three parameters. The calculation of these three parameters requires obtaining the extreme values A1 and A2 and the half-cycle duration T from the damped oscillation curve. It can be seen from the damped oscillation curve that the start-up time T0 of the damped oscillation is crucial for capturing the damped oscillation curve.
[0003] In actual testing, due to factors such as circuit noise and environmental electromagnetic interference, the damped oscillation curve output by the calibration device is affected by noise, making it difficult to accurately capture the start-up time. Current calibration devices rely on testers manually adjusting the trigger level based on experience to capture the damped oscillation waveform and then obtain the start-up time T0. Repeatedly adjusting the trigger delay and trigger level results in both low efficiency and low accuracy in obtaining the start-up time T0. Summary of the Invention
[0004] This application provides an automatic calibration method, device, electronic equipment, and medium for a detector tester, aiming to solve the problem of how to improve the efficiency and accuracy of obtaining the start-up time T0 of damped oscillations.
[0005] The first aspect of this application provides an automatic calibration method for a detector tester, the method comprising: The start time T0 of the damped oscillation signal is obtained through a detector tester, including: Obtain the sample signals x[iM], x[i-M+1], x[i-M+2], ... to x[i] corresponding to time i, iM, i-M+1, i-M+2, ... to time i; The filtered signal y[i-1] at time i is calculated as follows: When x[i] is greater than G*y[i-1], time i is the start time T0 of the damped oscillation signal, where G is the threshold coefficient multiple; Based on the start time T0 of the damped oscillation signal, the first peak voltage A1 and the second peak voltage A2 of the response signal waveform of the detector are obtained. Based on the first peak voltage A1 and the second peak voltage A2, the damping coefficient Bt of the detector is obtained; Based on the damping coefficient Bt, the natural frequency F0 of the detector is obtained; Based on the first peak voltage A1, the damping coefficient Bt, the natural frequency F0, the detector coil mass m, and the DC current I0 of the detector coil, the sensitivity S of the detector is obtained. The detector tester is automatically calibrated based on the damping coefficient Bt, the natural frequency F0, and the sensitivity S.
[0006] In one optional implementation, the weights of the sample signals from time iM to time i-1 satisfy the following condition: Samples closer to the current sample have higher weights, while samples farther away from the current sample have lower weights.
[0007] In one optional implementation, the weights of the sample signals from time iM to time i-1 are calculated using the following formula: ; Where k takes any value from i-1, i-2...iM; i is the time to acquire the sample signal x[i]; M is the width of the filter window; and σ is the standard deviation of the Gaussian function.
[0008] In an optional implementation, the method further includes: When x[i] is less than or equal to G*y[i-1], obtain x[i+1], calculate y[i], compare x[i+1] with G*y[i], until the start time T0 of the damped oscillation signal is obtained.
[0009] In an optional implementation, before calculating the filtered signal y[i-1] at time i using the formula, the method further includes: DC bias voltage filtering is performed to keep the signal near zero voltage for later weight calculation and weighted filtering.
[0010] In one optional implementation, the calculation of the filtered signal y[i-1] at time i includes: The filtered signal y[i-1] at time i is calculated using the following formula: ; Where y[i-1] is the filtered signal at time i, ω[i-1] to ω[iM] are the weights of the sample signals from time i-1 to time iM; x[i-1] to x[iM] are the sample signals from time i-1 to time iM; and M is the width of the filtering window.
[0011] A second aspect of this application provides an automatic calibration device for a detector tester, the device comprising: The data acquisition module is used to acquire the sample signals x[iM], x[i-M+1], x[i-M+2], ... to x[i] corresponding to time i, iM, i-M+1, i-M+2, ... to time i; The data buffer module is used to store the sample signals x[iM], x[i-M+1], x[i-M+2], ... to x[i] corresponding to time i, iM, i-M+1, i-M+2, ... to time i; The weight calculation module is used to calculate the weights of each sample signal from time i-1 to time iM; The sliding weighted filtering module is used to calculate the filtered signal y[i-1] at time i using the following formula: ; Where y[i-1] is the filtered signal at time i, ω[i-1] to ω[iM] are the weights of the sample signals from time i-1 to time iM; x[i-1] to x[iM] are the sample signals from time i-1 to time iM; and M is the width of the filtering window. The comparator module is used to compare x[i] with G*y[i-1], where G is the threshold coefficient multiple; The module is used to determine the start time T0 of the damped oscillation signal when x[i] is greater than G*y[i-1].
[0012] In one optional implementation, the data acquisition module is a first-in-first-out data buffer, the data acquisition module is connected to a 24-bit high-precision ADC, and the weight calculation module, the sliding weighted filtering module, and the comparator module are programmed and implemented on an FPGA chip.
[0013] A third aspect of this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps in the automatic calibration method for a detector tester as described in the first aspect.
[0014] A fourth aspect of this application provides a computer-readable storage medium having a computer program / instructions stored thereon, which, when executed by a processor, implements the steps in the automatic calibration method for a detector tester as described in any one aspect of the first application.
[0015] Beneficial effects: This application provides an automatic calibration method, apparatus, electronic device, and medium for a detector tester. The method involves acquiring the start time T0 of the damped oscillation signal obtained by the detector tester, including: acquiring sample signals x[iM], x[i-M+1], x[i-M+2], ..., x[i] corresponding to time i, iM+1, i-M+2, ..., x[i]; calculating the filtered signal y[i-1] using a formula; determining the start time T0 of the damped oscillation signal when x[i] is greater than G*y[i-1], where G is a threshold coefficient multiple; obtaining the damping coefficient, natural frequency, and sensitivity based on T0; and automatically calibrating the detector tester based on the damping coefficient, natural frequency, and sensitivity. This method automatically calibrates the detector tester, avoiding tedious operations by calibration personnel and improving calibration accuracy and efficiency. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 It is a theoretical damped oscillation curve; Figure 2 This is a graph of the actual damped oscillation. Figure 3 This is a flowchart of an automatic calibration method for a detector tester according to an embodiment of this application; Figure 4 This is a schematic diagram of an automatic calibration method for a detector tester according to an embodiment of this application; Figure 5 This is a calibration connection diagram of an automatic calibration method for a detector tester according to an embodiment of this application; Figure 6 This is a block diagram illustrating the automatic calibration principle of a detector tester according to an embodiment of this application; Figure 7 This is a damped oscillation curve of a test instrument according to an embodiment of this application; Figure 8 This is a schematic diagram of an automatic calibration device for a detector tester according to an embodiment of this application; Figure 9This is a schematic diagram of an electronic device according to an embodiment of this application. Detailed Implementation
[0018] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0019] Figure 1 The theoretical damped oscillation curve is shown, as follows: Figure 1 As shown, a design signal needs to be input when calibrating the detector, and the time of inputting the design signal is the start time T0 of the damped oscillation signal.
[0020] Figure 2 The actual damped oscillation curve is shown, as follows: Figure 2 As shown, the start time T0 of the damped oscillation signal lags behind the input design signal time.
[0021] Manually determining the start time T0 of the damped oscillation signal is inefficient and inaccurate. In actual testing, the calibration device is subject to various interferences such as unavoidable circuit noise and electromagnetic interference in the testing environment, resulting in poor test compatibility and susceptibility to the circuit of the device under test. Consequently, the output design signal and the actual output signal differ significantly during the calibration process, requiring operators to repeatedly adjust the trigger delay and trigger level.
[0022] In view of this, embodiments of this application propose an automatic calibration method for a detector tester. Figure 3 A flowchart of an automatic calibration method for a detector tester according to an embodiment of this application is shown, as follows: Figure 3 As shown, the method includes the following steps: S101. Obtain the sample signals corresponding to time i, i-M+1, i-M+2, up to time i.
[0023] Acquire sample signals x[iM], x[i-M+1], x[i-M+2], ..., x[i] corresponding to time i, iM, i-M+1, i-M+2, ..., i, where time i can be selected according to actual needs, optionally the current time i. M is the filter window width, a positive integer. The detector filter window width is a parameter related to detector performance and design, referring to the length of the window or time period used by the detector for filtering during signal processing. This width can affect the detector's frequency response, sensitivity, dynamic range, and other characteristics. The data point acquisition time is from time iM to time i, with a time interval of M for each acquired data point. This step acquires a total of M+1 sample signals.
[0024] S102. The filtered signal at time i is calculated using the formula.
[0025] The filtered signal y[i-1] at time i is calculated using the following formula: ; Where y[i-1] is the filtered signal at time i, ω[i-1] to ω[iM] are the weights of the sample signals from time i-1 to time iM; x[i-1] to x[iM] are the sample signals from time i-1 to time iM; and M is the width of the filtering window.
[0026] S103. Obtain the start time T0 of the damped oscillation signal.
[0027] Based on x[i] obtained in step S101 and y[i-1] calculated in step S102, x[i] and G*y[i-1] are compared. When x[i] is greater than G*y[i-1], time i is the starting time T0 of the damped oscillation signal, where G is the threshold coefficient multiple, which can be set according to experimental data. When x[i] is greater than G*y[i-1], the signal emitted by the detector begins to form the damped oscillation curve, and time i is the starting time T0 of the damped oscillation signal.
[0028] S104, obtain the damping coefficient Bt, natural frequency F0, and sensitivity S.
[0029] Based on the initial time T0 of the damped oscillation signal, the damped oscillation curve is obtained, as follows: Figure 1 As shown, based on the characteristics of the damped oscillation curve, the first peak voltage A1 and the second peak voltage A2 of the detector's response signal waveform are obtained, with the first peak voltage A1 being greater than the second peak voltage A2.
[0030] Based on the first peak voltage A1 and the second peak voltage A2, the damping coefficient Bt of the detector is obtained; Based on the damping coefficient Bt, the natural frequency F0 of the detector is obtained; Based on the first peak voltage A1, damping coefficient Bt, natural frequency F0, detector coil mass m, and detector coil DC current I0, the detector sensitivity S is obtained.
[0031] S105, Automatic Calibration Detector Tester.
[0032] Based on the damping coefficient Bt, natural frequency F0, and sensitivity S obtained in step S104, the detector tester automatically calibrates the damping coefficient Bt, natural frequency F0, and sensitivity S of the detector. Through the method of this application, the detector tester intelligently filters and automatically calibrates the three parameters of damping coefficient Bt, natural frequency F0, and sensitivity S during the calibration process, thereby reducing the tedious operations of calibration personnel, improving calibration accuracy, and enhancing calibration efficiency.
[0033] In one optional implementation, the weights of the sample signals from time iM to time i-1 satisfy the following condition: Samples closer to the current sample have higher weights, while samples farther away have lower weights. For example, if the current sample was acquired at time i, the sample weight at time i-1 is greater than the sample weight at time i-2, the sample weight at time i-2 is greater than the sample weight at time i-3, the sample weight at time i-3 is greater than the sample weight at time i-4, and so on, until the sample weight at time i-M+1 is greater than the sample weight at time iM.
[0034] In one optional implementation, the weights of the sample signals from time iM to time i-1 are calculated using the following formula: ; Where k takes any value from i-1, i-2...iM; i is the time to acquire the sample signal x[i]; M is the width of the filter window; and σ is the standard deviation of the Gaussian function.
[0035] The weights of each sample signal from time iM to time i-1 are calculated using the above formula and used in step S102 to calculate the filtered signal y[i-1] at time i.
[0036] In an optional implementation, the method further includes: When x[i] is less than or equal to G*y[i-1], the next sample signal x[i+1] is obtained. The filtered signal y[i] at time i is calculated by the formula in step S101. x[i+1] is compared with G*y[i]. If x[i+1] is greater than G*y[i], then time i+1 is the starting time T0 of the damped oscillation signal. If x[i+1] is less than or equal to G*y[i], the next sample signal x[i+2] is obtained. The above process is repeated until the starting time T0 of the damped oscillation signal is obtained.
[0037] In an optional implementation, before calculating the filtered signal y[i-1] at time i using the formula in step S101, the method further includes: DC bias voltage filtering is performed to keep the signal near zero voltage for later weight calculation and weighted filtering.
[0038] The damping coefficient Bt is calculated using the following formula: ; Where Bt is the damping coefficient; A1 is the first peak voltage; A2 is the second peak voltage; and π is pi.
[0039] The damping coefficient is the relative ratio of the rate attenuation of inertial body vibrations after a detector is connected in parallel with an attenuating resistor. It reflects the rate at which the vibration energy decays after the detector is subjected to vibration. The magnitude of the damping coefficient directly affects the detector's response characteristics and resolution capability to seismic waves.
[0040] like Figure 1 As shown, based on the starting time T0 of the damped oscillation signal, the damped oscillation curve is obtained. According to the damped oscillation curve, the first peak voltage A1 and the second peak voltage A2 are obtained. The damping coefficient Bt is calculated using the above formula.
[0041] The natural frequency F0 is calculated using the following formula: ; Where F0 is the natural frequency; Bt is the damping coefficient; and T is the first half-cycle of the detector response signal waveform.
[0042] The natural frequency of a detector refers to the frequency at which the detector vibrates freely without any damping. This parameter has a direct impact on the detector's performance and application scenarios.
[0043] Based on the initial time T0 of the damped oscillation signal, the damped oscillation curve is obtained. According to the damped oscillation curve, the first half-cycle T of the detector response signal waveform is obtained. Combined with the damping coefficient Bt calculated above, the natural frequency F0 is calculated.
[0044] The sensitivity S is calculated using the following formula: ; Where S is the sensitivity; A1 is the first peak voltage; Bt is the damping coefficient; F0 is the natural frequency; m is the mass of the detector coil; I0 is the DC current through the detector coil; and π is pi.
[0045] The sensitivity S is calculated based on the first peak voltage A1, damping coefficient Bt, natural frequency F0, detector coil mass m, and DC current I0 through the detector coil.
[0046] The sensitivity of a detector can be understood as its ability to respond to physical quantities such as input signal voltage, vibration, or impact; that is, the minimum signal value it can detect. For voltage-type detectors, the sensitivity represents the minimum voltage change that the detector can detect.
[0047] In one alternative implementation, Figure 4 This application provides a schematic diagram of an automatic calibration method for a detector tester according to an embodiment of the present application. Figure 4 As shown, after acquiring signal sample x[i], it is stored in a buffer. The buffer stores the window width M. Based on the standard deviation of the Gaussian function and x[i-1], the Gaussian weight coefficient (weight of the sample signal) is calculated. The filtered signal y[i-1] is calculated by sliding weighted window filtering. Based on the threshold coefficient multiple G, G*y[i-1] is calculated. The magnitudes of x[i] and G*y[i-1] are judged. If x[i] is greater than G*y[i-1], the oscillation start signal is determined. If it is less than, i=i+1 is returned to the buffer, and the above process is repeated.
[0048] In one alternative implementation, Figure 5 The figure shows a calibration connection diagram of an automatic calibration method for a detector tester according to an embodiment of this application, as follows: Figure 5 As shown, the detector tester and the calibration device are interconnected to achieve signal communication. The detector tester inputs an electrical signal to the calibration device, and the calibration device responds to the received electrical signal. The calibration device outputs an electrical signal to the detector tester, and the detector tester receives the electrical signal output by the calibration device.
[0049] In one alternative implementation, Figure 6 This application presents a block diagram illustrating the principle of automatic calibration of a detector tester according to an embodiment of the present application. Figure 6 As shown, it includes: a high-speed, high-precision data acquisition module, a first-in-first-out (FIFO) buffer, a DC offset filter module, a Gaussian weight calculation module, a Gaussian weighted sliding filter, a threshold calculator, a comparator, and auxiliary signal parameter settings and signal input / output interfaces.
[0050] A high-speed, high-precision data acquisition module is used to acquire sample signals quickly and accurately, ensuring the timeliness and efficiency of data acquisition. Optionally, a high-resolution ADC, such as a 24-bit ADC, can be used to accurately acquire weak signals with a small error range, meeting the requirements of high-precision measurement. A DC offset filtering module filters out DC bias voltage, keeping the signal near zero voltage for subsequent weight calculation and weighted filtering.
[0051] In a First-In-First-Out (FIFO) buffer, data is stored and retrieved in the order it enters the buffer. That is, the data that enters the buffer first will be retrieved first. This sequentiality makes FIFO buffers very useful in applications that require maintaining the order of the data pipeline. This application periodically takes sampled signals and stores them in the buffer.
[0052] The Gaussian weight calculation module calculates the weights of each sample signal. Each sample signal has a different weight; samples closer to the selected sample have higher weights, while samples farther from the current sample have lower weights. The Gaussian weighted sliding filter calculates the filtered signal based on the weights of each sample signal and the overall signal characteristics.
[0053] The threshold calculator is used to calculate the threshold coefficient, which improves the accuracy of determining the start time T0 of the damped oscillation signal. The threshold coefficient is usually calculated based on experimental data. The comparator is used to compare the sample signal with the filtered signal to determine the accuracy of the start time T0 of the damped oscillation signal.
[0054] When calibrating the detector tester for three parameters (damping coefficient, natural frequency, and sensitivity), the tester first outputs a voltage V1, holds it for approximately several hundred milliseconds, and then outputs the damped oscillation decay curve (at time T0) simulating the detector response. The calibration system needs to accurately capture this signal change to ensure that the tester and calibration device accurately capture the damped oscillation decay curve and acquire the accurate start time T0 and the two peak values A1 and A2.
[0055] The working steps are as follows: First, the data acquisition module starts acquiring data while the tester is maintaining output, and stores the acquired data in a FIFO buffer.
[0056] Second, since the signal has a bias voltage, it is first filtered by DC bias voltage to keep the signal near zero voltage for later sample signal weight calculation and weighted filtering.
[0057] Third, calculate the weights ω[kM] to ω[k-1] corresponding to x[kM] to x[k-1] according to the formula mentioned above, where kM to k-1 represents the sampling time, and x[kM] to x[k-1] represents the corresponding sample signal acquired at time kM to k-1, with a total of M sampling points.
[0058] Fourth, the Gaussian weighted mean filter is used to calculate and filter the data according to the formula mentioned above, resulting in the filtered data y[k-1].
[0059] Fifth, read the next sample point x[k], calculate the threshold G based on the threshold coefficient, and compare the size of x[k] and G*y[k-1] in the comparator.
[0060] Sixth, if x[k] is greater than G*y[k-1], then the kth sample point is time T0, and the capture of the damped oscillation curve and other parameters is initiated. Otherwise, repeat steps one through six.
[0061] Figure 7 The damped oscillation curve of a test instrument according to an embodiment of this application is shown, and the final result is as follows. Figure 7 As shown, the start time T0 of the actual damped oscillation signal is determined.
[0062] This application provides an automatic calibration method for a detector tester. The method involves acquiring the start time T0 of the damped oscillation signal obtained by the detector tester, including: acquiring sample signals x[iM], x[i-M+1], x[i-M+2], ..., x[i] corresponding to time i, iM+1, i-M+2, ..., x[i]; calculating the filtered signal y[i-1] using a formula; determining the start time T0 of the damped oscillation signal when x[i] is greater than G*y[i-1], where G is a threshold coefficient multiple; obtaining the damping coefficient, natural frequency, and sensitivity based on T0; and automatically calibrating the detector tester based on the damping coefficient, natural frequency, and sensitivity. This method automatically calibrates the detector tester, avoiding tedious operations by calibration personnel and improving calibration accuracy and efficiency.
[0063] Based on the same inventive concept, embodiments of this application disclose an automatic calibration device for a detector tester. Figure 8 A schematic diagram of an automatic calibration device for a detector tester is shown, such as... Figure 8 As shown, the device includes: The data acquisition module is used to acquire the sample signals x[iM], x[i-M+1], x[i-M+2], ... to x[i] corresponding to time i, iM, i-M+1, i-M+2, ... to time i; The data buffer module is used to store the sample signals x[iM], x[i-M+1], x[i-M+2], ... to x[i] corresponding to time i, iM, i-M+1, i-M+2, ... to time i; The weight calculation module is used to calculate the weights of each sample signal from time i-1 to time iM; The sliding weighted filtering module is used to calculate the filtered signal y[i-1] at time i using the following formula: ; Where y[i-1] is the filtered signal at time i, ω[i-1] to ω[iM] are the weights of the sample signals from time i-1 to time iM; x[i-1] to x[iM] are the sample signals from time i-1 to time iM; and M is the width of the filtering window. The comparator module is used to compare x[i] with G*y[i-1], where G is the threshold coefficient multiple; The module is used to determine the start time T0 of the damped oscillation signal when x[i] is greater than G*y[i-1].
[0064] In one optional implementation, the data acquisition module is a first-in-first-out (FIFO) data buffer. The data acquisition module is connected to a 24-bit high-precision ADC. The weight calculation module, the sliding weighted filtering module, and the comparator module are implemented on an FPGA chip. Optionally, the data acquisition module can be 512K, 1024K, or 2048K, depending on actual needs. The data acquisition module is connected to a 24-bit ADC, where ADC stands for analog-to-digital converter. A 24-bit resolution can distinguish over 16 million different analog levels, thus providing extremely high measurement accuracy. Many types of 24-bit ADC chips are available, commonly including AD7190, LTC2440, MAX11270, and MCP3564.
[0065] FPGA chips are characterized by programmability, flexibility, and customizability to ensure real-time performance. An FPGA chip typically consists of programmable logic units (CLBs), input / output modules (IOBs), programmable interconnect resources (PIRs), and static RAM (SRAM). High-performance FPGA chips are used to ensure the performance of the weight calculation module, sliding weighted filtering module, and comparator module in processing data.
[0066] Based on the same inventive concept, this application discloses an electronic device. Figure 9 A schematic diagram of the electronic device proposed in an embodiment of this application is shown, such as... Figure 9As shown, the electronic device 100 includes a memory 110 and a processor 120. The memory 110 and the processor 120 are connected via a bus. The memory 110 stores at least one instruction, at least one program, code set, or instruction set. The at least one instruction, the at least one program, the code set, or the instruction set can be loaded and run on the processor 120 to implement the steps in the automatic calibration method for the detector tester disclosed in the embodiments of this application.
[0067] Based on the same inventive concept, embodiments of this application disclose a computer-readable storage medium storing at least one instruction, at least one program, code set, or instruction set thereon. The at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the steps in the automatic calibration method for the detector tester disclosed in embodiments of this application.
[0068] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0069] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, apparatuses, electronic devices, and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0070] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0071] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0072] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.
[0073] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0074] The above provides a detailed description of the automatic calibration method, apparatus, electronic device, and medium for a detector tester provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. An automatic calibration method for a detector tester, characterized in that, include: The start time T0 of the damped oscillation signal is obtained through a detector tester, including: Obtain the sample signals x[iM], x[i-M+1], x[i-M+2], ... to x[i] corresponding to time i, iM, i-M+1, i-M+2, ... to time i; The filtered signal y[i-1] at time i is calculated as follows: When x[i] is greater than G*y[i-1], time i is the start time T0 of the damped oscillation signal, where G is the threshold coefficient multiple; Based on the start time T0 of the damped oscillation signal, the first peak voltage A1 and the second peak voltage A2 of the response signal waveform of the detector are obtained. Based on the first peak voltage A1 and the second peak voltage A2, the damping coefficient Bt of the detector is obtained; Based on the damping coefficient Bt, the natural frequency F0 of the detector is obtained; Based on the first peak voltage A1, the damping coefficient Bt, the natural frequency F0, the detector coil mass m, and the DC current I0 of the detector coil, the sensitivity S of the detector is obtained. The detector tester is automatically calibrated based on the damping coefficient Bt, the natural frequency F0, and the sensitivity S.
2. The automatic calibration method for a detector tester according to claim 1, characterized in that, The weights of the sample signals from time iM to time i-1 satisfy the following conditions: Samples closer to the current sample have higher weights, while samples farther away from the current sample have lower weights.
3. The automatic calibration method for a detector tester according to claim 2, characterized in that, The weights of each sample signal from time iM to time i-1 are calculated using the following formula: ; Where k takes any value from i-1, i-2...iM; i is the time to acquire the sample signal x[i]; M is the width of the filter window; and σ is the standard deviation of the Gaussian function.
4. The automatic calibration method for a detector tester according to claim 1, characterized in that, The method further includes: When x[i] is less than or equal to G*y[i-1], obtain x[i+1], calculate y[i], compare x[i+1] with G*y[i], until the start time T0 of the damped oscillation signal is obtained.
5. The automatic calibration method for a detector tester according to claim 1, characterized in that, Before calculating the filtered signal y[i-1] at time i using the formula, the following steps are also included: DC bias voltage filtering is performed to keep the signal near zero voltage for later weight calculation and weighted filtering.
6. The automatic calibration method for a detector tester according to claim 1, characterized in that, The calculation of the filtered signal y[i-1] at time i includes: The filtered signal y[i-1] at time i is calculated using the following formula: ; Where y[i-1] is the filtered signal at time i, ω[i-1] to ω[iM] are the weights of the sample signals from time i-1 to time iM; x[i-1] to x[iM] are the sample signals from time i-1 to time iM; and M is the width of the filtering window.
7. An automatic calibration device for a detector tester, characterized in that, include: The data acquisition module is used to acquire the sample signals x[iM], x[i-M+1], x[i-M+2], ... to x[i] corresponding to time i, iM, i-M+1, i-M+2, ... to time i; The data buffer module is used to store the sample signals x[iM], x[i-M+1], x[i-M+2], ... to x[i] corresponding to time i, iM, i-M+1, i-M+2, ... to time i; The weight calculation module is used to calculate the weights of each sample signal from time i-1 to time iM; The sliding weighted filtering module is used to calculate the filtered signal y[i-1] at time i using the following formula: ; Where y[i-1] is the filtered signal at time i, ω[i-1] to ω[iM] are the weights of the sample signals from time i-1 to time iM; x[i-1] to x[iM] are the sample signals from time i-1 to time iM; and M is the width of the filtering window. The comparator module is used to compare x[i] with G*y[i-1], where G is the threshold coefficient multiple; The module is used to determine the start time T0 of the damped oscillation signal when x[i] is greater than G*y[i-1].
8. The automatic calibration device for a detector tester according to claim 7, characterized in that, The data acquisition module is a first-in-first-out data buffer. The data acquisition module is connected to a 24-bit high-precision ADC. The weight calculation module, the sliding weighted filtering module, and the comparator module are programmed and implemented on an FPGA chip.
9. An electronic device, characterized in that, The method includes a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps in the automatic calibration method for a detector tester according to any one of claims 1-6.
10. A computer-readable storage medium having a computer program / instructions stored thereon, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps in the automatic calibration method for the detector tester as described in any one of claims 1-6.