A LIBS spectrometer synchronous spectral data acquisition method and system

By introducing data acquisition equipment and host computers into the LIBS spectrometer, synchronous acquisition of spectral channels is achieved, and the problem of insufficient synchronization accuracy in the LIBS system is solved, and the accuracy and timeliness of spectral data are improved.

CN118549412BActive Publication Date: 2024-11-01HANGZHOU HYPERSPECTRAL IMAGING TECH CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202411002869.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-11-01
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

The synchronization accuracy between laser pulses and spectrometer detectors in LIBS systems is insufficient, resulting in delays in signal acquisition time or advances, affecting the accuracy of data.

Method used

By introducing data acquisition equipment and host computers into the LIBS spectrometer, receiving instructions and parsing them to perform trigger operations, ensuring that each spectral channel collects data simultaneously, including receiving instructions, analyzing instructions, performing trigger operations, packaging and uploading data, realizing from visible light to Synchronous acquisition of infrared band range.

Benefits of technology

The synchronization accuracy and transmission efficiency of spectral data are improved, and the accuracy and timeliness of the total spectral data per frame are ensured, thereby ensuring the accuracy of the analyzed spectral image of each frame.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118549412B_ABST
    Figure CN118549412B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of data transmission, and discloses a method and system for synchronous spectral data acquisition of a LIBS spectrometer. The method sets each spectral channel respectively through a first instruction, so that each spectral channel respectively acquires each frame of spectral data of a corresponding band, and then packages each frame of spectral data acquired by each spectral channel, so as to realize synchronous acquisition of spectral data ranging from visible light to infrared band, and the communication connection between the first host computer, the second host computer and the data acquisition device and the data transmission between each unit in the data acquisition device ensure the speed of the first instruction transmission, spectral data acquisition, processing and transmission, and ensure the synchronization accuracy and transmission efficiency of the spectral data of each spectral channel under the same frame under the premise of meeting the spectral data band range, thereby ensuring the accuracy of each frame of spectral image parsed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission, and in particular to a method and system for synchronous spectrum data acquisition of a LIBS spectrometer. Background Art

[0002] LIBS (Laser-induced breakdown spectroscopy) spectrometer is a spectrometer that uses advanced analytical technology. It uses high-power laser to ablate the sample surface to generate plasma, and determines the material composition and content of the sample by analyzing the spectrum emitted by the plasma. In principle, LIBS can analyze samples in any physical state, including solid, liquid and gas, which enables it to provide rapid elemental analysis and is very useful for situations where material composition information needs to be obtained quickly.

[0003] In the LIBS system, the synchronization between the laser pulse and the spectrometer detector is very critical. The multi-channel LIBS fiber spectrometer in the related technology has a built-in linear CCD (charge-coupled device), which has low sensitivity and cannot collect nanosecond-level signals. The synchronization accuracy is insufficient, resulting in a delay or advance in signal acquisition time, affecting the accuracy of the data. Summary of the invention

[0004] In view of this, the present invention provides a LIBS spectrometer synchronous spectral data acquisition method and system to solve the problem that the synchronization accuracy of the LIBS system in the related art is insufficient, resulting in time delay or advance of signal acquisition, affecting data accuracy.

[0005] In a first aspect, the present invention provides a method for synchronous spectral data acquisition of a LIBS spectrometer, the method being executed by a data acquisition device in a synchronous spectral data acquisition system of a LIBS spectrometer; the synchronous spectral data acquisition system of the LIBS spectrometer further comprising a first host computer and a second host computer; the data acquisition device respectively establishes a communication connection with the first host computer and the second host computer; the method comprising:

[0006] Receive a first instruction from the first host computer; the first instruction includes the switch state, frame rate, exposure time, trigger mode, trigger delay and trigger frame number of each spectral channel;

[0007] Parse the first instruction, and perform a trigger operation according to the trigger mode, trigger delay, and trigger frame number corresponding to each spectral channel whose switch state is on, so that each spectral channel whose switch state is on synchronously collects spectral data of each frame according to the corresponding frame rate and exposure time;

[0008] The spectral data of each frame collected by each spectral channel are packaged to obtain the total spectral data of each frame and uploaded to the second host computer so that the second host computer can analyze the total spectral data of each frame to obtain the spectral image of each frame.

