Waveform signal processing method, acquisition card and ultrasonic detection system
By configuring the peak extraction band tree in the acquisition card and processing reflected signals to extract peaks, the real-time and accuracy problems of reflected signal processing in the prior art are solved, and faster and more accurate peak extraction is achieved.
Patent Information
- Application Number
- CN202510451007.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-11
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2045-04-11
AI Technical Summary
The existing reflected signal processing technology is difficult to meet the real-time requirements due to its high algorithm complexity and large calculation volume. Especially in equipment structure health monitoring and workpiece defect detection, how to accurately and efficiently extract peak information is a key issue.
The peak extraction band tree is configured in the acquisition card, including the parameters of the total band, the forward band and the detection band. Through these parameters, the target waveform signal is processed, the matching peak extraction range is determined and the peak detection results are extracted.
It improves the peak extraction speed and accuracy of waveform signals, reduces the impact of noise and interference, enhances real-time and flexibility, and adapts to the characteristics and peak extraction requirements of different waveform signals.
Smart Images

Figure CN119959388A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of signal processing, and in particular to a waveform signal processing method, an acquisition card and an ultrasonic detection system. Background Art
[0002] With the rapid development of modern industry, traditional ultrasonic testing methods can no longer meet the production and manufacturing needs in some scenarios. The structural health monitoring of equipment and the defect detection of workpieces have put forward higher requirements for non-destructive testing technology. Among them, how to process the reflection signal in non-destructive testing technology and accurately and efficiently extract the peak information is a key issue; the existing reflection signal processing technology is difficult to meet the real-time requirements due to the high algorithm complexity and large amount of calculation. Summary of the invention
[0003] In view of this, the purpose of the present application is to provide a waveform signal processing method, an acquisition card and an ultrasonic detection system, which can improve the peak extraction speed and peak extraction accuracy of the waveform signal.
[0004] An embodiment of the present application provides a waveform signal processing method, the method comprising: A peak extraction band tree is configured in the acquisition card; the peak extraction band tree includes a total band parameter of the total band, a forward-looking band parameter of the forward-looking band, and a detection band parameter of the detection band; a target waveform length that needs peak extraction in the target waveform signal is selected in the total band, and a forward-looking band distance of the forward-looking band and a detection band distance of the detection band are selected in the total band, and the detection band is used to determine a waveform range for peak extraction in the waveform signal band corresponding to the total band; the forward-looking band is before the detection band; The acquisition card acquires the target waveform signal in response to satisfying the trigger acquisition condition; The acquisition card processes the target waveform signal based on the total band parameter, the forward-looking band parameter and the detection band parameter in the peak extraction band tree, and determines a peak extraction range that matches the detection band distance; The acquisition card processes a target signal band within a peak extraction range of the target waveform signal to determine a peak detection result of the target waveform signal.
[0005] In some embodiments, in the waveform signal processing method, after determining the peak detection result of the target waveform signal, the method further includes: The acquisition card reports the peak detection result and the target waveform signal to the host computer so that the host computer can visually display the target waveform signal, and display the peak detection result and the total band identifier corresponding to the total band, the forward-looking band identifier corresponding to the forward-looking band, and the detection band identifier corresponding to the detection band at the position of the target waveform signal.
[0006] In some embodiments, in the waveform signal processing method, configuring a peak extraction band tree in an acquisition card includes: Analyzing the peak characteristics of the target waveform signal; the peak characteristics include peak position, peak number and amplitude; Based on the peak characteristics of the target waveform signal, the structure of the peak extraction band tree is determined, and the parameters of the total band, the forward-looking band and the detection band in the structure are determined.
[0007] In some embodiments, in the waveform signal processing method, based on the peak characteristics of the target waveform signal, determining the structure of the peak extraction band tree, and determining the parameters of the total band, the forward-looking band, and the detection band in the structure, include: Determining a target peak value to be extracted from the target waveform signal based on the peak characteristics and detection purpose of the target waveform signal; Based on the target waveform signal, the total band parameters of the total band are determined, and the forward-looking band parameters of the forward-looking band in the total band and the detection band parameters of the detection band are determined; wherein each target peak to be extracted corresponds to a detection band, and the forward-looking band corresponding to the detection band selects a length before the detection band.
[0008] In some embodiments, in the waveform signal processing method, determining the forward-looking band parameters of the forward-looking band in the total band and the detection band parameters of the detection band includes: When there are multiple target peaks to be extracted in the target waveform signal, defining multiple layers of forward-looking bands based on a nested manner; The next level of the bottom-level forward-looking band defines a detection band, and other forward-looking bands correspond to a detection band respectively.
[0009] In some embodiments, in the waveform signal processing method, the target waveform signal is a sound wave signal returned after the structure of the object under test is detected; and the peak value in the target waveform signal is generated based on the structure of the object under test.
[0010] In some embodiments, the waveform signal processing method further includes: A band tree processing state machine is configured in the acquisition card, and the band tree processing state machine controls the acquisition card to execute the peak extraction band tree; The band tree processing state machine includes an initial state, a total band state, a forward-looking band state and a detected band state.
[0011] In some embodiments, in the waveform signal processing method, the band tree processing state machine controls the acquisition card to execute the peak extraction band tree, including: When the acquisition card does not meet the trigger acquisition condition, the band tree processing state machine remains in the initial state; When the acquisition card meets the trigger acquisition condition, the band tree processing state machine jumps to the total band state; The acquisition card processes the total band state. When it is determined that there is a forward-looking band according to the total band parameters, the band tree processing state machine jumps to the forward-looking band state. When it is determined that there is a detection band, the band tree processing state machine directly jumps to the detection band state. After the band tree processing state machine jumps to the forward-looking band state, the acquisition card processes the forward-looking band parameters, and makes a judgment based on the state of the target waveform signal within the forward-looking band distance. If the next-level forward-looking band condition is met, the next-level forward-looking band processing continues. If the detection band condition is met, the band tree processing state machine jumps to the detection band state. After the band tree processing state machine jumps to the detection band state, the acquisition card processes the target waveform signal, determines the peak detection result of the target waveform signal, and reports the peak detection result; when the peak detection result is extracted, the band tree processing state machine jumps back to the initial state and waits for the next trigger.
[0012] In some embodiments, in the waveform signal processing method, after the acquisition card acquires the target waveform signal, it performs filtering processing on the waveform signal to obtain the filtered target waveform signal.
[0013] In some embodiments, in the waveform signal processing method, the acquisition card includes a trigger module, a data acquisition module and a peak extraction module, and the peak extraction module includes a band tree module and a peak detection module; The trigger module is used to generate a trigger start signal and an acquisition stop signal based on a preset trigger mode; The data acquisition module is used to acquire the target waveform signal based on the trigger start signal and the acquisition stop signal; The band tree module in the peak extraction module is used to cache the configuration information of the peak extraction band tree sent by the host computer to the acquisition card, parse the configuration information of the peak extraction band tree, and configure the total band parameters of the total band, the forward-looking band parameters of the forward-looking band, and the detection band parameters of the detection band in the acquisition card; The peak detection module in the peak extraction module processes the target waveform signal based on the total band parameters, detection band parameters and forward-looking band parameters in the band tree module to determine the peak detection result of the target waveform signal.
[0014] In some embodiments, an acquisition card is also provided, and the acquisition card executes the waveform signal processing method.
[0015] In some embodiments, an ultrasonic detection system is also provided, the ultrasonic detection system comprising an acquisition card, an ultrasonic generator, an amplifier and a probe, and a host computer; the acquisition card is connected to the ultrasonic generator, the ultrasonic generator is connected to the amplifier and the probe, and the acquisition card is in communication connection with the host computer; The acquisition card executes the waveform signal processing method.
[0016] The embodiment of the present application provides a waveform signal processing method, an acquisition card and an ultrasonic detection system. The waveform signal processing method configures a peak extraction band tree in the acquisition card; the peak extraction band tree includes a total band parameter of a total band, a forward-looking band parameter of a forward-looking band and a detection band parameter of a detection band; a target waveform length that needs peak extraction in a target waveform signal is selected in the total band, and a forward-looking band distance of the forward-looking band and a detection band distance of the detection band are selected in the total band, and the detection band is used to determine a waveform range for peak extraction in a waveform signal band corresponding to the total band; the forward-looking band is before the detection band; the acquisition card acquires the target waveform signal in response to satisfying a trigger acquisition condition; the acquisition card processes the target waveform signal based on the total band parameter, the forward-looking band parameter and the detection band parameter in the peak extraction band tree, and determines a peak extraction range that matches the detection band distance; The acquisition card processes the target signal band within the peak extraction range of the target waveform signal and determines the peak detection result of the target waveform signal. In this way, the user configures the parameters of the total band, the forward-looking band and the detection band in the peak extraction band tree based on actual needs and detection purposes, and flexibly adapts to the characteristics of different waveform signals and the requirements of peak extraction; the total band limits the target waveform length that needs peak extraction in the target waveform signal, reducing the impact of noise and interference on peak extraction; the forward-looking band is used to accurately select the peak extraction signal and prevent the detection band distance from exceeding the total band; the detection band accurately limits the range of the peak of interest in the target waveform signal, further reducing interference and reducing the amount of data processing, and improving real-time performance; therefore, the peak extraction band tree and the peak detection system are integrated into the bottom layer of the acquisition card, and the acquisition card can quickly determine the peak extraction range and extract peak data, thereby improving the response speed of peak detection and improving the real-time performance and accuracy of peak detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A flowchart of the waveform signal processing method according to an embodiment of the present application is shown; Figure 2 A schematic diagram of the structure of the ultrasonic detection system according to an embodiment of the present application is shown; Figure 3 A schematic diagram of a waveform signal processing method according to an embodiment of the present application is shown; Figure 4 A schematic diagram of the structure of the peak extraction band tree described in an embodiment of the present application is shown; Figure 5 The following is a diagram showing a logical function module of the acquisition card described in the embodiment of the present application; Figure 6 A state diagram of the band tree processing state machine described in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0019] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0020] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0021] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0022] In recent years, ultrasonic reflection technology has been widely used, especially ultrasonic non-destructive testing technology, which has become a research hotspot in the field of contemporary non-destructive testing towards quantitative non-destructive evaluation. Ultrasonic testing has developed rapidly in material performance characterization, component quality inspection, product performance evaluation, etc. As the fastest-growing and most widely used detection method in non-destructive testing technology, it is active in many fields such as aerospace, petrochemical, and machinery manufacturing with its advantages of strong penetration, high sensitivity, and strong directionality.
[0023] With the rapid development of modern industry, traditional ultrasonic testing methods can no longer meet the production and manufacturing needs in some scenarios. The structural health monitoring of equipment and the defect detection of workpieces have put forward higher requirements for non-destructive testing technology. Among them, how to process the reflection signal in non-destructive testing technology and accurately and efficiently extract the peak information is a key issue; the existing reflection signal processing technology is difficult to meet the real-time requirements due to the high algorithm complexity and large amount of calculation.
[0024] Based on this, an embodiment of the present application provides a waveform signal processing method, an acquisition card and an ultrasonic detection system, wherein the waveform signal processing method configures a peak extraction band tree in the acquisition card; the peak extraction band tree includes a total band parameter of a total band, a forward-looking band parameter of a forward-looking band and a detection band parameter of a detection band; a target waveform length requiring peak extraction in a target waveform signal is selected in the total band, and a forward-looking band distance of the forward-looking band and a detection band distance of the detection band are selected in the total band, and the detection band is used to determine a waveform range for peak extraction in a waveform signal band corresponding to the total band; the forward-looking band is before the detection band; the acquisition card acquires the target waveform signal in response to satisfying a trigger acquisition condition; the acquisition card processes the target waveform signal based on the total band parameter, the forward-looking band parameter and the detection band parameter in the peak extraction band tree, and determines a peak extraction range matching the detection band distance. ; The acquisition card processes the target signal band within the peak extraction range of the target waveform signal, and determines the peak detection result of the target waveform signal. In this way, the user configures the parameters of the total band, the forward-looking band and the detection band in the peak extraction band tree based on actual needs and detection purposes, and flexibly adapts to the characteristics of different waveform signals and the requirements of peak extraction; the total band limits the target waveform length that needs peak extraction in the target waveform signal, reducing the impact of noise and interference on peak extraction; the forward-looking band is used to accurately select the peak extraction signal and prevent the detection band distance from exceeding the total band; the detection band accurately limits the range of the peak of interest in the target waveform signal, further reducing interference and reducing the amount of data processing, and improving real-time performance; therefore, the peak extraction band tree and the peak detection system are integrated into the bottom layer of the acquisition card, and the acquisition card can quickly determine the peak extraction range and extract peak data, thereby improving the response speed of peak detection and improving the real-time performance and accuracy of peak detection.
[0025] Please refer to Figure 1 , Figure 1 FIG. 4 is a flow chart showing a waveform signal processing method according to an embodiment of the present application; Figure 1 As shown, the waveform signal processing method includes the following steps S101-S104: S101, configuring a peak extraction band tree in an acquisition card; the peak extraction band tree includes a total band parameter of a total band, a forward-looking band parameter of a forward-looking band, and a detection band parameter of a detection band; selecting a target waveform length that needs peak extraction in a target waveform signal in the total band, and selecting a forward-looking band distance of the forward-looking band and a detection band distance of the detection band in the total band, the detection band is used to determine a waveform range for peak extraction in a waveform signal band corresponding to the total band; the forward-looking band is before the detection band; S102, the acquisition card acquires the target waveform signal in response to satisfying the trigger acquisition condition; S103, the acquisition card processes the target waveform signal based on the total band parameters, the forward-looking band parameters and the detection band parameters in the peak extraction band tree, and determines a peak extraction range that matches the detection band distance; S104: The acquisition card processes a target signal band within a peak extraction range of the target waveform signal to determine a peak detection result of the target waveform signal.
[0026] In some embodiments, the target waveform signal is a sound wave signal returned after the structure of the object under test is detected; the peak value in the target waveform signal is generated based on the structure of the object under test.
[0027] In some embodiments, the waveform signal processing method is applied to an ultrasonic detection system.
[0028] Please refer to Figure 2 , Figure 2 The schematic diagram of the structure of the ultrasonic detection system is shown; Figure 2 As shown, the ultrasonic detection system includes an acquisition card 201, an ultrasonic generator 202, an amplifier and a probe 203, and a host computer 204; the acquisition card 201 is connected to the ultrasonic generator 202, the ultrasonic generator 202 is connected to the amplifier and the probe 203, and the acquisition card 201 and the host computer 204 are in communication connection.
[0029] The acquisition card includes a trigger module, a data acquisition module and a peak extraction module, and the peak extraction module includes a band tree module and a peak detection module.
[0030] The trigger module is used to generate a trigger start signal and an acquisition stop signal based on a preset trigger mode; The data acquisition module is used to acquire the target waveform signal based on the trigger start signal and the acquisition stop signal; The band tree module in the peak extraction module is used to cache the configuration information of the peak extraction band tree sent by the host computer to the acquisition card, parse the configuration information of the peak extraction band tree, and configure the total band parameters of the total band, the forward-looking band parameters of the forward-looking band, and the detection band parameters of the detection band in the acquisition card; The peak detection module in the peak extraction module processes the target waveform signal based on the total band parameters, detection band parameters and forward-looking band parameters in the band tree module to determine the peak detection result of the target waveform signal.
[0031] The modules in the acquisition card may have different models and properties in different devices, but their functions of processing waveform signals are essentially the same; please refer to Figure 2The trigger module may be a pulse trigger module; the data acquisition module may be a high-speed data acquisition module; and the peak extraction module may be a peak extraction algorithm module.
[0032] That is to say, in some embodiments, specifically, the acquisition card includes a pulse trigger module, a high-speed data acquisition module, and a peak extraction algorithm module.
[0033] In combination with the ultrasonic detection module, specifically, first, the host computer configures the acquisition card parameters to control the operation of the overall system. The pulse trigger module of the acquisition card transmits a pulse signal to the ultrasonic generator, which is then converted into an acoustic wave signal through an amplifier and a probe to detect the object under test. The reflected acoustic wave signal of the object under test is converted into a reflected data signal through the amplifier and the probe, and then converted into a digital signal by the high-speed data acquisition module of the acquisition card and enters the peak extraction algorithm module. Finally, the peak result and the reflected signal are transmitted to the host computer for display at the same time.
[0034] Please refer to Figure 3 , Figure 3 A schematic diagram of a waveform signal processing method according to an embodiment of the present application is shown.
[0035] A peak extraction band tree is configured in the acquisition card, and the peak extraction band tree includes a total band, a forward-looking band, and a detection band.
[0036] The total band defines the start time and length of the collection; even if other data bands have collected results, the total band must always be defined and is always the root of the band tree.
[0037] The forward-looking band is used to detect whether the signal exceeds a threshold value, and the rising edge or the falling edge can be programmed. At the same time, the start time, threshold value, forward-looking band distance and other parameters of the forward-looking band can also be programmed.
[0038] The detection band is used to set the start time and collection range of data collection, and complete the signal peak collection within the defined range; the threshold of the detection band and the data band distance can be set programmably, but the start time of the detection band is affected by the look-ahead band. When the signal has no threshold intersection with the look-ahead band, the start time of the detection band maintains a fixed interval with the start time of the look-ahead band, and the interval can be set programmably; when the signal has a threshold intersection with the look-ahead band, the start time of the detection band maintains a fixed interval with the intersection (programmable).
[0039] That is to say, the total band parameters of the total band include the total band distance and the total band zero point position; the forward-looking band parameters of the forward-looking band include the forward-looking band distance, the forward-looking band zero point position, and the forward-looking band threshold; the detection band parameters of the detection band include the detection band distance, the detection band zero point position, and the detection band threshold.
[0040] The acquisition card intercepts a section of length that requires peak extraction from the waveform signal, and stipulates that the starting position is 0 point. The length selected from this section for acquisition card algorithm processing is called the total band distance, and the distance from 0 point to the starting position of the total band distance is called the total band zero point position.
[0041] The length of the peak extraction selected in the total band distance is called the detection band distance, which is also the entire range of peak extraction. The peak result is finally obtained through the peak extraction algorithm of the detection band.
[0042] In order to accurately select the peak extraction signal and prevent the detection band distance from exceeding the total band, the detection band zero point position is limited by adding a forward-looking band to achieve this goal. The forward-looking band is generally selected as a length before the detection band, called the forward-looking band distance. The distance from point 0 to the starting position of the forward-looking band distance is called the forward-looking band zero point position, and the forward-looking band distance is also within the total band distance.
[0043] When the forward-looking band and the signal have no threshold intersection, the distance from the starting position of the forward-looking band to the starting position of the detection band is called the detection band zero position; when the forward-looking band and the signal have a threshold intersection, the distance from the intersection position to the starting position of the detection band is called the detection band zero position.
[0044] The forward-looking band and the detection band need to be set with corresponding thresholds to prevent the forward-looking band and the detection band from exceeding the amplitude range of the reflected signal.
[0045] In some embodiments, the total band parameters of the total band, the forward-looking band parameters of the forward-looking band, and the detection band parameters of the detection band are uniformly configured by the host computer.
[0046] As an example only, the total band distance is configured to 70000ns, the total band zero position is configured to 1000ns, the look-forward band distance is configured to 10000ns, the look-forward band zero position is configured to 3000ns, the look-forward band threshold is configured to 2000ns, the detection band distance is configured to 10000ns, the detection band zero position is configured to 9000ns, and the detection band threshold is configured to 4000ns; wherein, the look-forward band threshold and the detection band threshold are level values quantized according to the amplitude value range of the waveform signal collected by the acquisition module.
[0047] Please refer to Figure 4 , Figure 4 The structure diagram of the peak extraction band tree described in the embodiment of the present application is shown; Figure 4 As shown, there are multiple layers of nested look-ahead bands 403 in the band tree; the total band 401 is the root of the tree, and there is only one; the detection band 402 is the bottom layer of the band tree, and there is no other detection band 402 following it.
[0048] The step of configuring the peak extraction band tree in the acquisition card includes: Analyzing the peak characteristics of the target waveform signal; the peak characteristics include peak position, peak number and amplitude; Based on the peak characteristics of the target waveform signal, the structure of the peak extraction band tree is determined, and the parameters of the total band, the forward-looking band and the detection band in the structure are determined.
[0049] Based on the peak characteristics of the target waveform signal, a structure of a peak extraction band tree is determined, and parameters of a total band, a forward-looking band, and a detection band in the structure are determined, including: Determining a target peak value to be extracted from the target waveform signal based on the peak characteristics and detection purpose of the target waveform signal; Based on the target waveform signal, the total band parameters of the total band are determined, and the forward-looking band parameters of the forward-looking band in the total band and the detection band parameters of the detection band are determined, wherein each target peak to be extracted corresponds to a detection band, and the forward-looking band corresponding to the detection band selects a length before the detection band.
[0050] Please refer to Figure 4 The step of determining the forward-looking band parameter of the forward-looking band 403 and the detection band parameter of the detection band 402 in the total band 401 includes: When there are multiple target peaks to be extracted in the target waveform signal, a multi-layer forward-looking band 403 is defined based on a nested manner; The next level of the bottom-level forward-looking band 403 defines a detection band 402 , and the other forward-looking bands 403 correspond to a detection band 402 , respectively.
[0051] In addition, for different objects to be tested, the interval distance between each peak is also different, so the interval between the detection band and the forward-looking band is also required to be programmable and adjustable.
[0052] In the step S102, the acquisition card acquires the target waveform signal in response to satisfying the trigger acquisition condition.
[0053] Here, the trigger acquisition condition may be external trigger, automatic trigger, encoder trigger, etc.
[0054] After the acquisition card acquires the target waveform signal, it performs filtering processing on the waveform signal to obtain the filtered target waveform signal.
[0055] Filtering is used to remove noise and interference components in the signal. The built-in filter of the acquisition card can select the appropriate filter type and parameters according to the characteristics of the signal and acquisition requirements to pre-process the original signal.
[0056] In step 201, the acquisition card processes the target signal band within the peak extraction range of the target waveform signal to determine the peak detection result of the target waveform signal.
[0057] Please refer to Figure 3 , the peak detection result includes the amplitude and position of the peak.
[0058] In some embodiments, other parameters such as the duration of the peak and the intersection time of the detection band are also included.
[0059] The acquisition card processes the target signal band within the peak extraction range of the target waveform signal to determine the peak detection result of the target waveform signal.
[0060] Exemplarily, the original sampling segments of the waveform are divided into several groups, and the maximum and minimum values of each group are compared as extraction points, and the peak value is determined based on continuous comparison and calculation.
[0061] In some embodiments, in the waveform signal processing method, after determining the peak detection result of the target waveform signal, the method further includes: The acquisition card reports the peak detection result and the target waveform signal to the host computer so that the host computer can visually display the target waveform signal, and display the peak detection result and the total band identifier corresponding to the total band, the forward-looking band identifier corresponding to the forward-looking band, and the detection band identifier corresponding to the detection band at the position of the target waveform signal.
[0062] In the embodiment of the present application, in order to improve the response speed, the peak detection function is integrated into the bottom layer of the acquisition card; the acquisition card may be an FPGA (field programmable gate array); please refer to Figure 5 , Figure 5 A logical function module diagram of the acquisition card described in the embodiment of the present application is shown.
[0063] Specifically, the module functions in the FPGA logic module are as follows: The analog-to-digital converter is used to sample analog waveform signals, and the waveform signals are transmitted to the FPGA via the JESD204B interface. The analog-to-digital converter is an ADC module, and for example, an ADC module of model AD9680 may be used.
[0064] PCIe intf module is an optional host computer interface module: this module is used to send the collected signal waveform to the host computer; send the peak detection information to the host computer; at the same time, this module serves as the host computer's operation control interface module for the internal registers of the FPGA, and converts the messages or register configurations sent from the host computer to the FPGA into the local bus timing; the Localbus bus serves as the control interface bus of each module of the FPGA to realize the read and write operations of the registers of each module, thereby realizing the operation control of the module.
[0065] JESD204B is an optional interface module inside the acquisition card, specifically the JESD204B interface module inside the FPGA, which is used to receive and process the 1GSPS waveform signal transmitted from AD9680 to the FPGA, restore the real signal, and the output sampling signal transmission format is: 14-bit signed number, 250MHz clock, and 4 parallel sample points.
[0066] Trig proc module, that is, trigger module: used to process the trigger mode. The trigger source is: external trigger signal including encoding trigger, A+ B+ band threshold trigger, and internal automatic trigger, etc.
[0067] Acq ctrl module, namely the trigger control module, generates corresponding trigger start signal and acquisition stop signal according to the trigger mode.
[0068] Mem ctrl module, i.e., data flow control module: controlled by acq ctrl module and local bus, this module stores 1GSPS sampling data into FPGA external memory (such as DDR3 memory) when the trigger conditions are met; controlled by local bus, it decides whether to read the triggered sampling data from FPGA external DDR3 memory; in addition, this module sends the sampling data stream to the filter module and peak detection module for subsequent sampling data analysis and processing.
[0069] DDR3 memory is an optional memory: QT7010B has two groups of DDR3 memory particles, each group has 4 DDR3 particles, and each particle has a capacity of 4Gbit (256Mx16bit). It is used to cache the sampled data that meets the trigger conditions.
[0070] LPF low-pass filter is an optional low-pass filter module: this module is controlled by the local bus and can be configured as bypass. When configured as bypass, the sampled signal passes through the module directly without low-pass filtering. When the low-pass filtering function is required, the sampled signal passes through a first-level low-pass filter, and the filter coefficient can be reconfigured; this filter is a single-rate filter, and the sampling rate remains unchanged.
[0071] Wave tree module, that is, band tree module: This module is used to cache the band tree configuration message sent by the host computer, parse the band tree information, separate the total band, forward-looking band and detection band, and extract the specific parameters of each level of band tree data. The forward-looking band may have multiple levels, and the maximum number of levels / layers of the band tree needs to be determined. The band tree parameters are used by the Peak detector module.
[0072] Peak detector module, i.e., peak detection module, is used to implement the band tree message processing, obtain peak detection acquisition information according to the data peak detection requirements of the detection band, and write the acquisition information into blk ram. This module intends to use the band tree processing state machine to track and process the multi-level band tree; the band tree parameters are configured by the host computer through the PCIe interface and via the local bus.
[0073] The functions of waveform signal filtering and peak detection inside the FPGA are Figure 5 The LPF low-pass filter, Wavetree module and Peak detector module are implemented.
[0074] Based on this, in some embodiments, the waveform signal processing method is performed in sequence according to the following steps.
[0075] Parameter configuration: The upper computer configures the working parameters, including: whether the filter is bypassed, if the filter is enabled, configure the filter cutoff frequency parameters; configure the band tree, total band / forward band / detection band parameter configuration; trigger parameter configuration, including trigger mode selection, trigger band threshold, etc.; start signal processing: enable low-pass filtering and peak detection modules.
[0076] Waiting for trigger: According to the trigger mode, when the trigger condition is met (reaching the trigger band threshold or automatic triggering), the ADC sampling data is stored in DDR3 or sent to the algorithm processing module; and the global variables are cleared. Global variables include: time counter, peak detection information, etc.
[0077] Trigger start: the time counter starts counting; the ADC sampling point is set to the valid state.
[0078] Filtering: For valid ADC sampling points (ADC sampling data after the trigger condition is met), send them to LPF or BPF. According to the configuration of the host computer, decide whether to start the filtering function. If the filtering function is turned off, the ADC sampling data will pass through the filtering function module directly; if the filtering function is enabled, the ADC sampling points will be output after being processed by the filter; whether to enable the filtering function is controlled by the host computer.
[0079] Peak detection: configuring a band tree processing state machine in the acquisition card, and the band tree processing state machine controls the acquisition card to execute the peak extraction band tree; The band tree processing state machine includes an initial state, a total band state, a forward-looking band state and a detected band state.
[0080] The band tree processing state machine controls the acquisition card to execute the peak extraction band tree, including: When the acquisition card does not meet the trigger acquisition condition, the band tree processing state machine remains in the initial state; When the acquisition card meets the trigger acquisition condition, the band tree processing state machine jumps to the total band state; The acquisition card processes the total band state. When it is determined that there is a forward-looking band according to the total band parameters, the band tree processing state machine jumps to the forward-looking band state. When it is determined that there is a detection band, the band tree processing state machine directly jumps to the detection band state. After the band tree processing state machine jumps to the forward-looking band state, the acquisition card processes the forward-looking band parameters, and makes a judgment based on the state of the target waveform signal within the forward-looking band distance. If the next-level forward-looking band condition is met, the next-level forward-looking band processing continues. If the detection band condition is met, the band tree processing state machine jumps to the detection band state. After the band tree processing state machine jumps to the detection band state, the acquisition card processes the target waveform signal, determines the peak detection result of the target waveform signal, and reports the peak detection result; when the peak detection result is extracted, the band tree processing state machine jumps back to the initial state and waits for the next trigger.
[0081] Please refer to Figure 6 Specifically, the band tree processing state machine includes an initial state, a total band state, a forward-looking band state and a detected band state.
[0082] Initial state: When the trigger acquisition conditions are not met, the state machine is in the initial state. When the trigger conditions are met, the state machine jumps from the initial state to the total band state; when the peak parameters are extracted according to the detection band, the state machine jumps from the detection band state to the initial state.
[0083] Total band state: This state is used to process the total band parameters. When the trigger condition is met, the state machine jumps from the initial state to the total band state. The global time counter starts to accumulate timing after the trigger condition is met; when the time counter reaches the start time parameter time of the total band, it is determined whether there is a forward-looking band in the band tree parameters. If there is a forward-looking band, it jumps from this state to the forward-looking band state; if there is only a detection band in the band tree parameters, it directly enters the detection band state.
[0084] Look-ahead band state: This state is used to process the look-ahead band parameters, including the start time, threshold, rising edge or falling edge, and look-ahead band distance of the look-ahead band. This state is used to detect whether the sampled signal exceeds the threshold, can accurately select the peak extraction signal and prevent the detection band distance from exceeding the total band, and can be set programmably; when the global counter reaches the start time of the first-level look-ahead band, it starts to judge whether the sampled signal has a corresponding rising or falling edge within the look-ahead band distance, and whether the sampled data exceeds the threshold; if the look-ahead band parameter conditions configured by the host computer are met within the total band distance time, it is judged whether to enter the second-level look-ahead band. If there is a second-level look-ahead band, it enters the look-ahead band state again, updates the look-ahead band parameters, and starts the sampled data condition judgment within the second-level look-ahead band parameters (when there are multiple levels of look-ahead bands, it enters the look-ahead band state cyclically). If there is no second-level look-ahead band, it enters the detection band state.
[0085] Detection band state: This state is used to judge and process the detection band parameters, extract the peak acquisition data parameters, and form the peak detection report message. Jump to the detection band state from the total band state or the forward-looking band state.
[0086] This state completes the signal peak acquisition within the designated range according to the start time and acquisition range of data acquisition in the detection band parameters; the threshold and detection band distance of the detection band can be programmed, but the start time of the detection band is affected by the look-ahead band. When there is no threshold intersection between the signal and the look-ahead band, the start time of the detection band maintains a fixed interval with the start time of the look-ahead band, and the interval can be programmed; when there is a threshold intersection between the signal and the look-ahead band, the start time of the detection band maintains a fixed interval with the intersection (programmable).
[0087] After the peak signal parameter extraction is completed, the peak detection message parameters are formed for subsequent reporting to the host computer; the state machine enters the initial state and waits for the next band tree processing.
[0088] Based on the same inventive concept, an acquisition card corresponding to the waveform signal processing method is also provided in the embodiment of the present application. Since the principle of solving the problem by the acquisition card in the embodiment of the present application is similar to the above-mentioned waveform signal processing method in the embodiment of the present application, the implementation of the acquisition card can refer to the implementation of the method, and the repeated parts will not be repeated.
[0089] In some embodiments, an acquisition card is provided, and the acquisition card executes the waveform signal processing method. Specifically, a peak extraction band tree is configured in the acquisition card; the peak extraction band tree includes a total band parameter of a total band, a forward-looking band parameter of a forward-looking band, and a detection band parameter of a detection band; a target waveform length that needs peak extraction in a target waveform signal is selected in the total band, and a forward-looking band distance of the forward-looking band and a detection band distance of the detection band are selected in the total band, and the detection band is used to determine a waveform range for peak extraction in a waveform signal band corresponding to the total band; the forward-looking band is before the detection band; The acquisition card acquires the target waveform signal in response to satisfying the trigger acquisition condition; The acquisition card processes the target waveform signal based on the total band parameter, the forward-looking band parameter and the detection band parameter in the peak extraction band tree, and determines a peak extraction range that matches the detection band distance; The acquisition card processes a target signal band within a peak extraction range of the target waveform signal to determine a peak detection result of the target waveform signal.
[0090] In some embodiments, after the acquisition card performs the step of determining the peak detection result of the target waveform signal, the acquisition card further performs the following steps: The acquisition card reports the peak detection result and the target waveform signal to the host computer so that the host computer can visually display the target waveform signal, and display the peak detection result and the total band identifier corresponding to the total band, the forward-looking band identifier corresponding to the forward-looking band, and the detection band identifier corresponding to the detection band at the position of the target waveform signal.
[0091] In some embodiments, when the acquisition card executes the step of configuring the peak extraction band tree in the acquisition card, the following steps are specifically performed: Analyzing the peak characteristics of the target waveform signal; the peak characteristics include peak position, peak number and amplitude; Based on the peak characteristics of the target waveform signal, the structure of the peak extraction band tree is determined, and the parameters of the total band, the forward-looking band and the detection band in the structure are determined.
[0092] In some embodiments, when the acquisition card determines the structure of the peak extraction band tree based on the peak characteristics of the target waveform signal, and determines the parameters of the total band, the forward-looking band, and the detection band in the structure, the following steps are specifically performed: Determining a target peak value to be extracted from the target waveform signal based on the peak characteristics and detection purpose of the target waveform signal; Based on the target waveform signal, the total band parameters of the total band are determined, and the forward-looking band parameters of the forward-looking band in the total band and the detection band parameters of the detection band are determined; wherein each target peak to be extracted corresponds to a detection band, and the forward-looking band corresponding to the detection band selects a length before the detection band.
[0093] In some embodiments, when the acquisition card executes the step of determining the forward-looking band parameter of the forward-looking band in the total band and the detection band parameter of the detection band, the following steps are specifically performed: When there are multiple target peaks to be extracted in the target waveform signal, defining multiple layers of forward-looking bands based on a nested manner; The next level of the bottom-level forward-looking band defines a detection band, and other forward-looking bands correspond to a detection band respectively.
[0094] In some embodiments, the target waveform signal is a sound wave signal returned after the structure of the object under test is detected; the peak value in the target waveform signal is generated based on the structure of the object under test.
[0095] In some embodiments, the acquisition card further performs the following steps: A band tree processing state machine is configured in the acquisition card, and the band tree processing state machine controls the acquisition card to execute the peak extraction band tree; The band tree processing state machine includes an initial state, a total band state, a forward-looking band state and a detected band state.
[0096] In some embodiments, when the acquisition card executes the band tree processing state machine to control the acquisition card to execute the peak extraction band tree, the following steps are specifically performed: When the acquisition card does not meet the trigger acquisition condition, the band tree processing state machine remains in the initial state; When the acquisition card meets the trigger acquisition condition, the band tree processing state machine jumps to the total band state; The acquisition card processes the total band state. When it is determined that there is a forward-looking band according to the total band parameters, the band tree processing state machine jumps to the forward-looking band state. When it is determined that there is a detection band, the band tree processing state machine directly jumps to the detection band state. After the band tree processing state machine jumps to the forward-looking band state, the acquisition card processes the forward-looking band parameters, and makes a judgment based on the state of the target waveform signal within the forward-looking band distance. If the next-level forward-looking band condition is met, the next-level forward-looking band processing continues. If the detection band condition is met, the band tree processing state machine jumps to the detection band state. After the band tree processing state machine jumps to the detection band state, the acquisition card processes the target waveform signal, determines the peak detection result of the target waveform signal, and reports the peak detection result; when the peak detection result is extracted, the band tree processing state machine jumps back to the initial state and waits for the next trigger.
[0097] In some embodiments, after acquiring the target waveform signal, the acquisition card further performs filtering processing on the waveform signal to obtain the target waveform signal after filtering.
[0098] In some embodiments, the acquisition card includes a trigger module, a data acquisition module and a peak extraction module, and the peak extraction module includes a band tree module and a peak detection module; The trigger module is used to generate a trigger start signal and an acquisition stop signal based on a preset trigger mode; The data acquisition module is used to acquire the target waveform signal based on the trigger start signal and the acquisition stop signal; The band tree module in the peak extraction module is used to cache the configuration information of the peak extraction band tree sent by the host computer to the acquisition card, parse the configuration information of the peak extraction band tree, and configure the total band parameters of the total band, the forward-looking band parameters of the forward-looking band, and the detection band parameters of the detection band in the acquisition card; The peak detection module in the peak extraction module processes the target waveform signal based on the total band parameters, detection band parameters and forward-looking band parameters in the band tree module to determine the peak detection result of the target waveform signal.
[0099] Based on the same inventive concept, an ultrasonic detection system corresponding to the waveform signal processing method is also provided in the embodiment of the present application. Since the principle of solving the problem by the ultrasonic detection system in the embodiment of the present application is similar to the above-mentioned waveform signal processing method in the embodiment of the present application, the implementation of the ultrasonic detection system can refer to the implementation of the method, and the repeated parts will not be repeated.
[0100] In some embodiments, an ultrasonic detection system is also provided, the ultrasonic detection system comprising an acquisition card, an ultrasonic generator, an amplifier and a probe, and a host computer; the acquisition card is connected to the ultrasonic generator, the ultrasonic generator is connected to the amplifier and the probe, and the acquisition card is in communication connection with the host computer; The acquisition card executes the waveform signal processing method described in the embodiment of the present application.
[0101] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0102] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0103] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0104] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a platform server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0105] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A waveform signal processing method, characterized in that: The method comprises: A peak extraction band tree is configured in the acquisition card; the peak extraction band tree includes a total band parameter of the total band, a forward-looking band parameter of the forward-looking band, and a detection band parameter of the detection band; a target waveform length that needs peak extraction in the target waveform signal is selected in the total band, and a forward-looking band distance of the forward-looking band and a detection band distance of the detection band are selected in the total band, and the detection band is used to determine a waveform range for peak extraction in the waveform signal band corresponding to the total band; the forward-looking band is before the detection band; The acquisition card acquires the target waveform signal in response to satisfying the trigger acquisition condition; The acquisition card processes the target waveform signal based on the total band parameter, the forward-looking band parameter and the detection band parameter in the peak extraction band tree, and determines a peak extraction range that matches the detection band distance; The acquisition card processes a target signal band within a peak extraction range of the target waveform signal to determine a peak detection result of the target waveform signal.
2. The waveform signal processing method according to claim 1, characterized in that: After determining the peak detection result of the target waveform signal, the method further includes: The acquisition card reports the peak detection result and the target waveform signal to the host computer so that the host computer can visually display the target waveform signal, and display the peak detection result and the total band identifier corresponding to the total band, the forward-looking band identifier corresponding to the forward-looking band, and the detection band identifier corresponding to the detection band at the position of the target waveform signal.
3. The waveform signal processing method according to claim 1, characterized in that: The step of configuring the peak extraction band tree in the acquisition card includes: Analyzing the peak characteristics of the target waveform signal; the peak characteristics include peak position, peak number and amplitude; Based on the peak characteristics of the target waveform signal, the structure of the peak extraction band tree is determined, and the parameters of the total band, the forward-looking band and the detection band in the structure are determined.
4. The waveform signal processing method according to claim 3, characterized in that: Based on the peak characteristics of the target waveform signal, a structure of a peak extraction band tree is determined, and parameters of a total band, a forward-looking band, and a detection band in the structure are determined, including: Determining a target peak value to be extracted from the target waveform signal based on the peak characteristics and detection purpose of the target waveform signal; Based on the target waveform signal, the total band parameters of the total band are determined, and the forward-looking band parameters of the forward-looking band in the total band and the detection band parameters of the detection band are determined; wherein each target peak to be extracted corresponds to a detection band, and the forward-looking band corresponding to the detection band selects a length before the detection band.
5. The waveform signal processing method according to claim 4, characterized in that: The determining of the forward-looking band parameter of the forward-looking band in the total band and the detection band parameter of the detection band comprises: When there are multiple target peaks to be extracted in the target waveform signal, defining multiple layers of forward-looking bands based on a nested manner; The next level of the bottom-level forward-looking band defines a detection band, and other forward-looking bands correspond to a detection band respectively.
6. The waveform signal processing method according to claim 1, characterized in that: The target waveform signal is a sound wave signal returned after the internal structure of the object under test is detected; the peak value in the target waveform signal is generated based on the structure of the object under test.
7. The waveform signal processing method according to claim 1, characterized in that: The method further comprises: A band tree processing state machine is configured in the acquisition card, and the band tree processing state machine controls the acquisition card to execute the peak extraction band tree; The band tree processing state machine includes an initial state, a total band state, a forward-looking band state and a detected band state.
8. The waveform signal processing method according to claim 7, characterized in that: The band tree processing state machine controls the acquisition card to execute the peak extraction band tree, including: When the acquisition card does not meet the trigger acquisition condition, the band tree processing state machine remains in the initial state; When the acquisition card meets the trigger acquisition condition, the band tree processing state machine jumps to the total band state; The acquisition card processes the total band state. When it is determined that there is a forward-looking band according to the total band parameters, the band tree processing state machine jumps to the forward-looking band state. When it is determined that there is a detection band, the band tree processing state machine directly jumps to the detection band state. After the band tree processing state machine jumps to the forward-looking band state, the acquisition card processes the forward-looking band parameters, and makes a judgment based on the state of the target waveform signal within the forward-looking band distance. If the next-level forward-looking band condition is met, the next-level forward-looking band processing continues. If the detection band condition is met, the band tree processing state machine jumps to the detection band state. After the band tree processing state machine jumps to the detection band state, the acquisition card processes the target waveform signal, determines the peak detection result of the target waveform signal, and reports the peak detection result; when the peak detection result is extracted, the band tree processing state machine jumps back to the initial state and waits for the next trigger.
9. The waveform signal processing method according to claim 1, characterized in that: After the acquisition card acquires the target waveform signal, it performs filtering processing on the waveform signal to obtain the filtered target waveform signal.
10. The waveform signal processing method according to claim 1, characterized in that: The acquisition card includes a trigger module, a data acquisition module and a peak extraction module, and the peak extraction module includes a band tree module and a peak detection module; The trigger module is used to generate a trigger start signal and an acquisition stop signal based on a preset trigger mode; The data acquisition module is used to acquire the target waveform signal based on the trigger start signal and the acquisition stop signal; The band tree module in the peak extraction module is used to cache the configuration information of the peak extraction band tree sent by the host computer to the acquisition card, parse the configuration information of the peak extraction band tree, and configure the total band parameters of the total band, the forward-looking band parameters of the forward-looking band, and the detection band parameters of the detection band in the acquisition card; The peak detection module in the peak extraction module processes the target waveform signal based on the total band parameters, detection band parameters and forward-looking band parameters in the band tree module to determine the peak detection result of the target waveform signal.
11. A capture card, characterized in that: The acquisition card executes the waveform signal processing method described in any one of claims 1-10.
12. An ultrasonic detection system, characterized in that: The ultrasonic detection system includes an acquisition card, an ultrasonic generator, an amplifier and a probe, and a host computer; the acquisition card is connected to the ultrasonic generator, the ultrasonic generator is connected to the amplifier and the probe, and the acquisition card is in communication connection with the host computer; The acquisition card executes the waveform signal processing method described in any one of claims 1-10.
Citation Information
Patent Citations
Method for transmitting data via a vehicle data bus from an ultrasonic system to a data processing device
CN110741279A
Detection of noise-induced ultrasonic sensor blindness
CN111474548A
Pattern recognition system
US20150178631A1
Method for the optimization of the process decoding coded ultrasound signals and ultrasound system obtained by said method
US20180275272A1
Time of flight and code signature detection for coded ultrasonic transmission
US20190339386A1