A data acquisition method, system, storage medium and electronic device
Patent Information
- Application Number
- CN202611054470.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-16
- Publication Date
- 2026-10-23
- Estimated Expiration
- 2046-07-16
AI Technical Summary
[0005]有鉴于此,本发明提供了一种数据采集方法、系统、存储介质及电子设备,主要目的在于解决目前在对待检测对象进行数据采集时,数据采集频率低的问题,进而导致后续缺陷检测不够精准
[0030]本申请中的数据采集方法、系统、存储介质及电子设备,各数据采集板通过同时获取同步脉冲信号,由此能够生成相同的倍频脉冲信号,进而各数据采集板可以基于相同的倍频脉冲信号进行高频数据采集,即针对每个同步脉冲信号、进行一次高频数据采集,提高了数据采集频率,使得采集获得的数据更加全面、可靠;各数据采集板通过为当前倍频处理所获得的首个倍频脉冲信号所对应的原始采集数据配置脉冲标签,实现了基于脉冲标签对每次高频采样/高频采集的标记,同时实现了对倍频脉冲信号所对应的采集位置的标记,便于后续在对采集数据进行数据融合时,能够根据脉冲标签、精准的将同一采集位置所对应的采集数据/采样数据进行融合,也就是,实现了针对同一次高频采样、将各数据采集板在同一倍频脉冲信号下的原始采集数据进行融合,使得数据融合结果更加精准,进而最终能够获得高频且精准的目标采集数据。
Smart Images