[0009] In an optional embodiment, each spectral channel whose switch state is on synchronously collects spectral data of each frame according to the corresponding frame rate and exposure time, including: for the target frame of the target spectral channel, driving the detector to expose according to the exposure time, so that the detector outputs spectral image data and ADC acquisition enable signal according to the exposure time; receiving the ADC acquisition enable signal to collect the spectral image data to obtain spectral data to be pre-packaged; pre-packaging the spectral data to be pre-packaged, the target frame number and the camera number of the detector corresponding to the target spectral channel to obtain pre-packaged spectral data; performing data correction processing on the pre-packaged spectral data to obtain corrected spectral data; packaging the packet header, image type, packet sequence number, data length, the corrected spectral data, temperature data, reserved bit, check bit and packet tail to obtain the spectral data of the target spectral channel in the target frame.

[0010] In an optional implementation, the spectral data of each frame collected by each spectral channel is packaged to obtain the total spectral data of each frame, including: for a target frame, the spectral data collected by each spectral channel in the target frame are spliced ​​head to tail in the order of spectral channel numbers to obtain the total spectral data of the target frame.

[0011] In a second aspect, the present invention provides a LIBS spectrometer synchronous spectral data acquisition system, the system comprising:

[0012] A first host computer is used to send a first instruction; the first instruction includes the switch state, frame rate, exposure time, trigger mode, trigger delay and trigger frame number of each spectral channel;

[0013] The second host computer is used to receive the total spectrum data of each frame, and analyze the total spectrum data of each frame to obtain the spectrum image of each frame;

[0014] The data acquisition device includes a data transmission unit, an instruction control unit and a data synchronization acquisition processing unit; the data transmission unit is communicatively connected to the first host computer for receiving the first instruction; the data transmission unit is also communicatively connected to the second host computer for uploading the total spectral data to the second host computer; the instruction control unit is used to parse the first instruction, and perform a trigger operation according to the trigger mode, trigger delay and trigger frame number corresponding to each spectral channel with a switch state turned on, so as to send a trigger signal to each spectral channel respectively; the data synchronization acquisition processing unit is used to control each spectral channel with a switch state turned on to synchronously acquire spectral data of each frame according to the corresponding frame rate and exposure time according to the trigger signal, and package the spectral data of each frame acquired by each spectral channel respectively to obtain the total spectral data of each frame.

[0015] In an optional embodiment, the data transmission unit includes a UDP receiving module and a UDP sending module; the UDP receiving module is connected to the first host computer through an Ethernet Gigabit port using the UDP protocol; the UDP sending module is connected to the second host computer through an Ethernet Gigabit port using the UDP protocol.

[0016] In an optional embodiment, the instruction control unit includes an instruction parsing module and a trigger module corresponding to each spectral channel one by one; the instruction parsing module is used to parse the first instruction; the trigger module corresponding to each spectral channel one by one is used to perform a trigger operation according to the trigger mode, trigger delay and trigger frame number corresponding to each spectral channel whose switching state is on, so as to send a trigger signal to each spectral channel respectively.

[0017] In an optional embodiment, the data synchronization acquisition and processing unit includes a detector driving module, an ADC acquisition module, a pre-packaging module, a data processing module and a separate packaging module corresponding to each spectral channel one by one; the detector driving module is used to receive a trigger signal of a target spectral channel, and drive the detector to expose according to the exposure time for a target frame of the target spectral channel, so that the detector outputs spectral image data and an ADC acquisition enable signal according to the exposure time; the ADC acquisition module is used to receive the ADC acquisition enable signal to acquire the spectral image data, obtain the spectral data to be pre-packaged and output an ADC acquisition completion signal; the pre-packaging module is used to, after receiving the ADC acquisition completion signal, output the spectral data to be pre-packaged, the target frame number and the target light The camera number of the detector corresponding to the spectral channel is pre-packaged to obtain pre-packaged spectral data and output a pre-packaging completion signal; the data processing module is used to perform data correction processing on the pre-packaged spectral data after receiving the pre-packaging completion signal, obtain corrected spectral data and output a processing completion signal; the separate packaging module is used to package the packet header, image type, packet sequence number, data length, the corrected spectral data, temperature data, reserved bit, check bit and packet tail after receiving the processing completion signal, so as to obtain the spectral data of the target spectral channel in the target frame; the data synchronization acquisition processing unit also includes an overall packaging module, which is used to splice the spectral data collected by each spectral channel in the target frame in the order of spectral channel numbers for the target frame, so as to obtain the total spectral data of the target frame.

[0018] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the LIBS spectrometer synchronous spectral data acquisition method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0019] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the LIBS spectrometer synchronous spectral data acquisition method of the first aspect or any corresponding embodiment thereof.

[0020] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the method for synchronous spectral data acquisition of a LIBS spectrometer according to the first aspect or any corresponding embodiment thereof.

[0021] The technical solution provided by the present invention may include the following beneficial effects:

[0022] The LIBS spectrometer synchronous spectral data acquisition method provided by the present invention can set each spectral channel respectively through a first instruction, so that each spectral channel respectively acquires each frame of spectral data of the corresponding band, and then packs each frame of spectral data respectively acquired by each spectral channel, and the spectral data of each spectral channel corresponding to the same frame are packed into the total spectral data of the frame, so as to realize the synchronous acquisition of spectral data ranging from visible light to infrared band, and the communication connection between the first host computer, the second host computer and the data acquisition device and the data transmission between each unit in the data acquisition device ensure the speed of the first instruction transmission, spectral data acquisition, processing and transmission, and ensure the synchronization accuracy and transmission efficiency of the spectral data of each spectral channel in the same frame under the premise of meeting the spectral data band range, thereby ensuring the accuracy and timeliness of each frame of total spectral data, thereby ensuring the accuracy of each frame of spectral image parsed. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0024] Figure 1 is a schematic flow chart of a method for synchronous spectrum data acquisition of a LIBS spectrometer according to an embodiment of the present invention;

[0025] Figure 2 is a schematic flow chart of another LIBS spectrometer synchronous spectral data acquisition method according to an embodiment of the present invention;

[0026] Figure 3 is a structural block diagram of a synchronous spectral data acquisition system for a LIBS spectrometer according to an embodiment of the present invention;

[0027] Figure 4 is a structural block diagram of another LIBS spectrometer synchronous spectral data acquisition system according to an embodiment of the present invention;

[0028] Figure 5 is a schematic diagram of overall packaging according to an embodiment of the present invention;

[0029] Figure 6 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0031] The embodiment of the present invention provides a synchronous spectral data acquisition method, which packs the spectral data of each spectral channel of the same frame to achieve the effect of ensuring the synchronization accuracy of spectral data acquisition and the accuracy of total spectral data.

[0032] According to an embodiment of the present invention, an embodiment of a method for synchronous spectral data acquisition of a LIBS spectrometer is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0033] In this embodiment, a LIBS spectrometer synchronous spectral data acquisition method is provided. The method is executed by a data acquisition device in a LIBS spectrometer synchronous spectral data acquisition system. The LIBS spectrometer synchronous spectral data acquisition system also includes a first host computer and a second host computer. The data acquisition device establishes communication connections with the first host computer and the second host computer respectively. Figure 1 is a flow chart of a method for synchronous spectral data acquisition of a LIBS spectrometer according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0034] Step S101, receiving a first instruction from a first host computer.

[0035] The first host computer is used to send a first instruction to the data acquisition device through a communication connection. The first instruction includes the switch state, frame rate, exposure time, trigger mode, trigger delay and trigger frame number of each spectral channel. The switch state is used to indicate whether the spectral channel is turned on. The exposure time is used to indicate the exposure time of the detector when the spectral channel collects spectral data. The trigger mode can be set according to actual needs. For example, if it is set to a continuous trigger mode, spectral data will be continuously collected. If it is set to trigger according to the number of times, spectral data will be collected according to a pre-set number of times. The start time of the trigger pulse is controlled by setting the trigger delay. For example, if the trigger delay is set to 1s, when other parameters are set, the trigger module of each channel will not perform the trigger operation immediately, but will perform the trigger operation according to the frame rate after 1s and send a trigger pulse. The number of frames of the collected spectral data can be controlled by setting the trigger frame number.

[0036] Step S102, parse the first instruction, and perform a trigger operation according to the trigger mode, trigger delay, and trigger frame number corresponding to each spectral channel whose switch state is on, so that each spectral channel whose switch state is on synchronously collects spectral data of each frame according to the corresponding frame rate and exposure time.

[0037] Each spectral channel is responsible for spectral data collection in different bands. The switch state of each spectral channel can be set according to needs, so as to select the spectral channel participating in spectral data collection. In other words, only the spectral channel with the switch state turned on will participate in synchronous spectral data collection. Furthermore, each spectral channel is set with a corresponding trigger mode, trigger delay, trigger frame number, frame rate, and exposure time. After receiving an instruction to perform a trigger operation according to the corresponding trigger mode, trigger delay, and trigger frame number, the spectral channel with the switch state turned on will collect spectral data for each frame according to the corresponding frame rate and exposure time.

[0038] Optionally, the frame rate, exposure time, trigger mode, trigger delay and trigger frame number corresponding to each spectral channel are the same to obtain synchronized spectral data of each frame, that is, each frame corresponds to spectral data collected by each spectral channel with its switch state on.

[0039] Step S103 , packing the spectral data of each frame collected by each spectral channel to obtain the total spectral data of each frame and uploading it to the second host computer, so that the second host computer can analyze the total spectral data of each frame to obtain the spectral image of each frame.