Figure CN122571508B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of signal detection technology, and in particular to a data acquisition method, system, storage medium, and electronic device. Background Technology
[0002] In the field of industrial inspection, in order to better and more accurately reflect the state of the object under inspection, there are often scenarios that require simultaneous acquisition of multiple signals. Specifically, the number of acquisition channels can range from a few to dozens. Since the number of analog-to-digital converters (ADCs) that a single FPGA data acquisition board can connect to is limited, multiple FPGA data acquisition boards are needed to perform signal acquisition work simultaneously.
[0003] When acquiring / detecting signals from an object under test based on multiple data acquisition boards, a synchronization pulse is typically used to acquire data from the object under test at the corresponding position. Then, the original acquisition signals / data from each acquisition board are fused to obtain the final data acquisition result.
[0004] However, this data acquisition method has a low sampling frequency, resulting in incomplete and unreliable data acquisition. Consequently, when performing defect detection on the object to be tested based on the sampled / acquired data, the defect detection results are not accurate enough. Summary of the Invention
[0005] In view of this, the present invention provides a data acquisition method, system, storage medium and electronic device, the main purpose of which is to solve the problem of low data acquisition frequency when acquiring data from objects to be inspected, which leads to insufficient accuracy in subsequent defect detection.
[0006] To address the above problems, this application provides a data acquisition method, comprising: Several data acquisition boards synchronously acquire the current synchronization pulse signal corresponding to the current position to be detected; Each data acquisition board performs current frequency multiplication processing based on the current synchronization pulse signal by a predetermined number of multiplications to generate each multiplication pulse signal in sequence; Each data acquisition board sequentially acquires data from the current detection position based on the frequency multiplication pulse signal generated by the current frequency multiplication process until the next synchronization pulse signal is obtained, thereby obtaining the original acquisition data corresponding to several frequency multiplication pulse signals, and acquiring the pulse tag of the first frequency multiplication pulse signal generated by the previous frequency multiplication process, so as to associate the pulse tag with the corresponding original acquisition data; Each data acquisition board stores the raw acquisition data, the pulse tags associated with the raw acquisition data, and the data in the order of acquisition time into the data storage queue corresponding to each data acquisition board. After data acquisition is completed for each detection location, the raw acquisition data is fused based on the pulse tags corresponding to each raw acquisition data in each data storage queue to obtain the fused target acquisition data.
[0007] Optionally, each data acquisition board performs current frequency multiplication processing on the current synchronization pulse signal a predetermined number of times to generate each frequency multiplication pulse signal sequentially, specifically including: Each data acquisition board determines the current pulse period corresponding to the current synchronization pulse signal based on the current synchronization pulse signal and the previous synchronization pulse signal; Based on the current pulse period, each frequency harmonic pulse signal is generated sequentially according to a predetermined number of harmonic harmonics.
[0008] Optionally, each data acquisition board determines the current pulse period corresponding to the current synchronization pulse signal based on the current synchronization pulse signal and the previous synchronization pulse signal, specifically including: Each data acquisition board determines the current pulse period based on the start time of the current synchronization pulse signal and the start time of the previous synchronization pulse signal; Alternatively, each data acquisition board determines the current pulse period based on the end time of the current synchronization pulse signal and the end time of the previous synchronization pulse signal.
[0009] Optionally, the predetermined number of frequency multiplications is greater than or equal to 3.
[0010] Optionally, the step of fusing the original acquired data based on the pulse tags corresponding to each original acquired data in each data storage queue to obtain the fused target acquired data specifically includes: Following the first-in-first-out reading order, the original collected data at the same sorting position are read simultaneously from each data storage queue to obtain each data to be fused; Based on the pulse labels corresponding to each piece of data to be fused, the matching results of each piece of data to be fused are determined; If the matching result is successful, the data to be fused is fused to obtain sub-fused data corresponding to the sorting position, and the target collected data is obtained based on the sub-fused data corresponding to each sorting position. If the matching result is unsuccessful, delete the original acquisition data that is not configured with pulse tags, and update the sorting position of each unfused original acquisition data in the corresponding data storage queue, so as to reread each data to be fused.
[0011] Optionally, determining the matching result of each piece of data to be fused based on the pulse tag corresponding to each piece of data to be fused specifically includes: Statistical analysis was performed on the pulse labels corresponding to each piece of data to be fused; When all data to be fused are configured with pulse tags or have the same pulse tags, the matching result of each data to be fused is determined to be a successful match. If each piece of data to be fused is not configured with a pulse label at the same time, or if the pulse labels are inconsistent, the matching result of each piece of data to be fused is determined to be unsuccessful.
[0012] Optionally, the method further includes: The data fusion board performs current frequency multiplication processing on the current synchronization pulse signal by a predetermined number of multiplications to generate each reference frequency multiplication pulse signal in sequence; Configure a pulse tag for the first reference frequency-doubled pulse signal obtained by the current frequency-doubled processing, and store it in the tag storage queue corresponding to the data fusion board; The process of fusing the original acquired data based on the pulse tags corresponding to each original acquired data in each data storage queue to obtain the fused target acquired data specifically includes: Based on the pulse tags corresponding to each original acquired data in each data storage queue and each pulse tag in the tag storage queue, the original acquired data are fused to obtain the fused target acquired data.
[0013] Optionally, the method further includes: The current synchronization pulse signal is generated using the data fusion board based on the three-phase quadrature pulse signal generated by the encoder group; The data fusion board is used to send the current synchronization pulse signal to several data acquisition boards so that the several data acquisition boards can synchronously acquire the current synchronization pulse signal. The three-phase quadrature pulse signal is generated in real time by the encoder group when the object to be detected moves to the current position to be detected.
[0014] Optionally, each data acquisition board may contain several data acquisition channels; When each data acquisition board synchronously acquires the current synchronization pulse signal, the method further includes: Synchronously acquire clocks from the same source; Each data acquisition board generates a reference clock based on a common clock source, so that each data acquisition channel within each data acquisition board can start data acquisition synchronously.
[0015] Optionally, the method further includes: The same clock is generated based on the data fusion board; The data fusion board is used to send the same source clock to several data acquisition boards so that the several data acquisition boards can synchronously acquire the same source clock.
[0016] Optionally, the method further includes: Each data acquisition board is pre-configured with a data storage queue.
[0017] To address the aforementioned problems, this application provides a data acquisition system, comprising: a plurality of data acquisition boards and a data fusion board; Each of the data acquisition boards is used to synchronously acquire the current synchronization pulse signal corresponding to the current position to be detected; Each data acquisition board is used to perform current frequency multiplication processing based on the current synchronization pulse signal by a predetermined number of multiplications, so as to generate each multiplication pulse signal in sequence; Each data acquisition board is used to sequentially acquire data from the current detection position based on the frequency multiplication pulse signal generated by the current frequency multiplication process until the next synchronization pulse signal is acquired, obtain the original acquisition data corresponding to several frequency multiplication pulse signals, and acquire the pulse tag of the first frequency multiplication pulse signal generated by the previous frequency multiplication process, so as to associate the pulse tag with the corresponding original acquisition data. Each data acquisition board is used to store the raw acquired data, the pulse tags associated with the raw acquired data, and in chronological order of acquisition time into the data storage queue corresponding to each data acquisition board. The data fusion board is used to fuse the original acquired data based on the pulse tags corresponding to each original acquired data in each data storage queue after data acquisition is completed for each location to be detected, so as to obtain the fused target acquired data.
[0018] Optionally, each data acquisition board is specifically used for: Based on the current synchronization pulse signal and the previous synchronization pulse signal, determine the current pulse period corresponding to the current synchronization pulse signal; Based on the current pulse period, each frequency harmonic pulse signal is generated sequentially according to a predetermined number of harmonic harmonics.
[0019] Optionally, each data acquisition board is specifically used for: The current pulse period is determined based on the start time of the current synchronization pulse signal and the start time of the previous synchronization pulse signal. Alternatively, the current pulse period can be determined based on the end time of the current synchronization pulse signal and the end time of the previous synchronization pulse signal.
[0020] Optionally, the predetermined number of frequency multiplications is greater than or equal to 3.
[0021] Optionally, the data fusion board is specifically used for: Following the first-in-first-out reading order, the original collected data at the same sorting position are read simultaneously from each data storage queue to obtain each data to be fused; Based on the pulse labels corresponding to each piece of data to be fused, the matching results of each piece of data to be fused are determined; If the matching result is successful, the data to be fused is fused to obtain sub-fused data corresponding to the sorting position, and the target collected data is obtained based on the sub-fused data corresponding to each sorting position. If the matching result is unsuccessful, delete the original acquisition data that is not configured with pulse tags, and update the sorting position of each unfused original acquisition data in the corresponding data storage queue, so as to reread each data to be fused.
[0022] Optionally, the data fusion board is specifically used for: Statistical analysis was performed on the pulse labels corresponding to each piece of data to be fused; When all data to be fused are configured with pulse tags or have the same pulse tags, the matching result of each data to be fused is determined to be a successful match. If each piece of data to be fused is not configured with a pulse label at the same time, or if the pulse labels are inconsistent, the matching result of each piece of data to be fused is determined to be unsuccessful.
[0023] Optionally, the data fusion board is also used for: Based on the current synchronization pulse signal, perform current frequency multiplication processing of a predetermined number of times to sequentially generate each reference frequency multiplication pulse signal; Configure a pulse tag for the first reference frequency-doubled pulse signal obtained by the current frequency-doubled processing, and store it in the tag storage queue corresponding to the data fusion board; The data fusion board is specifically used for: Based on the pulse tags corresponding to each original acquired data in each data storage queue and each pulse tag in the tag storage queue, the original acquired data are fused to obtain the fused target acquired data.
[0024] Optionally, the data fusion board is also used for: The current synchronization pulse signal is generated based on the three-phase quadrature pulse signal generated by the encoder group; The current synchronization pulse signal is sent to several data acquisition boards so that the several data acquisition boards can synchronously acquire the current synchronization pulse signal. The three-phase quadrature pulse signal is generated in real time by the encoder group when the object to be detected moves to the current position to be detected.
[0025] Optionally, each data acquisition board includes several data acquisition channels, and the data acquisition board is further used for: acquiring synchronization pulse signals. Synchronously acquire clocks from the same source; Each data acquisition reference clock is generated based on a common clock source, so that each data acquisition channel in each data acquisition board can start data acquisition synchronously.
[0026] Optionally, the data fusion board is also used for: Generate the same source clock; The shared clock is sent to several data acquisition boards so that the several data acquisition boards can synchronously acquire the shared clock.
[0027] Optionally, the data fusion board is also used for: Each data acquisition board is pre-configured with a data storage queue.
[0028] To address the aforementioned problems, this application provides a storage medium storing a computer program that, when executed by a processor, implements the steps of any of the data acquisition methods described above.
[0029] To address the aforementioned problems, this application provides an electronic device, comprising at least a memory and a processor, wherein the memory stores a computer program, and the processor, when executing the computer program in the memory, implements the steps of the data acquisition method described in any one of the claims.
[0030] The data acquisition method, system, storage medium, and electronic device in this application involve each data acquisition board simultaneously acquiring a synchronization pulse signal, thereby generating the same frequency-doubled pulse signal. This allows each data acquisition board to perform high-frequency data acquisition based on the same frequency-doubled pulse signal, meaning high-frequency data acquisition is performed for each synchronization pulse signal, increasing the data acquisition frequency and making the acquired data more comprehensive and reliable. Each data acquisition board configures a pulse tag for the original acquired data corresponding to the first frequency-doubled pulse signal obtained from the current frequency-doubled processing, achieving labeling of each high-frequency sampling / acquisition based on the pulse tag. Simultaneously, it marks the acquisition position corresponding to the frequency-doubled pulse signal, facilitating accurate fusion of the acquired data / sampled data corresponding to the same acquisition position during subsequent data fusion. In other words, it achieves the fusion of the original acquired data from each data acquisition board under the same frequency-doubled pulse signal for the same high-frequency sampling, resulting in more accurate data fusion results and ultimately obtaining high-frequency and accurate target acquired data.
[0031] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0032] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 This is a flowchart illustrating a data acquisition method according to an embodiment of this application; Figure 2 This is a schematic diagram illustrating the relationship between the synchronization pulse signal, the theoretical frequency-doubled pulse signal, and the actual frequency-doubled pulse signal in the embodiments of this application; Figure 3 This is a schematic diagram of the data storage queues in this embodiment; Figure 4 This is a schematic diagram illustrating the relationship between the tag storage queue and the data storage queue in another embodiment of this application; Figure 5 This is a schematic diagram of the data acquisition system in another embodiment of this application; Figure 6 This is a data acquisition flowchart of a data acquisition system according to another embodiment of this application; Figure 7 This is a structural block diagram of an electronic device according to another embodiment of this application. Detailed Implementation
[0033] Various embodiments and features of this application are described herein with reference to the accompanying drawings.
[0034] It should be understood that various modifications can be made to the embodiments described herein. Therefore, the above description should not be considered as limiting, but merely as an example of embodiments. Other modifications within the scope and spirit of this application will be apparent to those skilled in the art.
[0035] The accompanying drawings, which are included in and form part of this specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0036] These and other features of this application will become apparent from the following description of preferred forms of embodiments given as non-limiting examples, with reference to the accompanying drawings.
[0037] It should also be understood that although this application has been described with reference to some specific examples, those skilled in the art can certainly implement many other equivalent forms of this application.
[0038] The above and other aspects, features and advantages of this application will become more apparent when taken in conjunction with the accompanying drawings and in view of the following detailed description.
[0039] Specific embodiments of this application are described thereafter with reference to the accompanying drawings; however, it should be understood that the claimed embodiments are merely examples of this application, which can be implemented in various ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that could obscure the application. Therefore, the specific structural and functional details claimed herein are not intended to be limiting, but merely serve as the basis and representative basis for the claims to teach those skilled in the art to use this application in a variety of substantially any suitable detailed structures.
[0040] This specification may use the phrases “in one embodiment,” “in another embodiment,” “in yet another embodiment,” or “in other embodiments,” all of which may refer to one or more of the same or different embodiments according to this application.
[0041] This application provides a data acquisition method, such as... Figure 1 As shown, it includes the following steps: Step S101: Several data acquisition boards synchronously acquire the current synchronization pulse signal corresponding to the current position to be detected; In the specific implementation of this step, as the object to be detected moves with the motion table, a three-phase quadrature pulse signal, namely the ABZ signal, can be generated in real time for each position to be detected based on the encoder. Then, the data fusion board generates a synchronization pulse signal based on the three-phase quadrature pulse signal and sends it to each data acquisition board in a synchronous manner so that the data acquisition board can synchronously acquire the synchronization pulse signal corresponding to the detection position.
[0042] Step S102: Each data acquisition board performs current frequency multiplication processing based on the current synchronization pulse signal by a predetermined number of multiplications to generate each multiplication pulse signal in sequence; In this step, each data acquisition board can simultaneously multiply the current synchronization pulse signal based on a predetermined number of multiplications, thereby sequentially generating a multiplied pulse sequence containing several multiplied pulse signals. This lays the foundation for subsequent high-frequency data acquisition based on the multiplied pulse signals. The number of multiplications is greater than or equal to 3; for example, the predetermined number of multiplications can be 3x, 5x, or 8x. Taking 5x as an example, it means that 5 pulse signals are generated sequentially according to the pulse period corresponding to the current synchronization pulse.
[0043] In this step, the first frequency-multiplying pulse signal generated by the current frequency multiplication process can be understood as a new high-frequency sampling. Therefore, each data acquisition board can configure a pulse tag, i.e., a synchronization tag, only for the first frequency-multiplying pulse signal, while not configuring pulse tags for the remaining non-first frequency-multiplying pulse signals. Alternatively, a first pulse tag can be configured for the first frequency-multiplying pulse signal, and a second pulse tag can be configured for the remaining non-first pulse signals. In this embodiment, the pulse tag is used to distinguish between the first frequency-multiplying pulse signal and the non-first frequency-multiplying pulse signals in the same frequency multiplication process. By configuring pulse tags, it is convenient to mark the acquired data based on the pulse tags, thereby laying the foundation for subsequent data fusion based on the pulse tags. In the specific implementation process, Step S103: Each data acquisition board sequentially acquires data from the current detection position based on the frequency multiplication pulse signal generated by the current frequency multiplication process until the next synchronization pulse signal is obtained, thereby obtaining the original acquisition data corresponding to several frequency multiplication pulse signals, and acquiring the pulse tag of the first frequency multiplication pulse signal generated by the previous frequency multiplication process, so as to associate the pulse tag with the corresponding original acquisition data. In this step, for each frequency multiplication pulse signal obtained by the current frequency multiplication process, the data acquisition board can latch and sample the data at the moment the current frequency multiplication pulse signal arrives, that is, obtain the original acquisition data corresponding to a frequency multiplication pulse signal, thereby obtaining the original acquisition data corresponding to several frequency multiplication pulse signals one by one.
[0044] In this step, since the first harmonic pulse signal is equipped with a pulse tag, the raw acquired data can be associated with the pulse tag when acquiring data based on the first harmonic pulse signal. For non-first harmonic pulse signals, since they are not equipped with pulse tags, their corresponding raw acquired data also lacks an associated pulse tag. In another approach, since the first harmonic pulse signal is equipped with a first pulse tag and non-first harmonic pulse signals are equipped with a second pulse tag, the raw acquired data corresponding to the first harmonic pulse signal is associated with the first pulse tag, and the non-first harmonic pulse signals are associated with the second pulse tag.
[0045] In step S104, each data acquisition board stores the current raw acquisition data and the pulse tag of the pulse signal corresponding to the current raw acquisition data in the order of acquisition time into the data storage queue corresponding to each data acquisition board. After data acquisition is completed for each detection position, the raw acquisition data is fused based on the pulse tag corresponding to each raw acquisition data in each data storage queue to obtain the fused target acquisition data.
[0046] In the specific implementation process of this step, a corresponding storage queue can be pre-configured for each data acquisition board. Thus, when each data acquisition board sequentially acquires data based on the pulse signals of the frequency-doubled pulse sequence, it can store the acquired raw data into the corresponding data storage queue in real time. When storing the raw acquired data, the pulse tags associated with the raw acquired data can also be stored in the data storage queue.
[0047] After each data acquisition board has synchronously completed the data acquisition of all locations to be detected, it can fuse the original data according to the pulse tags corresponding to each original data to obtain the target data.
[0048] In the data acquisition method of this application, each data acquisition board simultaneously acquires a synchronization pulse signal, thereby generating the same frequency-doubled pulse signal. This allows each data acquisition board to perform high-frequency data acquisition based on the same frequency-doubled pulse signal, meaning high-frequency data acquisition is performed for each synchronization pulse signal, increasing the data acquisition frequency and making the acquired data more comprehensive and reliable. Each data acquisition board configures a pulse tag for the original acquisition data corresponding to the first frequency-doubled pulse signal obtained from the current frequency-doubled processing, achieving labeling of each high-frequency sampling / acquisition based on the pulse tag. Simultaneously, it marks the acquisition position corresponding to the frequency-doubled pulse signal, facilitating accurate fusion of acquisition data / sampled data corresponding to the same acquisition position during subsequent data fusion. In other words, it achieves the fusion of the original acquisition data from each data acquisition board under the same frequency-doubled pulse signal for the same high-frequency sampling, resulting in more accurate data fusion results and ultimately obtaining high-frequency and accurate target acquisition data.
[0049] Based on the above embodiments, another embodiment of this application provides a data acquisition method, including the following steps: Step S201: Generate a common clock based on the data fusion board; In this step, after the data fusion board is powered on, the crystal oscillator provides the source clock to the clock chip, and the clock chip can then generate the same source clock via FPGA configuration. Step S202: The current synchronization pulse signal is generated by the data fusion board based on the three-phase quadrature pulse signal generated by the encoder group; In this step, the three-phase quadrature pulse signal is generated in real time by the encoder group when the object to be detected moves to the current position to be detected.
[0050] In other words, as the object to be detected moves with the motion table, the encoder group generates a three-phase quadrature pulse signal in real time based on the position change of the object to be detected, i.e., an ABZ signal. Then, the data fusion board generates the current synchronization pulse signal based on the three-phase quadrature pulse signal. The data fusion board sends the current synchronization pulse signal to each data acquisition board so that each data acquisition board can synchronously acquire the synchronization pulse signal corresponding to the detection position, which facilitates subsequent high-frequency sampling / high-frequency data acquisition based on the pulse synchronization information.
[0051] Step S203: Use the data fusion board to send the current synchronization pulse signal and the same source clock to each data acquisition board so that each data acquisition board can synchronously acquire the current synchronization pulse signal and the same source clock. In this example, the number of data acquisition boards is at least two.
[0052] In step S204, each data acquisition board synchronously acquires a source clock and a synchronization pulse signal. Each data acquisition board generates an acquisition reference clock based on the source clock so that each data acquisition channel in each data acquisition board can synchronously start data acquisition. Each data acquisition board performs current frequency multiplication processing based on the current synchronization pulse signal by a predetermined number of multiplications to generate each multiplication pulse signal in sequence. In this step, since each data acquisition board contains multiple analog-to-digital converters (ADCs), and each ADC can contain two data acquisition channels, each data acquisition board can contain 2n data acquisition channels, where n represents the number of ADCs. To ensure that all 2n data acquisition channels can start data acquisition simultaneously (i.e., ensure that n ADCs start data acquisition at the same time), the data acquisition board needs to acquire a common clock source. Then, based on this common clock source, an initial reference clock is generated. This initial reference clock is then split into multiple paths by a clock fan-out buffer chip to obtain a target reference clock corresponding to each ADC. Thus, multiple ADCs can perform synchronous sampling based on the same target reference clock, ensuring that each ADC starts data acquisition at the same time. Because the common clock source obtained by each data acquisition board is the same (i.e., the clocks are from the same source), the data acquired by the ADCs is synchronous. That is, the starting data acquisition time of each ADC in the same data acquisition board is the same, and the starting data acquisition time of each ADC in different data acquisition boards is also the same.
[0053] In the specific implementation of this step, each data acquisition board can simultaneously perform frequency multiplication processing at a predetermined multiplication factor, such as simultaneously performing 5x or 8x frequency multiplication processing, thereby generating each multiplied frequency pulse signal sequentially. At the same time, the first pulse signal in this frequency multiplication processing can be configured with a synchronization pulse / first pulse tag, while the remaining pulse signals can be configured with a second pulse tag, or no tag can be configured.
[0054] In this step, each data acquisition board performs a predetermined number of frequency multiplications on the current synchronization pulse signal to generate each frequency multiplication pulse signal sequentially. Specifically, this includes: each data acquisition board determining the current pulse period corresponding to the current synchronization pulse signal based on the current synchronization pulse signal and the previous synchronization pulse signal; and generating each frequency multiplication pulse signal sequentially according to the predetermined number of frequency multiplications based on the current pulse period. That is, the following two frequency multiplication methods can be used during the frequency multiplication process: Method 1: Each data acquisition board determines the current pulse period based on the start time of the current synchronization pulse signal and the start time of the previous synchronization pulse signal; Method 2: Each data acquisition board determines the current pulse period based on the end time of the current synchronization pulse signal and the end time of the previous synchronization pulse signal.
[0055] Step S205: Each data acquisition board sequentially acquires data from the current detection position based on the frequency multiplication pulse signal generated by the current frequency multiplication process until the next synchronization pulse signal is obtained, thereby obtaining the original acquisition data corresponding to several frequency multiplication pulse signals, and acquiring the pulse tag of the first frequency multiplication pulse signal generated by the previous frequency multiplication process, so as to associate the pulse tag with the corresponding original acquisition data. In the specific implementation of this step, since the period interval corresponding to each synchronization pulse is different, there may be a problem that the high-frequency acquisition only captures the middle part, that is, the next synchronization pulse signal is received.
[0056] like Figure 2 As shown, there are four synchronization pulses (synchronization pulse 1, synchronization pulse 2, synchronization pulse 3, and synchronization pulse 4). It can be seen that the pulse period t corresponding to each synchronization pulse is not the same. The pulse period corresponding to synchronization pulse 2 is t0, the pulse period corresponding to synchronization pulse 3 is t1, and the pulse period corresponding to synchronization pulse 4 is t2.
[0057] Therefore, theoretically, each data acquisition board will generate three sets of pulse sequences, each containing eight harmonic pulse signals, so that each data acquisition board can sequentially acquire data based on each harmonic pulse signal. However, for the second set of pulse sequences a / the second high-frequency acquisition, when data acquisition for the seventh harmonic pulse signal 27 is completed but data acquisition for the eighth harmonic pulse signal 28 has not yet begun, the next synchronization pulse signal has already arrived. Therefore, for the current harmonic processing, only the data acquisition for the first seven harmonic pulse signals is completed.
[0058] In other words, if the pulse period of the next synchronization pulse signal is greater than the pulse period of the current synchronization pulse signal (i.e., the pulse period t1 corresponding to the third synchronization pulse signal is greater than the pulse period t0 corresponding to the second synchronization pulse signal), then all eight frequency-multiplied pulse signals (21-28) generated sequentially for the second synchronization pulse signal can complete data acquisition. If the pulse period of the next synchronization pulse signal is less than the pulse period of the current synchronization pulse signal (i.e., the pulse period t2 corresponding to the fourth synchronization pulse is less than the pulse period t1 corresponding to the third synchronization pulse), then only a portion of the pulse signals in each frequency-multiplied pulse signal (31-38) generated for the third synchronization pulse signal can complete data acquisition.
[0059] Therefore, when there are multiple data acquisition boards, and it cannot be guaranteed that the pulse period of the next synchronization pulse signal will always be greater than the pulse period of the current synchronization pulse signal, it is also impossible to guarantee that each data acquisition board can complete data acquisition for each frequency harmonic pulse signal generated theoretically. That is, sometimes it will complete data acquisition for some frequency harmonic pulse signals. For example, for an 8th frequency harmonic pulse sequence, it will only complete data acquisition for the first 5 frequency harmonic pulse signals in the sequence.
[0060] Furthermore, due to potential synchronization pulse loss or slight timing deviations in synchronization pulse sampling during data acquisition, the number of harmonic pulses generated sequentially by each data acquisition board for the same synchronization pulse signal, and the number of harmonic pulses acquired by each board, may differ. For example, given eight harmonic pulse signals generated sequentially by different data acquisition boards for the same synchronization pulse, board a might only acquire data for the first five harmonic pulse signals, board b for the first six, and board c for the first seven—meaning they only acquire data for a portion of the harmonic pulses in the current theoretical harmonic pulse sequence. Consequently, each data acquisition board can only obtain raw acquisition data corresponding one-to-one with a few harmonic pulse signals in the current theoretical harmonic pulse sequence. In other words, increasing the data acquisition frequency / sampling frequency can lead to misalignment of high-harmonic data from different data acquisition boards, increasing the difficulty of data matching and hindering subsequent data fusion.
[0061] Step S206: Each data acquisition board stores the original acquired data, the pulse tag associated with the original acquired data, and the data in the order of acquisition time into the data storage queue corresponding to each data acquisition board. In this step, the pulse tags include: a first pulse tag corresponding to the first harmonic pulse signal and a second pulse tag corresponding to non-first harmonic pulse signals. After obtaining the raw acquisition data, the raw acquisition data can be associated with the pulse tags of its corresponding harmonic pulse signals and then stored in the data storage queue.
[0062] Step S207: After data acquisition is completed for each location to be detected, the original data is fused based on the pulse tags corresponding to each original data acquisition in each data storage queue to obtain the fused target acquisition data.
[0063] In this step, the raw acquired data in each data storage queue can be fused based on the data fusion board. Specifically, following a first-in-first-out reading order, raw acquired data at the same sorting position can be read simultaneously from each data storage queue to obtain each piece of data to be fused. Based on the pulse tag corresponding to each piece of data to be fused, the matching result of each piece of data to be fused is determined. If the matching result is successful, the data to be fused is fused to obtain sub-fused data corresponding to the sorting position, and the target acquired data is obtained based on the sub-fused data corresponding to each sorting position. If the matching result is unsuccessful, the raw acquired data without a pulse tag is deleted, and the sorting position of each unfused raw acquired data in the corresponding data storage queue is updated to reread each piece of data to be fused.
[0064] That is, such as Figure 3 As shown, after data acquisition is completed, the original acquired data at sort position 1 in each data storage queue can be read, thus obtaining the data to be fused corresponding to each data acquisition board. Then, the data to be fused is matched according to the pulse label of each data to be fused. Since the pulse labels of each data to be fused are consistent and are synoc0, that is, the pulse labels are all synchronization pulse / first pulse label, it can be determined that the matching result of each data to be fused is a successful match. Then, the data to be fused can be fused to obtain the target sub-fused data corresponding to sort position 1.
[0065] Similarly, the original acquired data at sort position 2 in each data storage queue is read to obtain the data to be fused corresponding to each data acquisition board; then, each data to be fused is matched according to the pulse label of each data to be fused. Since the pulse labels of each data to be fused are consistent and are 1 respectively, that is, the pulse labels are all frequency doubling pulses / second pulse labels, it can be determined that the match is successful, and then the data to be fused can be fused to obtain the target sub-fused data corresponding to sort position 2.
[0066] Similarly, when the raw acquisition data at position 7 in each data storage queue is read, the data to be fused corresponding to each data acquisition board is obtained. Then, the data to be fused is matched according to the pulse label of each data to be fused. Since the pulse labels of the data to be fused are inconsistent, the pulse label of the data to be fused corresponding to data acquisition board 1 / data storage queue 1 is sync1, the pulse label of the data to be fused corresponding to data acquisition board 2 / data storage queue 2 is 6, and the pulse label of the data to be fused corresponding to data acquisition board n / data storage queue n is 6. Therefore, it can be determined that the matching result of each data to be fused is unsuccessful. Then, the data to be fused with the second pulse label is deleted, that is, the data to be fused at position 7 in data storage queue 2 is deleted, and the data to be fused at position 7 in data storage queue n is also deleted. Then, the sorting position of each unfused raw acquisition data in data storage queue 2 and data storage queue n is updated. That is, the sorting position of the remaining unfused raw acquisition data in data storage queue 2 is decreased by 1 in turn, that is, the raw acquisition data originally at position 8 is updated to sorting position 7, the raw acquisition data originally at sorting position 9 is updated to sorting position 8, and so on. After the sorting position is updated, the data to be merged can be reread for sorting position 7.
[0067] In this embodiment, as Figure 3 As shown, after the data storage queue n updates the sorting position, the pulse label of the original collected data at sorting position 7 is still the second pulse label 7. Therefore, it is inconsistent with the pulse label at sorting position 7 in data storage queue 1 and data storage queue 2. Therefore, it is necessary to further delete the original collected data at sorting position 7 of data storage queue n until the pulse label of the original collected data at the same sorting position is consistent.
[0068] In this embodiment, the original acquired data are fused by combining the pulse tags corresponding to each original acquired data, which makes the final fusion result more accurate and reliable, laying the foundation for subsequent accurate defect detection based on the fused target acquired data.
[0069] In this embodiment, to further ensure more accurate and reliable data fusion, each data acquisition board, while performing frequency multiplication processing, can utilize the data fusion board to perform a predetermined number of frequency multiplications based on the current synchronization pulse signal to sequentially generate reference frequency multiplication pulse signals. A pulse tag is configured for the first reference frequency multiplication pulse signal obtained from the current frequency multiplication processing, and stored in the tag storage queue corresponding to the data fusion board, such as... Figure 4As shown, the data acquisition board and data fusion board can generate frequency-multiplying pulse signals sequentially according to a predetermined number of multiplying pulses based on the synchronization pulse signal, and configure a pulse tag for the first frequency-multiplying pulse number. Therefore, data fusion can be further combined with a tag storage queue during data fusion. That is, the data fusion process at this time is: based on the pulse tags corresponding to each original acquired data in each data storage queue and each pulse tag in the tag storage queue, data fusion is performed on each original acquired data to obtain the fused target acquired data.
[0070] Specifically, the data fusion process is as follows: Following a first-in, first-out (FIFO) reading order, pulse tags and original acquired data at the same sorting position are read simultaneously from the tag storage queue and each data storage queue to obtain pulse tags and data to be fused; based on the pulse tags corresponding to each data to be fused and the pulse tags read from the tag storage queue, the matching result of each data to be fused is determined; if the matching result is successful, the data to be fused is fused to obtain sub-fused data corresponding to the sorting position, and the target acquired data is obtained based on the sub-fused data corresponding to each sorting position; if the matching result is unsuccessful, the data to be fused with the second pulse tag is deleted, as is the second pulse tag at the corresponding sorting position in the tag storage queue, and the sorting positions of the unfused original acquired data in the corresponding data storage queue and the remaining pulse tags in the tag storage queue are updated, so that each data to be fused and the pulse tags are read again. In this embodiment, the pulse tag includes a first pulse tag corresponding to the first harmonic pulse signal and a second pulse tag corresponding to a non-first harmonic pulse signal.
[0071] In this embodiment, by using a data fusion board to perform frequency multiplication on the synchronization pulse signal to generate reference frequency multiplication pulses, it is possible to realize pulse tags based on the reference frequency multiplication pulses and mark the position of the object to be detected at the time of data acquisition. This allows the pulse tags of the reference frequency multiplication pulses to be further combined during subsequent data fusion, ensuring that the final fusion result is more accurate and reliable, and also enabling the knowledge of the position of the data collected from each sub-target after fusion.
[0072] Another embodiment of this application provides a data acquisition system, such as Figure 5 As shown, it includes: several data acquisition boards and a data fusion board; Each of the data acquisition boards is used to synchronously acquire the current synchronization pulse signal corresponding to the current position to be detected; Each data acquisition board is used to perform current frequency multiplication processing based on the current synchronization pulse signal by a predetermined number of multiplications, so as to generate each multiplication pulse signal in sequence; Each data acquisition board is used to sequentially acquire data from the current detection position based on the frequency multiplication pulse signal generated by the current frequency multiplication process until the next synchronization pulse signal is acquired, obtain the original acquisition data corresponding to several frequency multiplication pulse signals, and acquire the pulse tag of the first frequency multiplication pulse signal generated by the previous frequency multiplication process, so as to associate the pulse tag with the corresponding original acquisition data. Each data acquisition board is used to store the raw acquired data, the pulse tags associated with the raw acquired data, and in chronological order of acquisition time into the data storage queue corresponding to each data acquisition board. The data fusion board is used to fuse the original acquired data based on the pulse tags corresponding to each original acquired data in each data storage queue after data acquisition is completed for each location to be detected, so as to obtain the fused target acquired data.
[0073] In this embodiment, each data acquisition board is specifically used to: determine the current pulse period corresponding to the current synchronization pulse signal based on the current synchronization pulse signal and the previous synchronization pulse signal; and generate each multiplied pulse signal sequentially according to a predetermined number of multiplied frequencies based on the current pulse period.
[0074] In this embodiment, each data acquisition board is specifically used to: determine the current pulse period based on the start time of the current synchronization pulse signal and the start time of the previous synchronization pulse signal; or, each data acquisition board determines the current pulse period based on the end time of the current synchronization pulse signal and the end time of the previous synchronization pulse signal.
[0075] In this embodiment, the predetermined number of frequency multiplications is greater than or equal to 3.
[0076] In this embodiment, the data fusion board is specifically used to: read each original acquisition data at the same sorting position simultaneously for each data storage queue according to the first-in-first-out reading order to obtain each data to be fused; determine the matching result of each data to be fused based on the pulse tag corresponding to each data to be fused; if the matching result is successful, perform data fusion on the data to be fused to obtain sub-fused data corresponding to the sorting position, and obtain the target acquisition data based on the sub-fused data corresponding to each sorting position; if the matching result is unsuccessful, delete the original acquisition data without pulse tags and update the sorting position of each unfused original acquisition data in the corresponding data storage queue to reread each data to be fused.
[0077] In this embodiment, the data fusion board is specifically used to: count the pulse tags corresponding to each piece of data to be fused; determine that the matching result of each piece of data to be fused is a successful match when each piece of data to be fused is configured with a pulse tag or the pulse tags are consistent; and determine that the matching result of each piece of data to be fused is a failed match when each piece of data to be fused is not configured with a pulse tag or the pulse tags are inconsistent.
[0078] In this embodiment, the data fusion board is further configured to: perform a predetermined number of frequency multiplications on the current synchronization pulse signal to generate reference frequency multiplication pulse signals sequentially; configure a pulse tag for the first reference frequency multiplication pulse signal obtained by the current frequency multiplication process, and store it in a tag storage queue corresponding to the data fusion board; The data fusion board is specifically used to: perform data fusion on each original acquired data based on the pulse tags corresponding to each original acquired data in each data storage queue and each pulse tag in the tag storage queue, to obtain the fused target acquired data.
[0079] In this embodiment, the data fusion board is further used to: generate the current synchronization pulse signal based on the three-phase quadrature pulse signal generated by the encoder group; send the current synchronization pulse signal to several data acquisition boards so that the several data acquisition boards can synchronously acquire the current synchronization pulse signal; the three-phase quadrature pulse signal is generated in real time by the encoder group when the object to be detected moves to the current position to be detected.
[0080] In this embodiment, each data acquisition board contains several data acquisition channels. When acquiring the synchronization pulse signal, the data acquisition board is also used to: synchronously acquire the same source clock; and generate acquisition reference clocks based on the same source clocks so that each data acquisition channel in each data acquisition board can start data acquisition synchronously.
[0081] In this embodiment, the data fusion board is further used to: generate the same source clock; and send the same source clock to several data acquisition boards so that the several data acquisition boards can synchronously acquire the same source clock.
[0082] In this embodiment, the data fusion board is also used to: pre-configure a data storage queue for each data acquisition board.
[0083] In this application, each data acquisition board simultaneously acquires a synchronization pulse signal, thereby generating the same frequency-doubled pulse signal. This allows each data acquisition board to perform high-frequency data acquisition based on the same frequency-doubled pulse signal, meaning high-frequency data acquisition is performed for each synchronization pulse signal, increasing the data acquisition frequency and making the acquired data more comprehensive and reliable. Each data acquisition board configures a pulse tag for the original acquisition data corresponding to the first frequency-doubled pulse signal obtained from the current frequency-doubled processing, achieving labeling of each high-frequency sampling / acquisition based on the pulse tag. Simultaneously, it marks the acquisition position corresponding to the frequency-doubled pulse signal, facilitating accurate fusion of acquisition data / sampled data corresponding to the same acquisition position during subsequent data fusion. In other words, it achieves the fusion of the original acquisition data from each data acquisition board under the same frequency-doubled pulse signal for the same high-frequency sampling, resulting in more accurate data fusion results and ultimately obtaining high-frequency and accurate target acquisition data.
[0084] The following describes the data acquisition process of the data acquisition system in this application, using a specific data acquisition scenario as an example. In this embodiment, the data acquisition system includes at least two data acquisition boards and a data fusion board; each acquisition board has one or more ADC acquisition channels. The data fusion board and the data acquisition boards are bidirectionally connected. The data fusion board primarily provides a shared clock, synchronization pulse signal, and other control commands to the data acquisition boards; the data acquisition boards then upload the acquired data to the data fusion board. For example... Figure 6 As shown, in this embodiment, the data acquisition system performs the following process during data acquisition: Step 1: After the data fusion board is powered on, the crystal oscillator provides the source clock to the clock chip, and the clock chip generates the same source clock through the FPGA configuration; at the same time, the data fusion board receives the ABZ signal of the encoder group, records the position in each direction according to the characteristics of the ABZ signal, and generates the current synchronization pulse signal after processing the ABZ signal. Step 2: The data fusion board sends the same clock and synchronization pulse signal to each data acquisition board; In this step, after receiving the same source clock and synchronization pulse signal, each data acquisition board simultaneously executes the following steps a and b.
[0085] Step a-1: After each data acquisition board receives the same source clock, it is used as the input clock of the local clock chip. After being configured by the FPGA, multiple clocks required by the data acquisition board are generated, one of which is the ADC acquisition reference clock / initial reference clock.
[0086] Step a-2: Each data acquisition board will generate the ADC acquisition reference clock / initial reference clock and then split it into multiple target reference clocks through a clock fan-out buffer chip, so as to supply multiple ADCs for synchronous sampling. In this embodiment, it is required that steps 1, a-1 to a-2 above are all of equal length on the hardware traces, thus completing the conditions for synchronous sampling of multiple boards and multiple ADCs.
[0087] Step b-1: Each data acquisition board performs current frequency multiplication processing based on the synchronization pulse signal to generate each frequency multiplication pulse signal in sequence, for example, to obtain 8th frequency multiplication pulses; While the data acquisition board is performing current frequency multiplication processing, the data fusion board is also performing current frequency multiplication processing on the synchronization pulse signal to obtain the frequency multiplication pulse signal; In step b-2, each ADC path in each data acquisition board will simultaneously acquire data from the target object based on the current frequency-doubled pulse signal obtained by frequency doubling, and obtain sub-data corresponding to the ADC acquisition path. Multiple sub-data are merged into one original acquisition data corresponding to the frequency-doubled pulse signal. Each data acquisition board configures a pulse tag for the frequency-doubled pulse signal to distinguish it from the first frequency-doubled pulse signal and non-first frequency-doubled pulse signals generated by the current frequency doubling process. Thus, each data acquisition board will send the original acquisition data with the pulse tag to the data fusion board through the optical interface. The pulse tags include a first pulse tag for the first frequency-doubled pulse signal and a second pulse tag for pulse signals other than the first frequency-doubled pulse signal. That is, for each synchronization pulse signal, the data acquisition board assigns a first pulse tag / synchronization pulse tag to the first pulse signal obtained after frequency doubling, and assigns a second pulse tag / asynchronization pulse tag to the remaining pulse signals obtained after frequency doubling, thereby marking each high-frequency synchronous sampling / high-frequency synchronous acquisition. In this embodiment, high-frequency synchronous sampling / high-frequency synchronous acquisition can be understood as: several data acquisitions performed for each synchronization pulse signal.
[0088] Step 3: After receiving the raw acquisition data and corresponding pulse tags sent by each data acquisition board through the optical interface, the data fusion board stores the raw acquisition data and pulse tag values in the data storage queue FIFO corresponding to the data acquisition board. In this embodiment, after the data fusion board generates a reference frequency-doubled pulse signal based on the synchronization pulse signal, it will also configure a pulse tag for the reference frequency-doubled pulse signal obtained by frequency doubling, and store the pulse tag in the tag storage queue corresponding to the data fusion board.
[0089] Step 4: After all data acquisition is completed, the data fusion board can perform data fusion on each original acquired data based on each pulse tag in the tag storage queue and the pulse tag corresponding to each original acquired data in the data storage queue.
[0090] In other words, the data fusion board reads pulse tags and raw acquisition data simultaneously from the same sorting position in the tag storage queue and each data storage queue according to the first-in-first-out reading order, to obtain pulse tags and data to be fused; based on the pulse tags corresponding to each data to be fused and the pulse tags read from the tag storage queue, the matching result of each data to be fused is determined; if the matching result is successful, the data to be fused is fused to obtain sub-fused data corresponding to the sorting position, and the target acquisition data is obtained based on the sub-fused data corresponding to each sorting position; if the matching result is unsuccessful, the data to be fused with the second pulse tag is deleted, as is the second pulse tag at the corresponding sorting position in the tag storage queue, and the sorting positions of the unfused raw acquisition data in the corresponding data storage queue and the remaining pulse tags in the tag storage queue are updated, so as to reread each data to be fused and the pulse tags.
[0091] In this embodiment, a successful match is determined when the pulse tag read from the same sorting position in the tag storage queue matches the pulse tags of the data to be fused read from the same sorting position in each data storage pair; otherwise, a match is determined when the pulse tag at the same sorting position does not match the pulse tag corresponding to any data to be fused. The original acquisition data with the second pulse tag is then deleted, or the second pulse tag at the corresponding sorting position in the tag storage queue is deleted. The sorting positions of the unfused original acquisition data in the corresponding data storage queue and the remaining pulse tags in the tag storage queue are then updated. This process is repeated until the fusion is complete.
[0092] In this application, the data fusion board processes the signals received from the encoder group to generate a pulse acquisition synchronization signal. While providing a common clock, it distributes the pulse signal to each data acquisition board as an acquisition signal, thereby ensuring that each data acquisition board acquires data simultaneously. Furthermore, the pulse signal directly corresponds to the actual physical position of the encoder group, enabling the sampling point information to accurately and directly reflect the state of the object under inspection at that position.
[0093] Meanwhile, after receiving the pulse signal, the data acquisition board in this application first multiplies the pulse signal to the required sampling rate. During this process, the first multiplied pulse is designated as a synchronization pulse tag / first pulse tag, while other pulse signals not marked are either left unmarked or marked as second pulse tags. Thus, the data acquisition board acquires ADC data based on the pulse signal and marks whether the acquired data at the current moment was acquired by the synchronization pulse / first multiplied pulse signal. The frequency multiplication operation ensures a one-to-one correspondence between physical locations and the required sampling rate data, allowing the acquisition system to change the sampling frequency and more flexibly adapt to diverse engineering environments with varying sampling rate requirements. Furthermore, the frequency multiplication operation ensures that the pulse frequency to be transmitted is not too high, making it less susceptible to interference and more robust to stable signal transmission requirements.
[0094] Furthermore, the data fusion board further multiplies and marks the original pulse signals distributed to the data acquisition board, and binds the first multiplied pulse signal with the encoder group position information and stores it in the matching FIFO. Similarly, the data received by the data fusion board from each data acquisition board is also placed into the corresponding matching FIFO. During subsequent data fusion, if the data to be fused matches, it is read from the FIFO; otherwise, asynchronous pulse acquisition data is discarded. The data acquisition system in this application greatly reduces the difficulty of data acquisition, matching, and fusion, especially in scenarios requiring simultaneous processing by numerous acquisition channels, ensuring the accuracy and reliability of the fused target acquisition data while achieving high-frequency sampling.
[0095] Another embodiment of this application provides a storage medium storing a computer program, which, when executed by a processor, implements the following method steps: Step 1: Several data acquisition boards synchronously acquire the current synchronization pulse signal corresponding to the current position to be detected; Step 2: Each data acquisition board generates a current frequency-doubled pulse sequence based on the current synchronization pulse signal, and configures a first pulse tag for the first pulse signal in the current frequency-doubled pulse sequence and a second pulse tag for the remaining pulse signals; Step 3: Each data acquisition board acquires data from the current detection position sequentially based on the current frequency doubling pulse sequence until the next synchronization pulse signal is obtained, thereby obtaining the current raw acquisition data that corresponds one-to-one with several pulse signals in the current frequency doubling pulse sequence; Step 4: Each data acquisition board stores the current raw acquisition data and the pulse tag of the pulse signal corresponding to the current raw acquisition data in the order of acquisition time into the data storage queue corresponding to each data acquisition board. After data acquisition is completed for each detection position, the raw acquisition data is fused based on the pulse tag corresponding to each raw acquisition data in each data storage queue to obtain the fused target acquisition data.
[0096] The specific implementation process of the above method steps can be found in the embodiments of any of the above data acquisition methods, and will not be repeated here.
[0097] In this application, each data acquisition board simultaneously acquires a synchronization pulse signal, thereby generating the same frequency-doubled pulse signal. This allows each data acquisition board to perform high-frequency data acquisition based on the same frequency-doubled pulse signal, meaning high-frequency data acquisition is performed for each synchronization pulse signal, increasing the data acquisition frequency and making the acquired data more comprehensive and reliable. Each data acquisition board configures a pulse tag for the original acquisition data corresponding to the first frequency-doubled pulse signal obtained from the current frequency-doubled processing, achieving labeling of each high-frequency sampling / acquisition based on the pulse tag. Simultaneously, it marks the acquisition position corresponding to the frequency-doubled pulse signal, facilitating accurate fusion of acquisition data / sampled data corresponding to the same acquisition position during subsequent data fusion. In other words, it achieves the fusion of the original acquisition data from each data acquisition board under the same frequency-doubled pulse signal for the same high-frequency sampling, resulting in more accurate data fusion results and ultimately obtaining high-frequency and accurate target acquisition data.
[0098] Another embodiment of this application provides an electronic device, such as... Figure 7 As shown, it includes at least a memory 1 and a processor 2. The memory 1 stores a computer program, and the processor 2 performs the following method steps when executing the computer program in the memory 1: Step 1: Several data acquisition boards synchronously acquire the current synchronization pulse signal corresponding to the current position to be detected; Step 2: Each data acquisition board generates a current frequency-doubled pulse sequence based on the current synchronization pulse signal, and configures a first pulse tag for the first pulse signal in the current frequency-doubled pulse sequence and a second pulse tag for the remaining pulse signals; Step 3: Each data acquisition board acquires data from the current detection position sequentially based on the current frequency doubling pulse sequence until the next synchronization pulse signal is obtained, thereby obtaining the current raw acquisition data that corresponds one-to-one with several pulse signals in the current frequency doubling pulse sequence; Step 4: Each data acquisition board stores the current raw acquisition data and the pulse tag of the pulse signal corresponding to the current raw acquisition data in the order of acquisition time into the data storage queue corresponding to each data acquisition board. After data acquisition is completed for each detection position, the raw acquisition data is fused based on the pulse tag corresponding to each raw acquisition data in each data storage queue to obtain the fused target acquisition data.
[0099] The specific implementation process of the above method steps can be found in the embodiments of any of the above data acquisition methods, and will not be repeated here.
[0100] In this application, each data acquisition board simultaneously acquires a synchronization pulse signal, thereby generating the same frequency-doubled pulse signal. This allows each data acquisition board to perform high-frequency data acquisition based on the same frequency-doubled pulse signal, meaning high-frequency data acquisition is performed for each synchronization pulse signal, increasing the data acquisition frequency and making the acquired data more comprehensive and reliable. Each data acquisition board configures a pulse tag for the original acquisition data corresponding to the first frequency-doubled pulse signal obtained from the current frequency-doubled processing, achieving labeling of each high-frequency sampling / acquisition based on the pulse tag. Simultaneously, it marks the acquisition position corresponding to the frequency-doubled pulse signal, facilitating accurate fusion of acquisition data / sampled data corresponding to the same acquisition position during subsequent data fusion. In other words, it achieves the fusion of the original acquisition data from each data acquisition board under the same frequency-doubled pulse signal for the same high-frequency sampling, resulting in more accurate data fusion results and ultimately obtaining high-frequency and accurate target acquisition data.
[0101] The above embodiments are merely exemplary embodiments of this application and are not intended to limit this application. The scope of protection of this application is defined by the claims. Those skilled in the art can make various modifications or equivalent substitutions to this application within its substance and scope of protection, and such modifications or equivalent substitutions should also be considered to fall within the scope of protection of this application.
Claims
1. A data acquisition method, characterized in that, include: Several data acquisition boards synchronously acquire the current synchronization pulse signal corresponding to the current position to be detected; Each data acquisition board performs current frequency multiplication processing based on the current synchronization pulse signal by a predetermined number of multiplications to generate each multiplication pulse signal in sequence; Each data acquisition board sequentially acquires data from the current detection position based on the frequency multiplication pulse signal generated by the current frequency multiplication process until the next synchronization pulse signal is obtained. It obtains the original acquisition data corresponding to several frequency multiplication pulse signals and acquires the pulse tag of the first frequency multiplication pulse signal generated by the current frequency multiplication process, so as to associate the pulse tag with the corresponding original acquisition data. Each data acquisition board stores the original acquired data and the pulse tags associated with the original acquired data in the order of acquisition time into the data storage queue corresponding to each data acquisition board. After data acquisition is completed for each location to be detected, the original acquired data is fused based on the pulse tags corresponding to each original acquired data in each data storage queue to obtain the fused target acquired data.
2. The method as described in claim 1, characterized in that, Each data acquisition board performs current frequency multiplication processing based on the current synchronization pulse signal by a predetermined number of multiplications to sequentially generate each multiplication pulse signal, specifically including: Each data acquisition board determines the current pulse period corresponding to the current synchronization pulse signal based on the current synchronization pulse signal and the previous synchronization pulse signal; Based on the current pulse period, each frequency harmonic pulse signal is generated sequentially according to a predetermined number of harmonic harmonics.
3. The method as described in claim 2, characterized in that, Each data acquisition board determines the current pulse period corresponding to the current synchronization pulse signal based on the current synchronization pulse signal and the previous synchronization pulse signal, specifically including: Each data acquisition board determines the current pulse period based on the start time of the current synchronization pulse signal and the start time of the previous synchronization pulse signal; Alternatively, each data acquisition board determines the current pulse period based on the end time of the current synchronization pulse signal and the end time of the previous synchronization pulse signal.
4. The method as described in claim 1, characterized in that, The process of fusing the original acquired data based on the pulse tags corresponding to each original acquired data in each data storage queue to obtain the fused target acquired data specifically includes: Following the first-in-first-out reading order, the original collected data at the same sorting position in each data storage queue are read simultaneously to obtain each data to be fused; Based on the pulse labels corresponding to each piece of data to be fused, the matching results of each piece of data to be fused are determined; If the matching result is successful, the data to be fused is fused to obtain sub-fused data corresponding to the sorting position, and the target collected data is obtained based on the sub-fused data corresponding to each sorting position. If the matching result is unsuccessful, delete the original acquisition data that is not configured with pulse tags, and update the sorting position of each unfused original acquisition data in the corresponding data storage queue, so as to reread each data to be fused.
5. The method as described in claim 4, characterized in that, The determination of the matching result of each data to be fused based on the pulse tag corresponding to each data to be fused specifically includes: Statistical analysis was performed on the pulse labels corresponding to each piece of data to be fused; When all data to be fused are configured with pulse tags or have the same pulse tags, the matching result of each data to be fused is determined to be a successful match. If each piece of data to be fused is not configured with a pulse label at the same time, or if the pulse labels are inconsistent, the matching result of each piece of data to be fused is determined to be unsuccessful.
6. The method as described in claim 1, characterized in that, The method further includes: The data fusion board performs current frequency multiplication processing on the current synchronization pulse signal by a predetermined number of multiplications to generate each reference frequency multiplication pulse signal in sequence; Configure a pulse tag for the first reference frequency-doubled pulse signal obtained by the current frequency-doubled processing, and store it in the tag storage queue corresponding to the data fusion board; The process of fusing the original acquired data based on the pulse tags corresponding to each original acquired data in each data storage queue to obtain the fused target acquired data specifically includes: Based on the pulse tags corresponding to each original acquired data in each data storage queue and each pulse tag in the tag storage queue, the original acquired data are fused to obtain the fused target acquired data.
7. The method as described in claim 1, characterized in that, The method further includes: The current synchronization pulse signal is generated using the data fusion board based on the three-phase quadrature pulse signal generated by the encoder group; The data fusion board is used to send the current synchronization pulse signal to several data acquisition boards so that the several data acquisition boards can synchronously acquire the current synchronization pulse signal. The three-phase quadrature pulse signal is generated in real time by the encoder group when the object to be detected moves to the current detection position.
8. A data acquisition system, characterized in that, include: Several data acquisition boards and data fusion boards; Each of the data acquisition boards is used to synchronously acquire the current synchronization pulse signal corresponding to the current position to be detected; Each data acquisition board is used to perform current frequency multiplication processing based on the current synchronization pulse signal by a predetermined number of multiplications, so as to generate each multiplication pulse signal in sequence; Each data acquisition board is used to sequentially acquire data from the current detection position based on the frequency multiplication pulse signal generated by the current frequency multiplication process until the next synchronization pulse signal is acquired, obtain the original acquisition data corresponding to several frequency multiplication pulse signals, and acquire the pulse tag of the first frequency multiplication pulse signal generated by the current frequency multiplication process, so as to associate the pulse tag with the corresponding original acquisition data. Each data acquisition board is used to store the raw acquired data and the pulse tags associated with the raw acquired data in the order of acquisition time into the data storage queue corresponding to each data acquisition board. The data fusion board is used to perform data fusion on each original data acquisition data based on the pulse tag corresponding to each original data acquisition data in each data storage queue after data acquisition is completed for each location to be detected, so as to obtain the fused target acquisition data.
9. A storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the steps of the data acquisition method according to any one of claims 1-7.
10. An electronic device, characterized in that, It includes at least a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps of the data acquisition method according to any one of claims 1-7 when executing the computer program in the memory.
Citation Information
Patent Citations
A multi-source data synchronous acquisition system
CN109189717A
Data processing method, apparatus, and system, device, and storage medium
WO2023093054A1