[0040] Specifically, for the target frame, the spectral data of the target frame collected by each spectral channel are packaged to obtain the total spectral data of the target frame, and so on, to obtain the total spectral data of each frame. The total spectral data of each frame is uploaded to the second host computer, and the second host computer is used to obtain the spectral image of the target frame according to the total spectral data of the target frame. The second host computer can also be used to display the spectral image for users to view.

[0041] The synchronous spectral data acquisition method provided in the present embodiment can set each spectral channel respectively through the first instruction, so that each spectral channel respectively acquires each frame of spectral data of the corresponding band, and then packs each frame of spectral data acquired by each spectral channel, and the spectral data of each spectral channel corresponding to the same frame are packed into the total spectral data of the frame, so as to realize the synchronous acquisition of spectral data ranging from visible light to infrared band, and the communication connection between the first host computer, the second host computer and the data acquisition device and the data transmission between each unit in the data acquisition device ensure the speed of the first instruction transmission, spectral data acquisition, processing and transmission, and ensure the synchronization accuracy and transmission efficiency of the spectral data of each spectral channel in the same frame under the premise of meeting the spectral data band range, thereby ensuring the accuracy and timeliness of each frame of total spectral data, thereby ensuring the accuracy of each frame of spectral image parsed.

[0042] In this embodiment, a LIBS spectrometer synchronous spectral data acquisition method is provided. The method is executed by a data acquisition device in a LIBS spectrometer synchronous spectral data acquisition system. The LIBS spectrometer synchronous spectral data acquisition system also includes a first host computer and a second host computer. The data acquisition device establishes communication connections with the first host computer and the second host computer respectively. Figure 2 is a flow chart of a method for synchronous spectral data acquisition of a LIBS spectrometer according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0043] Step S201, receiving a first instruction from a first host computer.

[0044] The first instruction includes the switch state, frame rate, exposure time, trigger mode, trigger delay and trigger frame number of each spectral channel.

[0045] Optionally, the trigger mode includes a continuous trigger mode, a host computer trigger mode, and a level trigger mode. The continuous trigger mode is to continuously execute the trigger operation. In the host computer trigger mode, after the trigger frame number is set by the host computer, the trigger operation is started by interacting with the host computer, and the trigger operation is executed according to the set frame number, for example, the trigger operation is started by clicking the trigger start button in the host computer. In the level trigger mode, after the trigger frame number is set by the host computer, the trigger operation is started by detecting the level value of the external trigger hardware level, and the trigger operation is executed according to the set frame number, for example, the trigger operation is started when the level value of the external trigger hardware level reaches 3.3V.

[0046] Step S202, parse the first instruction, and perform a trigger operation according to the trigger mode, trigger delay, and trigger frame number corresponding to each spectral channel whose switch state is on, so that each spectral channel whose switch state is on synchronously collects spectral data of each frame according to the corresponding frame rate and exposure time.

[0047] Specifically, the above step S202 includes:

[0048] Step S2021 , for a target frame of a target spectral channel, driving the detector to expose according to an exposure time, so that the detector outputs spectral image data and an ADC (Analog-to-Digital Converter) acquisition enable signal according to the exposure time.

[0049] Each spectral channel is equipped with a detector. The working principle of the LIBS spectrometer is that the laser hits the sample surface and then forms plasma, generates electron transitions, and generates spectral lines of different wavelengths. The grating is focused on the grating through the lens. The grating can diffract the incident light according to different wavelengths. The diffracted light is separated and collected by optical elements to reach the detector. The detector can measure the light signal after diffraction by the grating, and convert the light signal into an electrical signal, output the spectral image data, and send the ADC acquisition enable signal to the data acquisition device. Among them, each frame is exposed once, a frame of spectral image data is output, and an ADC acquisition enable signal is sent once.

[0050] Exemplarily, the number of spectral channels whose switch state is on is three.

[0051] Step S2022, receiving an ADC acquisition enable signal to acquire spectral image data to obtain spectral data to be pre-packaged.

[0052] The data acquisition device receives the ADC acquisition enable signal, acquires the spectral image data output by the detector, and obtains the spectral data before pre-packaging, that is, the spectral data to be pre-packed.

[0053] Step S2023, pre-packing the spectral data to be pre-packaged, the target frame number, and the camera number of the detector corresponding to the target spectral channel to obtain pre-packaged spectral data.

[0054] Each frame can be assigned a serial number in time order, and the target frame number is the serial number corresponding to the target frame. Each detector is provided with a camera, and the camera corresponds to a camera number. In other words, the pre-packaged spectral data includes the spectral data to be pre-packaged, the target frame number, and the camera number.

[0055] Step S2024, performing data correction processing on the pre-packaged spectral data to obtain corrected spectral data.

[0056] Optionally, the correction process includes bad pixel correction and dark level subtraction. A bad pixel is a point with a defective pixel value, and a dark level is a level value when there is no light input. The bad pixel correction method and dark level subtraction method in the relevant technology can be used to correct the pre-packaged spectrum data to obtain corrected spectrum data with high accuracy after correction. Other correction methods can also be set according to needs, such as baseline correction, detrending correction, etc.

[0057] Step S2025, the packet header, image type, packet sequence number, data length, corrected spectrum data, temperature data, reserved bit, check bit and packet tail are packaged to obtain the spectrum data of the target spectrum channel in the target frame.

[0058] A data packet is a piece of data in network communication and is the basic unit of transmission in a computer network. When performing synchronous spectral data acquisition, the spectral data of each spectral channel in each frame will be packaged. The packaged spectral data includes a packet header, image type, packet sequence number, data length, corrected spectral data, temperature data, reserved bits, check bits, and a packet tail.

[0059] Optionally, image types include unprocessed images, binary images, filtered images, etc., which are divided according to whether the corrected spectral data has undergone further processing. The packet number is the number corresponding to the spectral data packaged into the data packet, and the packet number can be assigned according to the time sequence. The temperature data is related to the type of light corresponding to the spectral channel. For example, a total of three spectral channels are set, two spectral channels are visible light channels, and one channel is an infrared light channel. The infrared light channel has requirements for temperature data. The packet header, reserved bit, check bit, and packet tail are components of the data packet, which can be set according to actual needs and will not be repeated here. Optionally, the reserved bit includes a first reserved bit and a second reserved bit, which are used to reserve an interface for the subsequent addition of new functions or new data.

[0060] It should be noted that steps S2021 to S2025 are for the spectral data collection steps of the target spectral channel in the target frame, that is, the spectral data collection steps of the target spectral channel in one frame. By analogy, the spectral data collection steps of the target spectral channel in each frame can be obtained, and then the spectral data collection steps of each spectral channel in each frame can be obtained.

[0061] Step S203 , packing the spectral data of each frame collected by each spectral channel to obtain the total spectral data of each frame and uploading it to the second host computer, so that the second host computer can analyze the total spectral data of each frame to obtain the spectral image of each frame.

[0062] Optionally, for a target frame, the spectral data collected by each spectral channel in the target frame are concatenated head to tail in the order of spectral channel numbers to obtain the total spectral data of the target frame. Similarly, the total spectral data of each frame is obtained and uploaded to the second host computer, wherein each frame of total spectral data is uploaded to the second host computer once.

[0063] Exemplarily, the tail of the spectral data of the first spectral channel is spliced ​​with the header of the spectral data packet of the second spectral channel, and the tail of the spectral data packet of the second spectral channel is spliced ​​with the header of the spectral data packet of the third spectral channel to obtain the total spectral data of the first spectral channel, the second spectral channel and the third spectral channel.

[0064] The synchronous spectral data acquisition method for a LIBS spectrometer provided in the present embodiment can set each spectral channel respectively through a first instruction, so that each spectral channel respectively acquires each frame of spectral data of the corresponding band, and then packages each frame of spectral data acquired by each spectral channel, and the spectral data of each spectral channel corresponding to the same frame are packaged into the total spectral data of the frame, thereby realizing the synchronous acquisition of spectral data ranging from visible light to infrared bands, and the communication connection between the first host computer, the second host computer and the data acquisition device and the data transmission between each unit in the data acquisition device ensure the speed of the first instruction transmission, spectral data acquisition, processing and transmission, and ensure the synchronization accuracy and transmission efficiency of the spectral data of each spectral channel in the same frame under the premise of meeting the spectral data band range, thereby ensuring the accuracy and timeliness of each frame of total spectral data, thereby ensuring the accuracy of each frame of spectral image parsed.

[0065] In this embodiment, a LIBS spectrometer synchronous spectral data acquisition system is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and the descriptions that have been made will not be repeated. As used below, the term "unit" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0066] This embodiment provides a LIBS spectrometer synchronous spectral data acquisition system, Figure 3 is a structural block diagram of a synchronous spectral data acquisition system for a LIBS spectrometer according to an embodiment of the present invention. Figure 3 As shown, including:

[0067] The host computer unit includes a first host computer and a second host computer. The first host computer is used to send a first instruction. The first instruction includes the switch state, frame rate, exposure time, trigger mode, trigger delay and trigger frame number of each spectral channel. The second host computer is used to receive the total spectral data of each frame, and parse the total spectral data of each frame to obtain the spectral image of each frame.

[0068] The data acquisition device includes a data transmission unit, an instruction control unit, and a data synchronization acquisition processing unit. The data transmission unit is connected to the first host computer for receiving the first instruction. The data transmission unit is also connected to the second host computer for uploading the total spectrum data to the second host computer. The instruction control unit is used to parse the first instruction, and perform a trigger operation according to the trigger mode, trigger delay, and trigger frame number corresponding to each spectral channel with a switch state turned on, so as to send a trigger signal to each spectral channel respectively. The data synchronization acquisition processing unit is used to control each spectral channel with a switch state turned on to synchronously acquire spectral data of each frame according to the corresponding frame rate and exposure time according to the trigger signal, and pack the spectral data of each frame acquired by each spectral channel respectively, so as to obtain the total spectrum data of each frame.

[0069] For details, please see Figure 1 The illustrated embodiments will not be described in detail here.

[0070] Figure 4 is a structural block diagram of a synchronous spectral data acquisition system for a LIBS spectrometer according to an embodiment of the present invention, Figure 4 The structure of the synchronous spectral data acquisition system of the LIBS spectrometer is shown by taking three spectral channels, namely channel A, channel B and channel C as examples, wherein the host computer for transmitting instructions corresponds to the first host computer, and the host computer for receiving and uploading data corresponds to the second host computer. In an optional embodiment, the data transmission unit includes a UDP (User Datagram Protocol) receiving module and a UDP sending module. The UDP receiving module is connected to the first host computer through an Ethernet Gigabit port and a UDP protocol, and the UDP sending module is connected to the second host computer through an Ethernet Gigabit port and a UDP protocol. The sending of instructions and the uploading of data through the Ethernet Gigabit port and the UDP protocol can improve the data transmission speed and ensure the synchronization precision and accuracy of synchronous spectral data acquisition.

[0071] In an optional embodiment, the instruction control unit includes an instruction parsing module and a trigger module corresponding to each spectral channel. The instruction parsing module is used to parse the first instruction. The trigger module corresponding to each spectral channel is used to perform a trigger operation according to the trigger mode, trigger delay and trigger frame number corresponding to each spectral channel whose switch state is on, so as to send a trigger signal to each spectral channel respectively, that is, each spectral channel corresponds to a trigger module, and each trigger module is used to perform a trigger operation on the spectral channel corresponding to it.

[0072] In an optional embodiment, the data synchronization acquisition processing unit includes a detector driving module, an ADC acquisition module, a pre-packaging module, a data processing module and a separate packaging module corresponding to each spectral channel. The detector driving module is used to receive the trigger signal of the target spectral channel, and for the target frame of the target spectral channel, drive the detector to expose according to the exposure time, so that the detector outputs spectral image data and ADC acquisition enable signal according to the exposure time. The ADC acquisition module is used to receive the ADC acquisition enable signal to acquire the spectral image data, obtain the spectral data to be pre-packaged and output the ADC acquisition completion signal, and output the ADC acquisition completion signal once each time the acquisition of a frame of spectral image data is completed. The pre-packaging module is used to pre-package the spectral data to be pre-packaged, the target frame number and the camera number of the detector corresponding to the target spectral channel after receiving the ADC acquisition completion signal, obtain the pre-packaged spectral data and output the pre-packaging completion signal, and output the pre-packaging completion signal once each time the pre-packaging of a frame is completed. The data processing module is used to perform data correction processing on the pre-packaged spectral data after receiving the pre-packaged completion signal, obtain the corrected spectral data and output the processing completion signal, and output the processing completion signal once for each frame of data correction processing. The separate packaging module is used to package the packet header, image type, packet sequence number, data length, the corrected spectral data, temperature data, reserved bits, check bits and packet tail after receiving the processing completion signal, and obtain the spectral data of the target spectral channel in the target frame. The separate packaging module also outputs a separate packaging completion signal after packaging a frame of spectral data.

[0073] Optionally, the ADC acquisition module, pre-packaging module, data processing module and separate packaging module of each spectral channel are all isolated and connected using FIFO, that is, the ADC acquisition module and the pre-packaging module are connected using FIFO (First In First Out), the pre-packaging module and the data processing module are connected using FIFO, and the data processing module and the separate packaging module are connected using FIFO.

[0074] In an optional embodiment, the data synchronization acquisition processing unit further includes an overall packaging module, which is used to splice the spectral data collected by each spectral channel in the target frame in the order of the spectral channel number, so as to obtain the total spectral data of the target frame. After each frame of total spectral data is packaged, an overall packaging completion signal is output, and the total spectral data is uploaded to the second host computer.

[0075] It should be noted that the unused spectral channels do not participate in the overall packaging of the total spectral data. The unused spectral channels are skipped during the overall packaging, and the spectral data of other used spectral channels are still packaged in the order of spectral channel numbers. For example, if the switch state of the second spectral channel is off, and the switch states of the first spectral channel and the third spectral channel are on, then the packet tail of the spectral data of the first spectral channel is spliced ​​with the packet header of the spectral data of the third spectral channel during the overall packaging to obtain the total spectral data.

[0076] For example, Figure 5 Schematic diagram of overall packaging according to an embodiment of the present invention. Figure 5 As shown, in the order of channel A, channel B and channel C, the spectral data of the three spectral channels are concatenated head to tail and packaged into total spectral data.

[0077] Optionally, the overall packaging module and the individual packaging module of each spectral channel are connected by FIFO respectively, that is, the individual packaging module of the target spectral channel is connected to the overall packaging module by FIFO.

[0078] Exemplarily, the data acquisition device of the LIBS spectrometer synchronous spectral data acquisition system adopts an FPGA (Field Programmable Gate Array) board capable of data synchronization and real-time data processing, and adopts a hierarchical modular framework to build an open, modular system with a unified software and hardware platform. The software in the first host computer and the second host computer is developed using Labview, and the hardware platform of the LIBS spectrometer synchronous spectral data acquisition system is developed based on the FPGA verilog language, adopts a hierarchical, modular architecture, and uses a shared variable mechanism to realize data interaction between units.

[0079] The LIBS spectrometer synchronous spectral data acquisition system provided in the present embodiment can set each spectral channel respectively through the first instruction, so that each spectral channel respectively acquires each frame of spectral data of the corresponding band, and then packages each frame of spectral data acquired by each spectral channel, and the spectral data of each spectral channel corresponding to the same frame are packaged into the total spectral data of the frame, thereby realizing the synchronous acquisition of spectral data ranging from visible light to infrared bands, and the communication connection between the first host computer, the second host computer and the data acquisition device and the data transmission between each unit in the data acquisition device ensure the speed of the first instruction transmission, spectral data acquisition, processing and transmission, and ensure the synchronization accuracy and transmission efficiency of the spectral data of each spectral channel in the same frame under the premise of meeting the spectral data band range, thereby ensuring the accuracy and timeliness of each frame of total spectral data, thereby ensuring the accuracy of each frame of spectral image parsed.

[0080] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0081] The LIBS spectrometer synchronous spectral data acquisition system in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0082] The embodiment of the present invention also provides a computer device having the above Figure 3 or Figure 4 The LIBS spectrometer synchronized spectral data acquisition system shown.

[0083] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 6As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.

[0084] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0085] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0086] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0087] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0088] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0089] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device may be a touch screen.

[0090] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0091] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0092] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A LIBS spectrometer synchronous spectral data acquisition method, characterized in that: The method is performed by a data acquisition device in a LIBS spectrometer synchronous spectrum data acquisition system; the LIBS spectrometer synchronous spectrum data acquisition system also includes a first host computer and a second host computer; the data acquisition device establishes a communication connection with the first host computer and the second host computer respectively; the method includes: Receive a first instruction from the first host computer; the first instruction includes the switch state, frame rate, exposure time, trigger mode, trigger delay and trigger frame number of each spectral channel; wherein each spectral channel is responsible for spectral data collection of different bands; Parse the first instruction, and perform a trigger operation according to the trigger mode, trigger delay, and trigger frame number corresponding to each spectral channel whose switch state is on, so that each spectral channel whose switch state is on synchronously collects spectral data of each frame according to the corresponding frame rate and exposure time; Packing the spectral data of each frame collected by each spectral channel to obtain the total spectral data of each frame and uploading it to the second host computer so that the second host computer can analyze the total spectral data of each frame to obtain the spectral image of each frame; The spectral data of each frame collected by each spectral channel is packaged to obtain the total spectral data of each frame, including: For a target frame, the spectral data collected by each spectral channel in the target frame are concatenated head to tail in the order of spectral channel numbers to obtain the total spectral data of the target frame.

2. The method according to claim 1, characterized in that The spectral channels whose switch states are turned on synchronously collect spectral data of each frame according to the corresponding frame rate and exposure time, including: For a target frame of a target spectral channel, driving the detector to expose according to the exposure time, so that the detector outputs spectral image data and an ADC acquisition enable signal according to the exposure time; receiving the ADC acquisition enable signal to acquire the spectral image data to obtain spectral data to be pre-packaged; Pre-packaging the spectral data to be pre-packaged, the target frame number, and the camera number of the detector corresponding to the target spectral channel to obtain pre-packaged spectral data; Performing data correction processing on the pre-packaged spectral data to obtain corrected spectral data; The packet header, image type, packet sequence number, data length, the corrected spectral data, temperature data, reserved bits, check bits and packet tail are packaged to obtain the spectral data of the target spectral channel in the target frame.

3. A LIBS spectrometer synchronous spectral data acquisition system, characterized in that: The system comprises: A first host computer is used to send a first instruction; the first instruction includes a switch state, a frame rate, an exposure time, a trigger mode, a trigger delay, and a trigger frame number of each spectral channel; wherein each spectral channel is responsible for spectral data collection of different bands; The second host computer is used to receive the total spectrum data of each frame, and analyze the total spectrum data of each frame to obtain the spectrum image of each frame; Data acquisition equipment, including a data transmission unit, an instruction control unit and a data synchronization acquisition processing unit; The data transmission unit is connected to the first host computer for receiving the first instruction; the data transmission unit is also connected to the second host computer for uploading the total spectrum data to the second host computer; The instruction control unit is used to parse the first instruction, and perform a trigger operation according to the trigger mode, trigger delay, and trigger frame number corresponding to each spectral channel whose switch state is on, so as to send a trigger signal to each spectral channel respectively; The data synchronization acquisition processing unit is used to control each spectral channel whose switch state is on to synchronously acquire spectral data of each frame according to the corresponding frame rate and exposure time according to the trigger signal, and to pack the spectral data of each frame acquired by each spectral channel to obtain the total spectral data of each frame; The data synchronization acquisition processing unit also includes an overall packaging module, which is used to splice the spectral data collected by each spectral channel in the target frame in the order of spectral channel numbers to obtain the total spectral data of the target frame.

4. The system according to claim 3, characterized in that The data transmission unit includes a UDP receiving module and a UDP sending module; the UDP receiving module is connected to the first host computer through an Ethernet Gigabit port using the UDP protocol; the UDP sending module is connected to the second host computer through an Ethernet Gigabit port using the UDP protocol.

5. The system according to claim 3, characterized in that The instruction control unit includes an instruction parsing module and a trigger module corresponding to each spectral channel one by one; The instruction parsing module is used to parse the first instruction; The trigger modules corresponding to each spectral channel are used to perform trigger operations according to the trigger mode, trigger delay and trigger frame number corresponding to each spectral channel whose switch state is on, so as to send trigger signals to each spectral channel respectively.

6. The system according to claim 5, characterized in that The data synchronization acquisition and processing unit includes a detector driving module, an ADC acquisition module, a pre-packaging module, a data processing module and a separate packaging module corresponding to each spectral channel one by one; The detector driving module is used to receive a trigger signal of a target spectral channel, and drive the detector to expose a target frame of the target spectral channel according to the exposure time, so that the detector outputs spectral image data and an ADC acquisition enable signal according to the exposure time; The ADC acquisition module is used to receive the ADC acquisition enable signal to acquire the spectral image data, obtain the spectral data to be pre-packaged and output an ADC acquisition completion signal; The pre-packaging module is used to pre-pack the spectral data to be pre-packed, the target frame number and the camera number of the detector corresponding to the target spectral channel after receiving the ADC acquisition completion signal, obtain the pre-packaging spectral data and output the pre-packaging completion signal; The data processing module is used to perform data correction processing on the pre-packaged spectral data after receiving the pre-packaged completion signal, obtain corrected spectral data and output a processing completion signal; The separate packaging module is used to package the packet header, image type, packet sequence number, data length, the corrected spectral data, temperature data, reserved bits, check bits and packet tail after receiving the processing completion signal to obtain the spectral data of the target spectral channel in the target frame.

7. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the LIBS spectrometer synchronous spectral data acquisition method according to claim 1 or 2 by executing the computer instructions.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the LIBS spectrometer synchronous spectral data acquisition method according to claim 1 or 2.

9. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to enable a computer to execute the LIBS spectrometer synchronous spectral data acquisition method according to claim 1 or 2.

Citation Information

Patent Citations

  • Multispectral imager based on light fieldd imaging technique

    CN103323113A

  • Spectral video acquisition method based on DMD variable coding template

    CN113049103A

  • Imaging information synchronization device of imaging spectrometer based on FPGA

    CN113945280A

  • Panoramic spectrum image acquisition system

    CN114384542A

  • Multi-channel synchronous data acquisition and transmission system and method based on FPGA (Field Programmable Gate Array)

    CN116841934A