WO2019127951A1 - Method, apparatus and system for collecting terahertz time-domain pulse signal - Google Patents

Method, apparatus and system for collecting terahertz time-domain pulse signal Download PDF

Info

Publication number
WO2019127951A1
WO2019127951A1 PCT/CN2018/080643 CN2018080643W WO2019127951A1 WO 2019127951 A1 WO2019127951 A1 WO 2019127951A1 CN 2018080643 W CN2018080643 W CN 2018080643W WO 2019127951 A1 WO2019127951 A1 WO 2019127951A1
Authority
WO
WIPO (PCT)
Prior art keywords
pulse signal
time domain
terahertz time
domain pulse
data buffer
Prior art date
Application number
PCT/CN2018/080643
Other languages
French (fr)
Chinese (zh)
Inventor
刘小伟
潘弈
李辰
丁庆
冯军正
Original Assignee
深圳市太赫兹科技创新研究院
深圳市太赫兹科技创新研究院有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市太赫兹科技创新研究院, 深圳市太赫兹科技创新研究院有限公司 filed Critical 深圳市太赫兹科技创新研究院
Publication of WO2019127951A1 publication Critical patent/WO2019127951A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/25Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
    • G01N21/31Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry
    • G01N21/35Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light
    • G01N21/3581Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light using far infrared light; using Terahertz radiation
    • G01N21/3586Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light using far infrared light; using Terahertz radiation by Terahertz time domain spectroscopy [THz-TDS]

Definitions

  • the present application relates to the field of terahertz time domain spectroscopy, and in particular to a terahertz time domain pulse signal acquisition method, apparatus, system, computer readable storage medium and computer device.
  • the terahertz electromagnetic wave has a wavelength range of 0.03 to 3 mm, and the corresponding frequency range is 0.1 to 10 THz, which is between the microwave and the infrared. Because of its special position in the transition of electronics to photonics in the electromagnetic spectrum, it has the characteristics of strong penetrability, high spectral resolution and good safety. In recent years, its academic and application value has been widely concerned worldwide. Terahertz time-domain spectroscopy (THz-TDs) technology can simultaneously detect the amplitude and phase information of THz waves, showing great applications in many fields such as biomedicine, safety inspection, non-destructive testing, material property analysis, environment and food safety, communication, etc. The potential has rapidly evolved into a new and interesting research direction.
  • the traditional THz-TDS acquires the THz time-domain pulse signal acquisition data obtained by the lock-in amplifier (LIA) to the computer.
  • the lock-in amplifier has a long communication time with the computer and the data collection efficiency is low.
  • the data provided by the lock-in amplifier is single-point data, which is susceptible to noise and has limited data reliability.
  • a terahertz time domain pulse signal acquisition method comprising the steps of:
  • the delay control instruction includes an operational state control instruction or a reset control instruction.
  • acquiring the terahertz time domain pulse signal and buffering the terahertz time domain pulse signal into the preset data buffer queue includes:
  • the terahertz time domain pulse signal is buffered into the first in first out queue.
  • the step of buffering the terahertz time domain pulse signal into the first in first out queue includes performing analog to digital conversion on the terahertz time domain pulse signal.
  • the step of returning the step of buffering the terahertz time domain pulse signal into the preset data buffer queue comprises:
  • the buffered terahertz time domain pulse signals in the current data buffer queue are stored in an external memory.
  • a terahertz time domain pulse signal collecting device comprising:
  • a control instruction issuing module configured to send a delay control instruction according to the received external control message, where the delay control instruction is used to control the state of the delay line;
  • a pulse signal acquisition module configured to acquire a terahertz time domain pulse signal when the delay line is detected to be in an active state, and buffer the terahertz time domain pulse signal into a preset data buffer queue;
  • a pulse signal pushing module configured to: when the data buffer queue is detected to be saturated, push the buffered terahertz time domain pulse signal in the current data buffer queue;
  • the continuous acquisition module is configured to return a step of buffering the terahertz time domain pulse signal into a preset data buffer queue.
  • a terahertz time domain pulse signal acquisition system comprising a lock-in amplifier, a delay line and a terahertz time domain pulse signal acquisition device as described above;
  • the terahertz time domain pulse signal acquisition device is connected to the lock-in amplifier and the delay line, respectively.
  • the analog-to-digital converter is respectively connected to the terahertz time domain pulse signal collecting device and the lock-in amplifier;
  • the delay line control device is disposed on the connection node of the terahertz time domain pulse signal acquisition device and the delay line;
  • the flash memory is connected to the terahertz time domain pulse signal acquisition device.
  • a computer readable storage medium storing a computer program, when executed by a processor, causes the processor to perform the steps of the method as described above.
  • a computer apparatus comprising a memory and a processor, the memory storing a computer program, the computer program being executed by the processor, causing the processor to perform the steps of the method as described above.
  • the terahertz time domain pulse signal acquisition method, device, system, computer readable storage medium and computer device send a delay control instruction according to the received external control message to control the state of the delay line, when the delay line is detected
  • the terahertz time domain pulse signal is acquired, and the terahertz time domain pulse signal is buffered into a preset data buffer queue.
  • the data buffer queue is detected to be saturated, the current data buffer queue is pushed.
  • the buffered terahertz time domain pulse signal returns a step of buffering the terahertz time domain pulse signal into a preset data buffer queue.
  • the solution of the present application introduces the collected terahertz time domain pulse signal into a preset data buffer queue, and pushes the terahertz time domain pulse signal out when the data buffer queue is saturated, thereby avoiding directly pushing the collected data.
  • the long communication time is easy to cause non-equal interval acquisition problems, thus achieving fast and reliable collection of data.
  • FIG. 1 is a schematic flow chart of a method for collecting a terahertz time domain pulse signal according to an embodiment of the present application
  • FIG. 2 is a schematic block diagram showing the structure of a terahertz time domain pulse signal collecting apparatus according to an embodiment of the present application
  • FIG. 3 is a schematic block diagram showing the structure of a terahertz time domain pulse signal acquisition system according to an embodiment of the present application
  • FIG. 4 is a schematic block diagram showing the structure of a terahertz time domain pulse signal acquisition system according to another embodiment of the present application.
  • FIG. 1 is a schematic flow chart of a method for collecting a terahertz time domain pulse signal according to an embodiment of the present application.
  • a terahertz time domain pulse signal acquisition method includes:
  • Step S101 The delay control command is sent according to the received external control message, and the delay control command is used to control the state of the delay line.
  • the external control message can be received by wireless or wired communication, and the external control message can be sent by the server of the upper computer, generate a delay control instruction according to the received external message, and send the delay control command to the delay line to control the delay.
  • the state of the line Specifically, after receiving the external control message, the external control message is analyzed, and a delay control instruction is generated according to the analysis result and sent.
  • the delay control instruction may include an operation state control instruction or a reset control instruction, respectively corresponding to the control delay line entering a corresponding working state or resetting, and returning to the initialization state.
  • Step S103 When detecting that the delay line is in an active state, acquiring a terahertz time domain pulse signal, and buffering the terahertz time domain pulse signal into a preset data buffer queue.
  • the state of the delay line is detected.
  • the terahertz time domain pulse signal is acquired, and the terahertz time domain pulse signal is buffered to a preset data buffer queue. in.
  • the delay line is in the working state, it indicates that the delay line is performing delay time control on the terahertz time domain pulse signal, and the terahertz time domain pulse signal is collected and buffered into a preset data buffer queue.
  • the preset data buffer queue is used for temporarily buffering the collected terahertz time domain pulse signal, and the queue size can be set according to the acquisition period of the terahertz time domain pulse signal, such as setting the size to exactly correspond to one.
  • the terahertz time domain pulse signal collected during the acquisition period when the collected terahertz time domain pulse signal is introduced into the data buffer queue, the data buffer queue can just cover a complete acquisition cycle.
  • the data buffer queue can be FIFO (First Input First Output) to ensure fast transfer of buffered data.
  • Step S105 When the data buffer queue is detected to be in a saturated state, the buffered terahertz time domain pulse signal in the current data buffer queue is pushed.
  • the data buffer queue When the obtained terahertz time domain pulse signal is buffered into the data buffer queue, the data buffer queue is monitored in real time to be saturated, that is, whether it is buffered or overflowed, and when the data buffer queue is detected to be saturated, the current data buffer is pushed.
  • the terahertz time domain pulse signal that has been buffered in the queue. Specifically, when the data buffer queue is monitored to be saturated, the terahertz time domain pulse signal buffered in the data buffer queue is pushed to an external server to analyze the terahertz time domain pulse signal to realize terahertz time domain spectral detection. .
  • the data buffer queue is a FIFO
  • the terahertz time domain pulse signal that is first introduced is pushed according to the import time sequence, and then the terahertz time domain pulse signal is introduced after being pushed.
  • Step S107 Returning to the step of buffering the terahertz time domain pulse signal into a preset data buffer queue.
  • the step of buffering the terahertz time domain pulse signal into the preset data buffer queue is returned to re-import the collected terahertz time domain pulse signal into the data buffer.
  • continuous acquisition and push are implemented to obtain a complete terahertz time domain pulse signal.
  • the terahertz time domain pulse signal acquisition method sends a delay control command according to the received external control message to control the state of the delay line, and acquires a terahertz time domain pulse signal when the delay line is detected to be in an active state.
  • the terahertz time domain pulse signal is buffered into a preset data buffer queue, and when the data buffer queue is detected to be saturated, the buffered terahertz time domain pulse signal in the current data buffer queue is pushed, and the terahertz is returned.
  • the step of buffering the time domain pulse signal into a preset data buffer queue when the data buffer queue is detected to be saturated, the buffered terahertz time domain pulse signal in the current data buffer queue is pushed, and the terahertz is returned.
  • the solution of this embodiment introduces the collected terahertz time domain pulse signal into a preset data buffer queue, and pushes the terahertz time domain pulse signal out when the data buffer queue is saturated, thereby avoiding directly collecting the data.
  • the communication time is long when pushing, which easily leads to the problem of non-equal interval acquisition, thus realizing the fast and reliable collection of data.
  • the delay control instruction includes an operation status control instruction or a reset control instruction.
  • the external control message is received first, and may be received by a wireless communication method, such as a wireless local area network, a Bluetooth communication mode, or the like, or may be received by a wired communication method, such as an external control message sent by an external server through a network interface.
  • a wireless communication method such as a wireless local area network, a Bluetooth communication mode, or the like
  • a wired communication method such as an external control message sent by an external server through a network interface.
  • the network interface can be an RJ45 interface
  • the RJ45 is a type of information socket (ie, communication terminal) connector in the wiring system.
  • the connector is composed of a plug (connector, crystal head) and a socket (module), and the plug has 8 One groove and eight contacts.
  • the received external control message is analyzed to generate a working state control command or a reset control command, wherein the working state control command is used to control the working state parameter of the delay line, such as the displacement amount, the stroke, the speed, etc., and the reset control command is used for controlling The delay line is reset and returns to the initialization state.
  • the generated working state control instruction or the reset control instruction is issued, and the delayed control instruction includes a working state control instruction or a reset control instruction.
  • the step of acquiring the terahertz time domain pulse signal and buffering the terahertz time domain pulse signal into the preset data buffer queue may be performed by:
  • the terahertz time domain pulse signal is buffered into the first in first out queue.
  • the state of the delay line is detected, and the position level signal outputted by the delay line can be detected, and more specifically, the position level signal of the scale output of the delay line can be detected.
  • the position level signal is detected as a rising edge, that is, when the position level signal changes from a low level (number “0”) to a high level (number “1”), the terahertz time domain pulse signal acquisition is performed, and The acquired terahertz time domain pulse signal is buffered into the first in first out queue.
  • the first in first out queue is used as the data buffer queue, and the queue size can be the same as the data collected in the acquisition period of a terahertz time domain pulse signal, so that the first in first out queue just covers a complete terahertz time domain pulse. Signal acquisition cycle.
  • the step of buffering the terahertz time domain pulse signal into the first in first out queue includes: performing analog to digital conversion on the terahertz time domain pulse signal.
  • the acquired terahertz time domain pulse signal is an analog signal
  • the first in first out queue is a digital signal buffer queue, so the terahertz time is obtained before the step of buffering the terahertz time domain pulse signal into the first in first out queue.
  • the domain pulse signal is analog-to-digital converted to convert the analog terahertz time domain pulse signal into a digital terahertz time domain pulse signal, and the digital terahertz time domain pulse signal is used to be introduced into the first in first out queue.
  • step of returning the step of buffering the terahertz time domain pulse signal into the preset data buffer queue includes:
  • the buffered terahertz time domain pulse signals in the current data buffer queue are stored in an external memory.
  • the buffered terahertz time domain pulse signal in the current data buffer queue is stored in the external memory before the continuous acquisition.
  • the terahertz time domain pulse signal in the current data buffer queue may be stored in the external memory while the step of pushing the terahertz time domain pulse signal in the data buffer queue is performed, and the external memory may be a FLASH memory, that is, Flash memory; the terahertz time domain pulse signal in the data buffer queue can also be stored in an external memory before or after the step of pushing the terahertz time domain pulse signal in the data buffer queue to save the acquired signal in time. .
  • the present application further provides a terahertz time domain pulse signal acquisition device.
  • FIG. 2 is a schematic block diagram showing the structure of a terahertz time domain pulse signal collecting apparatus 20 according to an embodiment of the present application. As shown in the figure, in the embodiment, the terahertz time domain pulse signal collecting device 20 includes:
  • the control instruction issuance module 201 is configured to issue a delay control instruction according to the received external control message, where the delay control instruction is used to control the state of the delay line;
  • the pulse signal acquisition module 203 is configured to: when detecting that the delay line is in an active state, acquire a terahertz time domain pulse signal, and buffer the terahertz time domain pulse signal into a preset data buffer queue;
  • the pulse signal pushing module 205 is configured to: when the data buffer queue is detected to be in a saturated state, push the buffered terahertz time domain pulse signal in the current data buffer queue;
  • the continuous acquisition module 207 is configured to return a step of buffering the terahertz time domain pulse signal into a preset data buffer queue.
  • the terahertz time domain pulse signal collecting device sends a delay control command according to the received external control message to control the state of the delay line, and the pulse signal collecting module detects that the delay line is working.
  • the terahertz time domain pulse signal is collected, and the terahertz time domain pulse signal is buffered into a preset data buffer queue, and the current data buffer queue is pushed by the pulse signal pushing module when the data buffer queue is detected to be saturated.
  • the buffered terahertz time domain pulse signal returns a step of buffering the terahertz time domain pulse signal into a preset data buffer queue through the continuous acquisition module.
  • the solution of this embodiment introduces the collected terahertz time domain pulse signal into a preset data buffer queue, and pushes the terahertz time domain pulse signal out when the data buffer queue is saturated, thereby avoiding directly collecting the data.
  • the communication time is long when pushing, which easily leads to the problem of non-equal interval acquisition, thus realizing the fast and reliable collection of data.
  • the present application also provides a terahertz time domain pulse signal acquisition system.
  • FIG. 3 is a schematic block diagram showing the structure of a terahertz time domain pulse signal acquisition system according to an embodiment of the present application.
  • the terahertz time domain pulse signal acquisition system includes a lock-in amplifier 301, a delay line 302, and a terahertz time domain pulse signal acquisition device 20 as described above;
  • the terahertz time domain pulse signal acquisition device 20 is coupled to a lock-in amplifier 301 and a delay line 302, respectively.
  • the lock-in amplifier 301 is an amplifier that performs phase-sensitive detection on an alternating signal, and uses a reference signal having the same frequency and phase relationship with the measured signal as a comparison reference, only for the measured signal itself and those with reference.
  • the signal is responsive to the same frequency (or multiplication) and in-phase noise components. Therefore, the lock-in amplifier 301 can greatly suppress unwanted noise and improve the detection signal-to-noise ratio.
  • the lock-in amplifier 301 has high detection sensitivity and simple signal processing, and is an effective method for detecting weak light signals.
  • the delay line 302 is used to delay the electrical signal for a period of time.
  • the delay line 302 has a flat amplitude frequency characteristic and a certain phase shift characteristic (or delay frequency characteristic) in the pass band, and has an appropriate matching impedance and a small attenuation.
  • the delay line 302 is typically composed of an inductor and a capacitor for the analog signal or directly with a coaxial cable and a spiral.
  • Delay line 302 is widely used in radars, electronic computers, color television systems, communication systems, and measuring instruments such as oscilloscopes.
  • the delay line 302 may include an optical delay line, and the motion of the delay line 302 may be controlled by a delay line control device. More specifically, the delay line control device may include a voice coil motor for controlling the displacement amount of the delay line 302 and speed.
  • the terahertz time domain pulse signal acquisition system sends a delay control command according to the received external control message to control the state of the delay line when the delay line is in operation.
  • the terahertz time domain pulse signal is collected by the lock-in amplifier, and the terahertz time domain pulse signal collected by the lock-in amplifier is buffered into a preset data buffer queue, and when the data buffer queue is detected to be saturated, the current data is pushed.
  • the buffered terahertz time domain pulse signal in the buffer queue returns the step of buffering the terahertz time domain pulse signal into a preset data buffer queue.
  • the scheme of the embodiment controls the delay line motion, and the terahertz time domain pulse signal is collected by the lock-in amplifier during the delay line motion, and the terahertz time domain pulse signal collected by the lock-in amplifier is introduced into the preset data buffer queue.
  • the terahertz time domain pulse signal is pushed out, which avoids the long communication time when the collected data is directly pushed, which easily leads to the problem of non-equal interval acquisition, thereby realizing the rapid data acquisition. Reliable collection.
  • the terahertz time domain pulse signal acquisition system of the present application may further include an analog to digital converter connected to the terahertz time domain pulse signal acquisition device 20 and the lock phase amplifier 301, respectively.
  • the analog-to-digital converter is respectively connected to the terahertz time domain pulse signal collecting device 20 and the lock-in amplifier 301, and performs analog-to-digital conversion on the analog terahertz time domain pulse signal collected by the lock-in amplifier 301 to obtain a digital terahertz time domain pulse signal.
  • the digital terahertz time domain pulse signal is sent to the terahertz time domain pulse signal acquisition device 20.
  • the terahertz time domain pulse signal acquisition system of the present application may further include a delay line control device provided on the connection node of the terahertz time domain pulse signal acquisition device 20 and the delay line 302.
  • the delay line control device is disposed between the terahertz time domain pulse signal acquisition device 20 and the lock-in amplifier 301 for receiving the delay control command sent by the terahertz time domain pulse signal acquisition device 20 and correspondingly controlling the delay line 302.
  • the delay line control device can be a voice coil motor for controlling the amount and speed of displacement of the delay line 302.
  • the terahertz time domain pulse signal acquisition system of the present application may further include a flash memory connected to the terahertz time domain pulse signal acquisition device 20.
  • Flash memory that is, FLASH memory is a non-volatile memory that can maintain the stored data information in the case of power failure.
  • the flash memory access speed is fast, no noise, and the heat dissipation is small, and the terahertz time domain pulse can be realized. Fast storage of signals.
  • the terahertz time domain pulse signal acquisition system includes an FPGA (Field-Programmable Gate Array) as a terahertz time domain pulse signal acquisition device, and a built-in pre-input in the FPGA.
  • FPGA Field-Programmable Gate Array
  • the FIFO is connected to the ADC, RJ45 and FLASH respectively.
  • the FPGA is also connected to the ADC, LIA, PreAMP, delay line control device and AD/DC adapter respectively.
  • the ADC, LIA and PreAMP are connected in turn, and the optical delay line is connected with the delay line control device. .
  • the FPGA acts as a data acquisition control center
  • the FPGA can be an XILINX-based FPGA.
  • the system uses 18-bit high-speed ADC to store data synchronously with FLASH in the FPGA, and converts the ADC at the same time.
  • the data is placed in a FIFO (first in first out queue) with a depth of 20K, so that it covers exactly one complete acquisition cycle.
  • the FIFO first in first out queue
  • the RJ45 is uploaded to the server through the Gigabit Ethernet port.
  • the LIA is connected to the IO port of the FPGA, and the FPGA sends the setting parameters through the IO port to realize the control of the LIA, and the optical delay line is directly controlled by the delay line control device, and the delay line control device can be a voice coil motor.
  • the external server sends an external control message through the physical layer PHY chip, and sends it to the FPGA through the network interface RJ45.
  • the external control message is parsed by the FPGA to obtain the displacement amount and speed set in the external control message, thereby controlling the voice coil motor.
  • the movement and simultaneous data collection is Among them, the displacement of the voice coil motor determines the amount of data acquisition. The larger the displacement of the voice coil motor is, the larger the data acquisition amount is.
  • the speed of the voice coil motor determines the data acquisition speed, and the speed of the voice coil motor is larger. The faster the data collection speed.
  • the delay control command is issued to control the motion of the optical delay line, including the speed and the stroke setting. And the reset of the output state of the optical delay line.
  • the optical delay line control device directly feeds back the position level signal output from the scale to the FPGA, and performs data acquisition when detecting the rising edge of the position level of the scale output of the delay line device, thereby achieving the effect of closed loop control.
  • the optical delay line In the process of controlling the optical delay line, it can be known from the principle of equivalent time sampling that in order to obtain a complete pulse waveform of the THz period, it is necessary to change the time delay in the sampling interval of the sampling shock sequence.
  • the relative delay of the pump pulse light and the probe pulse light is adjusted by the optical delay line to obtain the intensity of different positions of the THz pulse, so that the entire terahertz time domain waveform can be detected.
  • the motion control of the optical delay line often determines the speed and acquisition amount of the THz time domain pulse data acquisition, and then determines the detection time and resolution of the THz-TDS system.
  • the step of continuous acquisition by the voice coil motor may be: after the system is initialized, the movement is performed according to the set speed and the stroke control delay line, and data acquisition is performed at the same time, and the data acquisition occurs in the whole process of the optical delay line movement.
  • the analog signal after phase-locked amplification is converted by a high-speed ADC.
  • the sampling rate can be from 20KHz to 500KHz. A large amount of data can be collected in a short time.
  • the analog signal is phase-locked and amplified, and then converted to the FPGA through AD conversion.
  • the FIFO buffer can buffer the data of one scan period and then write it to the FLASH. At the same time, it can be directly uploaded to the server for analysis through the Gigabit Ethernet port.
  • the terahertz time-domain pulse signal acquisition system of the embodiment can realize data acquisition of up to 500KHz, and the single-step continuous acquisition of 1000 data time is only 83.33ms in the step size of 4um, which can perform fast and high precision on the terahertz time domain pulse signal. Acquisition.
  • the present application also provides a computer readable storage medium and a computer device.
  • a computer readable storage medium of the present application stores a computer program that, when executed by a processor, causes the processor to perform the steps of the terahertz time domain pulse signal acquisition method as described above.
  • a computer device of the present application includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform terahertz as described above The steps of the domain pulse signal acquisition method.
  • Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • Synchlink DRAM SLDRAM
  • Memory Bus Radbus
  • RDRAM Direct RAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Abstract

The present application relates to a method, apparatus and system for collecting a Terahertz time-domain pulse signal, and a storage medium and a computer device. The method comprises: issuing, according to a received external control message, a delay control instruction for controlling the state of a delay line; when the delay line is in an operating state, acquiring a Terahertz time-domain pulse signal and caching the Terahertz time-domain pulse signal in a preset data buffer queue; when the data buffer queue is in a saturated state, pushing a Terahertz time-domain pulse signal that has already been cached in the current data buffer queue; and returning to the step of caching the Terahertz time-domain pulse signal in a preset data buffer queue. According to the solution of the present application, by importing a collected pulse signal into a preset data buffer queue, and pushing pulse signal data out of the data buffer queue when the data buffer queue is saturated, the problems that a communication duration is long and unequal interval collection may be easily caused when directly pushing collected data are avoided, thereby realizing the quick and reliable collection of data.

Description

太赫兹时域脉冲信号采集方法、装置和系统Terahertz time domain pulse signal acquisition method, device and system 技术领域Technical field
本申请涉及太赫兹时域光谱技术领域,特别是涉及一种太赫兹时域脉冲信号采集方法、装置、系统、计算机可读存储介质和计算机设备。The present application relates to the field of terahertz time domain spectroscopy, and in particular to a terahertz time domain pulse signal acquisition method, apparatus, system, computer readable storage medium and computer device.
背景技术Background technique
太赫兹电磁波(THz)的波长范围为0.03~3mm,相应的频率范围在0.1~10THz,介于微波和红外之间。由于其处于电磁波谱中电子学向光子学过渡的特殊位置,具有穿透性强,光谱分辨率高,安全性好等特点,近年来其学术和应用价值受到世界范围的广泛关注。太赫兹时域光谱(THz-TDs)技术能够同时探测THz波的振幅和相位信息,在生物医学,安全检查,无损检测,材料特性分析,环境与食品安全,通讯等许多领域展现出巨大的应用潜力并已迅速发展成为一个令人关注的新兴研究方向。The terahertz electromagnetic wave (THz) has a wavelength range of 0.03 to 3 mm, and the corresponding frequency range is 0.1 to 10 THz, which is between the microwave and the infrared. Because of its special position in the transition of electronics to photonics in the electromagnetic spectrum, it has the characteristics of strong penetrability, high spectral resolution and good safety. In recent years, its academic and application value has been widely concerned worldwide. Terahertz time-domain spectroscopy (THz-TDs) technology can simultaneously detect the amplitude and phase information of THz waves, showing great applications in many fields such as biomedicine, safety inspection, non-destructive testing, material property analysis, environment and food safety, communication, etc. The potential has rapidly evolved into a new and interesting research direction.
目前,THz-TDS系统已从庞大笨重的实验室装置发展为紧凑廉价的实用化光谱仪,近年来人们对于THz-TDS技术及其系统仪器化进行了大量的研究,太赫兹时域脉冲信号的快速自动化采集是仪器化应用亟需解决的主要问题之一。传统的THz-TDS进行THz时域脉冲信号采集时获得的是由锁相放大器(Lock-in Amplifier,LIA)提供给计算机的采集数据,锁相放大器与计算机的通信时间较长,数据采集效率低,且锁相放大器提供的数据为单点数据,易受噪声影响,数据可靠度有限。At present, the THz-TDS system has evolved from a bulky and cumbersome laboratory device to a compact and inexpensive practical spectrometer. In recent years, a lot of research has been done on the THz-TDS technology and its system instrumentation, and the terahertz time domain pulse signal is fast. Automated acquisition is one of the main problems that need to be solved in instrumentation applications. The traditional THz-TDS acquires the THz time-domain pulse signal acquisition data obtained by the lock-in amplifier (LIA) to the computer. The lock-in amplifier has a long communication time with the computer and the data collection efficiency is low. The data provided by the lock-in amplifier is single-point data, which is susceptible to noise and has limited data reliability.
发明内容Summary of the invention
基于此,有必要针对上述问题,提供一种采集效率高、可靠性强的太赫兹时域脉冲信号采集方法、装置、系统、计算机可读存储介质和计算机设备。Based on this, it is necessary to provide a megahertz time domain pulse signal acquisition method, device, system, computer readable storage medium and computer device with high collection efficiency and high reliability.
一种太赫兹时域脉冲信号采集方法,包括步骤:A terahertz time domain pulse signal acquisition method, comprising the steps of:
根据接收的外部控制消息下发延迟控制指令,延迟控制指令用于控制延迟 线的所处状态;And sending a delay control instruction according to the received external control message, where the delay control instruction is used to control the state of the delay line;
当侦测到延迟线处于工作状态时,获取太赫兹时域脉冲信号,并将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中;When detecting that the delay line is in an active state, acquiring a terahertz time domain pulse signal, and buffering the terahertz time domain pulse signal into a preset data buffer queue;
当侦测到数据缓冲队列处于饱和状态时,推送当前数据缓冲队列中已缓存的太赫兹时域脉冲信号;When the data buffer queue is detected to be saturated, the buffered terahertz time domain pulse signal in the current data buffer queue is pushed;
返回将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中的步骤。Returns the step of buffering the terahertz time domain pulse signal into a preset data buffer queue.
在一个实施例中,延迟控制指令包括工作状态控制指令或复位控制指令。In one embodiment, the delay control instruction includes an operational state control instruction or a reset control instruction.
在一个实施例中,当侦测到延迟线处于工作状态时,获取太赫兹时域脉冲信号,并将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中的步骤包括:In one embodiment, when detecting that the delay line is in an active state, acquiring the terahertz time domain pulse signal and buffering the terahertz time domain pulse signal into the preset data buffer queue includes:
侦测延迟线输出的位置电平信号;Detecting a position level signal output by the delay line;
当位置电平信号处于上升沿时,采集太赫兹时域脉冲信号;Collecting a terahertz time domain pulse signal when the position level signal is at a rising edge;
将太赫兹时域脉冲信号缓存至先入先出队列中。The terahertz time domain pulse signal is buffered into the first in first out queue.
在一个实施例中,将太赫兹时域脉冲信号缓存至先入先出队列中的步骤之前包括:对太赫兹时域脉冲信号进行模数转换。In one embodiment, the step of buffering the terahertz time domain pulse signal into the first in first out queue includes performing analog to digital conversion on the terahertz time domain pulse signal.
在一个实施例中,返回将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中的步骤的步骤之前包括:In one embodiment, the step of returning the step of buffering the terahertz time domain pulse signal into the preset data buffer queue comprises:
将当前数据缓冲队列中已缓存的太赫兹时域脉冲信号储存至外部存储器中。The buffered terahertz time domain pulse signals in the current data buffer queue are stored in an external memory.
一种太赫兹时域脉冲信号采集装置,包括:A terahertz time domain pulse signal collecting device, comprising:
控制指令下发模块,用于根据接收的外部控制消息下发延迟控制指令,延迟控制指令用于控制延迟线的所处状态;a control instruction issuing module, configured to send a delay control instruction according to the received external control message, where the delay control instruction is used to control the state of the delay line;
脉冲信号采集模块,用于当侦测到延迟线处于工作状态时,获取太赫兹时域脉冲信号,并将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中;a pulse signal acquisition module, configured to acquire a terahertz time domain pulse signal when the delay line is detected to be in an active state, and buffer the terahertz time domain pulse signal into a preset data buffer queue;
脉冲信号推送模块,用于当侦测到数据缓冲队列处于饱和状态时,推送当前数据缓冲队列中已缓存的太赫兹时域脉冲信号;a pulse signal pushing module, configured to: when the data buffer queue is detected to be saturated, push the buffered terahertz time domain pulse signal in the current data buffer queue;
连续采集模块,用于返回将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中的步骤。The continuous acquisition module is configured to return a step of buffering the terahertz time domain pulse signal into a preset data buffer queue.
一种太赫兹时域脉冲信号采集系统,包括锁相放大器、延迟线和如上所述 的太赫兹时域脉冲信号采集装置;A terahertz time domain pulse signal acquisition system comprising a lock-in amplifier, a delay line and a terahertz time domain pulse signal acquisition device as described above;
太赫兹时域脉冲信号采集装置分别与锁相放大器和延迟线连接。The terahertz time domain pulse signal acquisition device is connected to the lock-in amplifier and the delay line, respectively.
在一个实施例中,还包括模数转换器、延迟线控制装置和闪存中的至少一种;In one embodiment, further comprising at least one of an analog to digital converter, a delay line control device, and a flash memory;
模数转换器分别与太赫兹时域脉冲信号采集装置和锁相放大器连接;The analog-to-digital converter is respectively connected to the terahertz time domain pulse signal collecting device and the lock-in amplifier;
延迟线控制装置设于太赫兹时域脉冲信号采集装置和延迟线的连接节点上;The delay line control device is disposed on the connection node of the terahertz time domain pulse signal acquisition device and the delay line;
闪存与太赫兹时域脉冲信号采集装置连接。The flash memory is connected to the terahertz time domain pulse signal acquisition device.
一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行如上所述方法的步骤。A computer readable storage medium storing a computer program, when executed by a processor, causes the processor to perform the steps of the method as described above.
一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上所述方法的步骤。A computer apparatus comprising a memory and a processor, the memory storing a computer program, the computer program being executed by the processor, causing the processor to perform the steps of the method as described above.
上述太赫兹时域脉冲信号采集方法、装置、系统、计算机可读存储介质和计算机设备,根据接收的外部控制消息下发延迟控制指令,以控制延迟线的所处状态,当侦测到延迟线处于工作状态时,获取太赫兹时域脉冲信号,并将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中,当侦测到数据缓冲队列处于饱和状态时,推送当前数据缓冲队列中已缓存的太赫兹时域脉冲信号,返回将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中的步骤。本申请的方案通过将采集的太赫兹时域脉冲信号导入预设的数据缓冲队列中,在数据缓冲队列饱和时再将其中的太赫兹时域脉冲信号推送出,避免了直接将采集的数据推送时通信时间长,容易导致非等间隔采集的问题,从而实现了对数据的快速、可靠采集。The terahertz time domain pulse signal acquisition method, device, system, computer readable storage medium and computer device send a delay control instruction according to the received external control message to control the state of the delay line, when the delay line is detected When in the working state, the terahertz time domain pulse signal is acquired, and the terahertz time domain pulse signal is buffered into a preset data buffer queue. When the data buffer queue is detected to be saturated, the current data buffer queue is pushed. The buffered terahertz time domain pulse signal returns a step of buffering the terahertz time domain pulse signal into a preset data buffer queue. The solution of the present application introduces the collected terahertz time domain pulse signal into a preset data buffer queue, and pushes the terahertz time domain pulse signal out when the data buffer queue is saturated, thereby avoiding directly pushing the collected data. The long communication time is easy to cause non-equal interval acquisition problems, thus achieving fast and reliable collection of data.
附图说明DRAWINGS
图1为本申请一实施例中太赫兹时域脉冲信号采集方法的流程示意图;1 is a schematic flow chart of a method for collecting a terahertz time domain pulse signal according to an embodiment of the present application;
图2为本申请一实施例中太赫兹时域脉冲信号采集装置的结构示意框图;2 is a schematic block diagram showing the structure of a terahertz time domain pulse signal collecting apparatus according to an embodiment of the present application;
图3为本申请一实施例中太赫兹时域脉冲信号采集系统的结构示意框图;3 is a schematic block diagram showing the structure of a terahertz time domain pulse signal acquisition system according to an embodiment of the present application;
图4为本申请另一实施例中太赫兹时域脉冲信号采集系统的结构示意框图。4 is a schematic block diagram showing the structure of a terahertz time domain pulse signal acquisition system according to another embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步的详细说明。应当理解,此处所描述的具体实施方式仅仅用以解释本申请,并不限定本申请的保护范围。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the application and are not intended to limit the scope of the application.
图1为本申请一实施例中太赫兹时域脉冲信号采集方法的流程示意图。如图1所示,本实施例中,太赫兹时域脉冲信号采集方法包括:FIG. 1 is a schematic flow chart of a method for collecting a terahertz time domain pulse signal according to an embodiment of the present application. As shown in FIG. 1, in this embodiment, a terahertz time domain pulse signal acquisition method includes:
步骤S101:根据接收的外部控制消息下发延迟控制指令,延迟控制指令用于控制延迟线的所处状态。Step S101: The delay control command is sent according to the received external control message, and the delay control command is used to control the state of the delay line.
可以通过无线或有线通信方式,接收外部控制消息,外部控制消息可以由上位机的服务器发出,根据接收的外部消息,生成延迟控制指令,并将该延迟控制指令下发至延迟线,以控制延迟线的所处状态。具体的,接收外部控制消息后,对该外部控制消息进行分析,根据分析结果生成延迟控制指令并将其下发。延迟控制指令可以包括工作状态控制指令或复位控制指令,分别对应控制延迟线进入对应的工作状态或进行复位,回到初始化状态。The external control message can be received by wireless or wired communication, and the external control message can be sent by the server of the upper computer, generate a delay control instruction according to the received external message, and send the delay control command to the delay line to control the delay. The state of the line. Specifically, after receiving the external control message, the external control message is analyzed, and a delay control instruction is generated according to the analysis result and sent. The delay control instruction may include an operation state control instruction or a reset control instruction, respectively corresponding to the control delay line entering a corresponding working state or resetting, and returning to the initialization state.
步骤S103:当侦测到延迟线处于工作状态时,获取太赫兹时域脉冲信号,并将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中。Step S103: When detecting that the delay line is in an active state, acquiring a terahertz time domain pulse signal, and buffering the terahertz time domain pulse signal into a preset data buffer queue.
将延迟控制指令下发后,侦测延迟线的状态,当侦测到延迟线处于工作状态时,获取太赫兹时域脉冲信号,并将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中。具体的,在延迟线处于工作状态时,表明延迟线正对太赫兹时域脉冲信号进行延迟时间控制,此时采集太赫兹时域脉冲信号,并将其缓存至预设的数据缓冲队列中。其中,预设的数据缓冲队列用于暂时缓存采集到的太赫兹时域脉冲信号,其队列大小可以根据太赫兹时域脉冲信号的采集周期进行设定,如将其大小设为刚好对应于一个采集周期内所采集到的太赫兹时域脉冲信号量,即将采集到的太赫兹时域脉冲信号导入数据缓冲队列中时,数据缓冲队列可以刚好覆盖一个完整的采集周期。在具体实现时,数据缓冲队列可以为FIFO(First Input First Output,先入先出队列),以确保对缓冲数据的快速传递。进一 步地,对于瞬态信号的测量,一般有实时采样与等效时间采样两种方式,由于飞秒激光产生的THz脉冲为皮秒量级,其频率远超出一般电子器件的响应范围,因此记录THz脉冲的电场随时间的变化波形,采用等效时间采样原理进行处理,从而获取完整的THz时域脉冲。After the delay control command is issued, the state of the delay line is detected. When the delay line is detected to be in operation, the terahertz time domain pulse signal is acquired, and the terahertz time domain pulse signal is buffered to a preset data buffer queue. in. Specifically, when the delay line is in the working state, it indicates that the delay line is performing delay time control on the terahertz time domain pulse signal, and the terahertz time domain pulse signal is collected and buffered into a preset data buffer queue. The preset data buffer queue is used for temporarily buffering the collected terahertz time domain pulse signal, and the queue size can be set according to the acquisition period of the terahertz time domain pulse signal, such as setting the size to exactly correspond to one. The terahertz time domain pulse signal collected during the acquisition period, when the collected terahertz time domain pulse signal is introduced into the data buffer queue, the data buffer queue can just cover a complete acquisition cycle. In the specific implementation, the data buffer queue can be FIFO (First Input First Output) to ensure fast transfer of buffered data. Further, for the measurement of transient signals, there are generally two methods of real-time sampling and equivalent time sampling. Since the THz pulse generated by the femtosecond laser is on the order of picoseconds, the frequency is far beyond the response range of the general electronic device, so the recording The waveform of the electric field of the THz pulse with time is processed by the equivalent time sampling principle to obtain a complete THz time domain pulse.
步骤S105:当侦测到数据缓冲队列处于饱和状态时,推送当前数据缓冲队列中已缓存的太赫兹时域脉冲信号。Step S105: When the data buffer queue is detected to be in a saturated state, the buffered terahertz time domain pulse signal in the current data buffer queue is pushed.
在将获得的太赫兹时域脉冲信号缓存至数据缓冲队列中时,实时监测数据缓冲队列是否饱和,即其是否已缓冲满即将溢出,当监测到数据缓冲队列处于饱和状态时,推送当前数据缓冲队列中已缓存的太赫兹时域脉冲信号。具体的,在监测到数据缓冲队列处于饱和状态时,将数据缓冲队列中缓存的太赫兹时域脉冲信号推送至外部服务器,以对太赫兹时域脉冲信号进行分析,实现太赫兹时域光谱检测。在具体应用中,若数据缓冲队列为FIFO,则按照导入时间顺序,将最先导入的太赫兹时域脉冲信号进行推送,再推送后导入的太赫兹时域脉冲信号。When the obtained terahertz time domain pulse signal is buffered into the data buffer queue, the data buffer queue is monitored in real time to be saturated, that is, whether it is buffered or overflowed, and when the data buffer queue is detected to be saturated, the current data buffer is pushed. The terahertz time domain pulse signal that has been buffered in the queue. Specifically, when the data buffer queue is monitored to be saturated, the terahertz time domain pulse signal buffered in the data buffer queue is pushed to an external server to analyze the terahertz time domain pulse signal to realize terahertz time domain spectral detection. . In the specific application, if the data buffer queue is a FIFO, the terahertz time domain pulse signal that is first introduced is pushed according to the import time sequence, and then the terahertz time domain pulse signal is introduced after being pushed.
步骤S107:返回将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中的步骤。Step S107: Returning to the step of buffering the terahertz time domain pulse signal into a preset data buffer queue.
将数据缓冲队列中缓存的太赫兹时域脉冲信号推送后,返回将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中的步骤,以重新将采集的太赫兹时域脉冲信号导入数据缓冲队列中,实现连续采集和推送,从而获取完整的太赫兹时域脉冲信号。After the terahertz time domain pulse signal buffered in the data buffer queue is pushed, the step of buffering the terahertz time domain pulse signal into the preset data buffer queue is returned to re-import the collected terahertz time domain pulse signal into the data buffer. In the queue, continuous acquisition and push are implemented to obtain a complete terahertz time domain pulse signal.
上述太赫兹时域脉冲信号采集方法,根据接收的外部控制消息下发延迟控制指令,以控制延迟线的所处状态,当侦测到延迟线处于工作状态时,获取太赫兹时域脉冲信号,并将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中,当侦测到数据缓冲队列处于饱和状态时,推送当前数据缓冲队列中已缓存的太赫兹时域脉冲信号,返回将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中的步骤。本实施例的方案通过将采集的太赫兹时域脉冲信号导入预设的数据缓冲队列中,在数据缓冲队列饱和时再将其中的太赫兹时域脉冲信号推送出,避免了直接将采集的数据推送时通信时间长,容易导致非等间隔采集的问题,从 而实现了对数据的快速、可靠采集。The terahertz time domain pulse signal acquisition method sends a delay control command according to the received external control message to control the state of the delay line, and acquires a terahertz time domain pulse signal when the delay line is detected to be in an active state. The terahertz time domain pulse signal is buffered into a preset data buffer queue, and when the data buffer queue is detected to be saturated, the buffered terahertz time domain pulse signal in the current data buffer queue is pushed, and the terahertz is returned. The step of buffering the time domain pulse signal into a preset data buffer queue. The solution of this embodiment introduces the collected terahertz time domain pulse signal into a preset data buffer queue, and pushes the terahertz time domain pulse signal out when the data buffer queue is saturated, thereby avoiding directly collecting the data. The communication time is long when pushing, which easily leads to the problem of non-equal interval acquisition, thus realizing the fast and reliable collection of data.
进一步地,延迟控制指令包括工作状态控制指令或复位控制指令。Further, the delay control instruction includes an operation status control instruction or a reset control instruction.
具体的,首先接收外部控制消息,可以通过无线通信方式,如无线局域网络,蓝牙通信方式等,也可以通过有线通信方式,如通过网络接口接收外部服务器发送的外部控制消息。更具体的,网络接口可以为RJ45接口,RJ45是布线系统中信息插座(即通信引出端)连接器的一种,连接器由插头(接头、水晶头)和插座(模块)组成,插头有8个凹槽和8个触点。对接收的外部控制消息进行分析,生成工作状态控制指令或复位控制指令,其中,工作状态控制指令用于控制延迟线的工作状态参数,如位移量、行程、速度等,复位控制指令用于控制延迟线进行复位,返回初始化状态。最后将生成的工作状态控制指令或复位控制指令下发,延迟控制指令包括工作状态控制指令或复位控制指令。Specifically, the external control message is received first, and may be received by a wireless communication method, such as a wireless local area network, a Bluetooth communication mode, or the like, or may be received by a wired communication method, such as an external control message sent by an external server through a network interface. More specifically, the network interface can be an RJ45 interface, and the RJ45 is a type of information socket (ie, communication terminal) connector in the wiring system. The connector is composed of a plug (connector, crystal head) and a socket (module), and the plug has 8 One groove and eight contacts. The received external control message is analyzed to generate a working state control command or a reset control command, wherein the working state control command is used to control the working state parameter of the delay line, such as the displacement amount, the stroke, the speed, etc., and the reset control command is used for controlling The delay line is reset and returns to the initialization state. Finally, the generated working state control instruction or the reset control instruction is issued, and the delayed control instruction includes a working state control instruction or a reset control instruction.
进一步地,当侦测到延迟线处于工作状态时,获取太赫兹时域脉冲信号,并将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中的步骤可以通过以下形式进行:Further, when detecting that the delay line is in an active state, the step of acquiring the terahertz time domain pulse signal and buffering the terahertz time domain pulse signal into the preset data buffer queue may be performed by:
侦测延迟线输出的位置电平信号;Detecting a position level signal output by the delay line;
当位置电平信号处于上升沿时,采集太赫兹时域脉冲信号;Collecting a terahertz time domain pulse signal when the position level signal is at a rising edge;
将太赫兹时域脉冲信号缓存至先入先出队列中。The terahertz time domain pulse signal is buffered into the first in first out queue.
在将延迟控制指令下发后,侦测延迟线的状态,具体可以侦测延迟线输出的位置电平信号,更具体的,可以侦测延迟线的光栅尺输出的位置电平信号,当侦测到该位置电平信号处于上升沿时,即位置电平信号从低电平(数字“0”)变为高电平(数字“1”)时,进行太赫兹时域脉冲信号采集,并将获取的太赫兹时域脉冲信号缓存至先入先出队列中。其中,先入先出队列作为数据缓冲队列,其队列大小可以与一个太赫兹时域脉冲信号的采集周期所采集的数据量相同,以使该先入先出队列正好覆盖一个完整的太赫兹时域脉冲信号采集周期。After the delay control command is issued, the state of the delay line is detected, and the position level signal outputted by the delay line can be detected, and more specifically, the position level signal of the scale output of the delay line can be detected. When the position level signal is detected as a rising edge, that is, when the position level signal changes from a low level (number “0”) to a high level (number “1”), the terahertz time domain pulse signal acquisition is performed, and The acquired terahertz time domain pulse signal is buffered into the first in first out queue. The first in first out queue is used as the data buffer queue, and the queue size can be the same as the data collected in the acquisition period of a terahertz time domain pulse signal, so that the first in first out queue just covers a complete terahertz time domain pulse. Signal acquisition cycle.
进一步地,将太赫兹时域脉冲信号缓存至先入先出队列中的步骤之前包括:对太赫兹时域脉冲信号进行模数转换。Further, the step of buffering the terahertz time domain pulse signal into the first in first out queue includes: performing analog to digital conversion on the terahertz time domain pulse signal.
采集获得的太赫兹时域脉冲信号为模拟信号,而先入先出队列为数字信号缓存队列,故将太赫兹时域脉冲信号缓存至先入先出队列中的步骤之前,对采 集得到的太赫兹时域脉冲信号进行模数转换,以将模拟的太赫兹时域脉冲信号转换成数字的太赫兹时域脉冲信号,数字的太赫兹时域脉冲信号用于导入先入先出队列中。The acquired terahertz time domain pulse signal is an analog signal, and the first in first out queue is a digital signal buffer queue, so the terahertz time is obtained before the step of buffering the terahertz time domain pulse signal into the first in first out queue. The domain pulse signal is analog-to-digital converted to convert the analog terahertz time domain pulse signal into a digital terahertz time domain pulse signal, and the digital terahertz time domain pulse signal is used to be introduced into the first in first out queue.
进一步地,返回将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中的步骤的步骤之前包括:Further, the step of returning the step of buffering the terahertz time domain pulse signal into the preset data buffer queue includes:
将当前数据缓冲队列中已缓存的太赫兹时域脉冲信号储存至外部存储器中。The buffered terahertz time domain pulse signals in the current data buffer queue are stored in an external memory.
在返回将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中的步骤中,进行连续采集之前,将当前数据缓冲队列中已缓存的太赫兹时域脉冲信号储存至外部存储器中。具体的,可以在进行推送数据缓冲队列中的太赫兹时域脉冲信号的步骤的同时,将当前数据缓冲队列中的太赫兹时域脉冲信号储存至外部存储器中,外部存储器可以为FLASH存储器,即闪存;也可以在在进行推送数据缓冲队列中的太赫兹时域脉冲信号的步骤之前或之后,将数据缓冲队列中的太赫兹时域脉冲信号储存至外部存储器中,以对采集的信号及时保存。In the step of returning the buffer of the terahertz time domain pulse signal to the preset data buffer queue, the buffered terahertz time domain pulse signal in the current data buffer queue is stored in the external memory before the continuous acquisition. Specifically, the terahertz time domain pulse signal in the current data buffer queue may be stored in the external memory while the step of pushing the terahertz time domain pulse signal in the data buffer queue is performed, and the external memory may be a FLASH memory, that is, Flash memory; the terahertz time domain pulse signal in the data buffer queue can also be stored in an external memory before or after the step of pushing the terahertz time domain pulse signal in the data buffer queue to save the acquired signal in time. .
基于上述太赫兹时域脉冲信号采集方法,本申请还提供一种太赫兹时域脉冲信号采集装置。Based on the above terahertz time domain pulse signal acquisition method, the present application further provides a terahertz time domain pulse signal acquisition device.
图2为本申请一实施例中太赫兹时域脉冲信号采集装置20的结构示意框图。如图所示,本实施例中,太赫兹时域脉冲信号采集装置20包括:FIG. 2 is a schematic block diagram showing the structure of a terahertz time domain pulse signal collecting apparatus 20 according to an embodiment of the present application. As shown in the figure, in the embodiment, the terahertz time domain pulse signal collecting device 20 includes:
控制指令下发模块201,用于根据接收的外部控制消息下发延迟控制指令,延迟控制指令用于控制延迟线的所处状态;The control instruction issuance module 201 is configured to issue a delay control instruction according to the received external control message, where the delay control instruction is used to control the state of the delay line;
脉冲信号采集模块203,用于当侦测到延迟线处于工作状态时,获取太赫兹时域脉冲信号,并将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中;The pulse signal acquisition module 203 is configured to: when detecting that the delay line is in an active state, acquire a terahertz time domain pulse signal, and buffer the terahertz time domain pulse signal into a preset data buffer queue;
脉冲信号推送模块205,用于当侦测到数据缓冲队列处于饱和状态时,推送当前数据缓冲队列中已缓存的太赫兹时域脉冲信号;The pulse signal pushing module 205 is configured to: when the data buffer queue is detected to be in a saturated state, push the buffered terahertz time domain pulse signal in the current data buffer queue;
连续采集模块207,用于返回将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中的步骤。The continuous acquisition module 207 is configured to return a step of buffering the terahertz time domain pulse signal into a preset data buffer queue.
上述太赫兹时域脉冲信号采集装置,通过控制指令下发模块根据接收的外部控制消息下发延迟控制指令,以控制延迟线的所处状态,通过脉冲信号采集 模块在侦测到延迟线处于工作状态时,采集太赫兹时域脉冲信号,并将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中,通过脉冲信号推送模块在监测到数据缓冲队列处于饱和状态时,推送当前数据缓冲队列中已缓存的太赫兹时域脉冲信号,通过连续采集模块返回将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中的步骤。本实施例的方案通过将采集的太赫兹时域脉冲信号导入预设的数据缓冲队列中,在数据缓冲队列饱和时再将其中的太赫兹时域脉冲信号推送出,避免了直接将采集的数据推送时通信时间长,容易导致非等间隔采集的问题,从而实现了对数据的快速、可靠采集。The terahertz time domain pulse signal collecting device sends a delay control command according to the received external control message to control the state of the delay line, and the pulse signal collecting module detects that the delay line is working. In the state, the terahertz time domain pulse signal is collected, and the terahertz time domain pulse signal is buffered into a preset data buffer queue, and the current data buffer queue is pushed by the pulse signal pushing module when the data buffer queue is detected to be saturated. The buffered terahertz time domain pulse signal returns a step of buffering the terahertz time domain pulse signal into a preset data buffer queue through the continuous acquisition module. The solution of this embodiment introduces the collected terahertz time domain pulse signal into a preset data buffer queue, and pushes the terahertz time domain pulse signal out when the data buffer queue is saturated, thereby avoiding directly collecting the data. The communication time is long when pushing, which easily leads to the problem of non-equal interval acquisition, thus realizing the fast and reliable collection of data.
基于上述太赫兹时域脉冲信号采集方法和装置,本申请还提供一种太赫兹时域脉冲信号采集系统。Based on the above terahertz time domain pulse signal acquisition method and apparatus, the present application also provides a terahertz time domain pulse signal acquisition system.
图3为本申请一实施例中太赫兹时域脉冲信号采集系统的结构示意框图。如图3所示,本实施例中,太赫兹时域脉冲信号采集系统包括锁相放大器301、延迟线302和如上所述的太赫兹时域脉冲信号采集装置20;FIG. 3 is a schematic block diagram showing the structure of a terahertz time domain pulse signal acquisition system according to an embodiment of the present application. As shown in FIG. 3, in this embodiment, the terahertz time domain pulse signal acquisition system includes a lock-in amplifier 301, a delay line 302, and a terahertz time domain pulse signal acquisition device 20 as described above;
太赫兹时域脉冲信号采集装置20分别与锁相放大器301和延迟线连接302。The terahertz time domain pulse signal acquisition device 20 is coupled to a lock-in amplifier 301 and a delay line 302, respectively.
具体的,锁相放大器301是一种对交变信号进行相敏检波的放大器,它利用和被测信号有相同频率和相位关系的参考信号作为比较基准,只对被测信号本身和那些与参考信号同频(或者倍频)、同相的噪声分量有响应。因此,锁相放大器301能大幅度抑制无用噪声,改善检测信噪比。此外,锁相放大器301有很高的检测灵敏度,信号处理比较简单,是弱光信号检测的一种有效方法。延迟线302用于将电信号延迟一段时间,延迟线302在通带内有平坦的幅频特性和一定的相移特性(或延时频率特性),有适当的匹配阻抗,衰减小。延迟线302对模拟信号一般用电感和电容组成或直接用同轴电缆和螺旋线。延迟线302广泛应用于雷达、电子计算机、彩色电视系统、通信系统,以及测量仪器(如示波器)中。具体的,延迟线302可以包括光学延迟线,延迟线302的运动可以通过延迟线控制装置进行控制,更具体的,延迟线控制装置可以包括音圈电机,用于控制延迟线302的位移量和速度。Specifically, the lock-in amplifier 301 is an amplifier that performs phase-sensitive detection on an alternating signal, and uses a reference signal having the same frequency and phase relationship with the measured signal as a comparison reference, only for the measured signal itself and those with reference. The signal is responsive to the same frequency (or multiplication) and in-phase noise components. Therefore, the lock-in amplifier 301 can greatly suppress unwanted noise and improve the detection signal-to-noise ratio. In addition, the lock-in amplifier 301 has high detection sensitivity and simple signal processing, and is an effective method for detecting weak light signals. The delay line 302 is used to delay the electrical signal for a period of time. The delay line 302 has a flat amplitude frequency characteristic and a certain phase shift characteristic (or delay frequency characteristic) in the pass band, and has an appropriate matching impedance and a small attenuation. The delay line 302 is typically composed of an inductor and a capacitor for the analog signal or directly with a coaxial cable and a spiral. Delay line 302 is widely used in radars, electronic computers, color television systems, communication systems, and measuring instruments such as oscilloscopes. Specifically, the delay line 302 may include an optical delay line, and the motion of the delay line 302 may be controlled by a delay line control device. More specifically, the delay line control device may include a voice coil motor for controlling the displacement amount of the delay line 302 and speed.
上述太赫兹时域脉冲信号采集系统,由太赫兹时域脉冲信号采集装置根据接收的外部控制消息下发延迟控制指令,以控制延迟线的所处状态,当侦测到 延迟线处于工作状态时,通过锁相放大器采集太赫兹时域脉冲信号,并将锁相放大器采集的太赫兹时域脉冲信号缓存至预设的数据缓冲队列中,当监测到数据缓冲队列处于饱和状态时,推送当前数据缓冲队列中已缓存的太赫兹时域脉冲信号,返回将太赫兹时域脉冲信号缓存至预设的数据缓冲队列中的步骤。本实施例的方案通过控制延迟线运动,并在延迟线运动过程中通过锁相放大器进行太赫兹时域脉冲信号采集,将锁相放大器采集的太赫兹时域脉冲信号导入预设的数据缓冲队列中,在数据缓冲队列饱和时再将其中的太赫兹时域脉冲信号推送出,避免了直接将采集的数据推送时通信时间长,容易导致非等间隔采集的问题,从而实现了对数据的快速、可靠采集。The terahertz time domain pulse signal acquisition system sends a delay control command according to the received external control message to control the state of the delay line when the delay line is in operation. The terahertz time domain pulse signal is collected by the lock-in amplifier, and the terahertz time domain pulse signal collected by the lock-in amplifier is buffered into a preset data buffer queue, and when the data buffer queue is detected to be saturated, the current data is pushed. The buffered terahertz time domain pulse signal in the buffer queue returns the step of buffering the terahertz time domain pulse signal into a preset data buffer queue. The scheme of the embodiment controls the delay line motion, and the terahertz time domain pulse signal is collected by the lock-in amplifier during the delay line motion, and the terahertz time domain pulse signal collected by the lock-in amplifier is introduced into the preset data buffer queue. In the data buffer queue saturation, the terahertz time domain pulse signal is pushed out, which avoids the long communication time when the collected data is directly pushed, which easily leads to the problem of non-equal interval acquisition, thereby realizing the rapid data acquisition. Reliable collection.
进一步地,本申请的太赫兹时域脉冲信号采集系统还可以包括模数转换器,模数转换器分别与太赫兹时域脉冲信号采集装置20和锁相放大器301连接。Further, the terahertz time domain pulse signal acquisition system of the present application may further include an analog to digital converter connected to the terahertz time domain pulse signal acquisition device 20 and the lock phase amplifier 301, respectively.
模数转换器分别与太赫兹时域脉冲信号采集装置20和锁相放大器301连接,对锁相放大器301采集的模拟太赫兹时域脉冲信号进行模数转换,得到数字太赫兹时域脉冲信号,并将数字太赫兹时域脉冲信号发送至太赫兹时域脉冲信号采集装置20中。The analog-to-digital converter is respectively connected to the terahertz time domain pulse signal collecting device 20 and the lock-in amplifier 301, and performs analog-to-digital conversion on the analog terahertz time domain pulse signal collected by the lock-in amplifier 301 to obtain a digital terahertz time domain pulse signal. The digital terahertz time domain pulse signal is sent to the terahertz time domain pulse signal acquisition device 20.
进一步地,本申请的太赫兹时域脉冲信号采集系统还可以包括延迟线控制装置,延迟线控制装置设于太赫兹时域脉冲信号采集装置20和延迟线302的连接节点上。Further, the terahertz time domain pulse signal acquisition system of the present application may further include a delay line control device provided on the connection node of the terahertz time domain pulse signal acquisition device 20 and the delay line 302.
延迟线控制装置设于太赫兹时域脉冲信号采集装置20和锁相放大器301之间,用于接收太赫兹时域脉冲信号采集装置20发送的延迟控制指令,并对延迟线302进行相应控制。在具体应用中,延迟线控制装置可以为音圈电机,用于控制延迟线302的位移量和速度。The delay line control device is disposed between the terahertz time domain pulse signal acquisition device 20 and the lock-in amplifier 301 for receiving the delay control command sent by the terahertz time domain pulse signal acquisition device 20 and correspondingly controlling the delay line 302. In a particular application, the delay line control device can be a voice coil motor for controlling the amount and speed of displacement of the delay line 302.
进一步地,本申请的太赫兹时域脉冲信号采集系统还可以包括闪存,闪存与太赫兹时域脉冲信号采集装置20连接。Further, the terahertz time domain pulse signal acquisition system of the present application may further include a flash memory connected to the terahertz time domain pulse signal acquisition device 20.
闪存,即FLASH存储器是一种非易失性(在断电情况下仍能保持所存储的数据信息)的存储器,闪存存取速度快,无噪音,散热小,可以实现对太赫兹时域脉冲信号的快速存储。Flash memory, that is, FLASH memory is a non-volatile memory that can maintain the stored data information in the case of power failure. The flash memory access speed is fast, no noise, and the heat dissipation is small, and the terahertz time domain pulse can be realized. Fast storage of signals.
图4为本申请另一实施例中太赫兹时域脉冲信号采集系统的结构示意框图。 如图4所示,本实施例中,太赫兹时域脉冲信号采集系统包括作为太赫兹时域脉冲信号采集装置的FPGA(Field-Programmable Gate Array,现场可编程门阵列),FPGA中内置有先入先出队列FIFO、AD/DC适配器,即交流直流电源适配器、连接外部服务器的网络接口RJ45、闪存FALSH、延迟线控制装置、光学延迟线、模数转换器ADC、锁相放大器LIA和前置放大器PreAMP;4 is a schematic block diagram showing the structure of a terahertz time domain pulse signal acquisition system according to another embodiment of the present application. As shown in FIG. 4, in the embodiment, the terahertz time domain pulse signal acquisition system includes an FPGA (Field-Programmable Gate Array) as a terahertz time domain pulse signal acquisition device, and a built-in pre-input in the FPGA. First-out queue FIFO, AD/DC adapter, ie AC-DC power adapter, network interface RJ45 connected to external server, flash memory FALSH, delay line control, optical delay line, analog-to-digital converter ADC, lock-in amplifier LIA and preamplifier PreAMP;
其中,FIFO分别与ADC、RJ45和FLASH连接,FPGA还分别与ADC、LIA、PreAMP、延迟线控制装置和AD/DC适配器连接,ADC、LIA和PreAMP依次连接,光学延迟线与延迟线控制装置连接。The FIFO is connected to the ADC, RJ45 and FLASH respectively. The FPGA is also connected to the ADC, LIA, PreAMP, delay line control device and AD/DC adapter respectively. The ADC, LIA and PreAMP are connected in turn, and the optical delay line is connected with the delay line control device. .
具体的,FPGA作为数据采集控制中心,FPGA可以为基于XILINX的FPGA。进行连续扫描采集时,为避免锁相放大器(LIA)与上位机,即服务器通信造成的非等间隔采样,系统采用18位高速ADC与FPGA内FLASH同步存储数据的方法,同时将ADC转换而来的数据放入深度为20K的FIFO(先入先出队列)内,使之正好覆盖一个完整的采集周期,当FIFO满时通过千兆网口即,RJ45上传给服务器。此外,LIA与FPGA的IO口连接,FPGA通过IO口下发设置参数,实现对LIA的控制,而光学延迟线由延迟线控制装置进行直接控制,延迟线控制装置可以为音圈电机。系统初始化后,外部服务器通过物理层PHY芯片发送外部控制消息,经过网络接口RJ45发送至FPGA内,外部控制消息经FPGA解析后获取外部控制消息中设定的位移量与速度,从而控制音圈电机的运动,并同时进行数据采集。其中,音圈电机的位移量决定了数据采集量,音圈电机的位移量越大,则数据采集量越大;音圈电机的运动速度决定了数据采集速度,音圈电机的速度越大,数据采集速度越快。Specifically, the FPGA acts as a data acquisition control center, and the FPGA can be an XILINX-based FPGA. In order to avoid non-equal interval sampling caused by the lock-in amplifier (LIA) and the host computer, ie, server communication, the system uses 18-bit high-speed ADC to store data synchronously with FLASH in the FPGA, and converts the ADC at the same time. The data is placed in a FIFO (first in first out queue) with a depth of 20K, so that it covers exactly one complete acquisition cycle. When the FIFO is full, the RJ45 is uploaded to the server through the Gigabit Ethernet port. In addition, the LIA is connected to the IO port of the FPGA, and the FPGA sends the setting parameters through the IO port to realize the control of the LIA, and the optical delay line is directly controlled by the delay line control device, and the delay line control device can be a voice coil motor. After the system is initialized, the external server sends an external control message through the physical layer PHY chip, and sends it to the FPGA through the network interface RJ45. The external control message is parsed by the FPGA to obtain the displacement amount and speed set in the external control message, thereby controlling the voice coil motor. The movement and simultaneous data collection. Among them, the displacement of the voice coil motor determines the amount of data acquisition. The larger the displacement of the voice coil motor is, the larger the data acquisition amount is. The speed of the voice coil motor determines the data acquisition speed, and the speed of the voice coil motor is larger. The faster the data collection speed.
通过本实施例的太赫兹时域脉冲信号采集系统进行太赫兹时域脉冲信号采集时,在FPGA收到外部控制消息后,下发延迟控制指令控制光学延迟线的运动,包括速度及行程的设定,以及光学延迟线输出状态的复位等。光学延迟线控制装置将光栅尺输出的位置电平信号直接反馈给FPGA,在检测到延迟线装置的光栅尺输出的位置电平的上升沿时进行数据采集,达到了闭环控制的效果。在对光学延迟线控制过程中,由等效时间采样原理可知,为得到一个完整的THz时期脉冲波形,需要改变取样冲击序列取样间隔中的时间延迟。本实施例通过 光学延迟线来调整泵浦脉冲光和探测脉冲光的相对延迟,得到THz脉冲不同位置的强度,从而可探测到整个太赫兹时域波形。光学延迟线的运动控制往往决定THz时域脉冲数据采集的速度及采集量,进而决定THz-TDS系统检测时间及分辨率。利用音圈电机进行连续采集的步骤可以为:在系统初始化后,根据设定的速度与行程控制延迟线进行运动,并同时进行数据采集,数据采集发生在光学延迟线运动的整个过程中。锁相放大后的模拟信号用高速ADC进行转换,采样率可以从20KHz到500KHz,能在较短时间内采集大量数据,启动数据采集后,模拟信号经锁相放大后通过AD转换进入到FPGA的FIFO缓冲,缓冲够一个扫描周期的数据后可写入到FLASH中,同时通过千兆网口直接上传到服务器中进行分析。本实施例的太赫兹时域脉冲信号采集系统可实现最高500KHz的数据采集,步长4um时单步连续采集1000个数据时间仅为83.33ms,能够对太赫兹时域脉冲信号进行快速、高精度化采集。When the terahertz time domain pulse signal acquisition system of the embodiment performs the terahertz time domain pulse signal acquisition, after the FPGA receives the external control message, the delay control command is issued to control the motion of the optical delay line, including the speed and the stroke setting. And the reset of the output state of the optical delay line. The optical delay line control device directly feeds back the position level signal output from the scale to the FPGA, and performs data acquisition when detecting the rising edge of the position level of the scale output of the delay line device, thereby achieving the effect of closed loop control. In the process of controlling the optical delay line, it can be known from the principle of equivalent time sampling that in order to obtain a complete pulse waveform of the THz period, it is necessary to change the time delay in the sampling interval of the sampling shock sequence. In this embodiment, the relative delay of the pump pulse light and the probe pulse light is adjusted by the optical delay line to obtain the intensity of different positions of the THz pulse, so that the entire terahertz time domain waveform can be detected. The motion control of the optical delay line often determines the speed and acquisition amount of the THz time domain pulse data acquisition, and then determines the detection time and resolution of the THz-TDS system. The step of continuous acquisition by the voice coil motor may be: after the system is initialized, the movement is performed according to the set speed and the stroke control delay line, and data acquisition is performed at the same time, and the data acquisition occurs in the whole process of the optical delay line movement. The analog signal after phase-locked amplification is converted by a high-speed ADC. The sampling rate can be from 20KHz to 500KHz. A large amount of data can be collected in a short time. After the data acquisition is started, the analog signal is phase-locked and amplified, and then converted to the FPGA through AD conversion. The FIFO buffer can buffer the data of one scan period and then write it to the FLASH. At the same time, it can be directly uploaded to the server for analysis through the Gigabit Ethernet port. The terahertz time-domain pulse signal acquisition system of the embodiment can realize data acquisition of up to 500KHz, and the single-step continuous acquisition of 1000 data time is only 83.33ms in the step size of 4um, which can perform fast and high precision on the terahertz time domain pulse signal. Acquisition.
基于上述太赫兹时域脉冲信号采集方法、装置和系统,本申请还提供一种计算机可读存储介质和一种计算机设备。Based on the above terahertz time domain pulse signal acquisition method, apparatus and system, the present application also provides a computer readable storage medium and a computer device.
在一个实施例中,本申请的计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行如上所述太赫兹时域脉冲信号采集方法的步骤。In one embodiment, a computer readable storage medium of the present application stores a computer program that, when executed by a processor, causes the processor to perform the steps of the terahertz time domain pulse signal acquisition method as described above.
在一个实施例中,本申请的计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上所述太赫兹时域脉冲信号采集方法的步骤。In one embodiment, a computer device of the present application includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform terahertz as described above The steps of the domain pulse signal acquisition method.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器 (RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a non-volatile computer readable storage medium. Wherein, the program, when executed, may include the flow of an embodiment of the methods as described above. Any reference to a memory, storage, database or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain. Synchlink DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.

Claims (10)

  1. 一种太赫兹时域脉冲信号采集方法,其特征在于,包括步骤:A terahertz time domain pulse signal acquisition method, comprising the steps of:
    根据接收的外部控制消息下发延迟控制指令,所述延迟控制指令用于控制延迟线的所处状态;And sending a delay control instruction according to the received external control message, where the delay control instruction is used to control a state of the delay line;
    当侦测到所述延迟线处于工作状态时,获取太赫兹时域脉冲信号,并将所述太赫兹时域脉冲信号缓存至预设的数据缓冲队列中;When detecting that the delay line is in an active state, acquiring a terahertz time domain pulse signal, and buffering the terahertz time domain pulse signal into a preset data buffer queue;
    当侦测到所述数据缓冲队列处于饱和状态时,推送当前所述数据缓冲队列中已缓存的所述太赫兹时域脉冲信号;When the data buffer queue is detected to be in a saturated state, the terahertz time domain pulse signal that is buffered in the current data buffer queue is pushed;
    返回所述将所述太赫兹时域脉冲信号缓存至预设的数据缓冲队列中的步骤。Returning to the step of buffering the terahertz time domain pulse signal into a preset data buffer queue.
  2. 根据权利要求1所述的方法,其特征在于,所述延迟控制指令包括所述工作状态控制指令或所述复位控制指令。The method of claim 1 wherein said delay control command comprises said operational state control command or said reset control command.
  3. 根据权利要求1所述的方法,其特征在于,所述当侦测到所述延迟线处于工作状态时,获取太赫兹时域脉冲信号,并将所述太赫兹时域脉冲信号缓存至预设的数据缓冲队列中的步骤包括:The method according to claim 1, wherein when detecting that the delay line is in an active state, acquiring a terahertz time domain pulse signal and buffering the terahertz time domain pulse signal to a preset The steps in the data buffer queue include:
    侦测所述延迟线输出的位置电平信号;Detecting a position level signal output by the delay line;
    当所述位置电平信号处于上升沿时,采集太赫兹时域脉冲信号;Collecting a terahertz time domain pulse signal when the position level signal is at a rising edge;
    将所述太赫兹时域脉冲信号缓存至先入先出队列中。The terahertz time domain pulse signal is buffered into a first in first out queue.
  4. 根据权利要求3所述的方法,其特征在于,所述将所述太赫兹时域脉冲信号缓存至先入先出队列中的步骤之前包括:对所述太赫兹时域脉冲信号进行模数转换。The method according to claim 3, wherein said step of buffering said terahertz time domain pulse signal into said first in first out queue comprises: performing analog to digital conversion on said terahertz time domain pulse signal.
  5. 根据权利要求1所述的方法,其特征在于,所述返回所述将所述太赫兹时域脉冲信号缓存至预设的数据缓冲队列中的步骤的步骤之前包括:The method of claim 1 wherein said step of returning said step of buffering said terahertz time domain pulse signal into a predetermined data buffer queue comprises:
    将当前所述数据缓冲队列中已缓存的所述太赫兹时域脉冲信号储存至外部存储器中。The terahertz time domain pulse signal that has been buffered in the current data buffer queue is stored in an external memory.
  6. 一种太赫兹时域脉冲信号采集装置,其特征在于,包括:A terahertz time domain pulse signal collecting device, comprising:
    控制指令下发模块,用于根据接收的外部控制消息下发延迟控制指令,所 述延迟控制指令用于控制延迟线的所处状态;And a control instruction issuing module, configured to send a delay control instruction according to the received external control message, where the delay control instruction is used to control a state of the delay line;
    脉冲信号采集模块,用于当侦测到所述延迟线处于工作状态时,获取太赫兹时域脉冲信号,并将所述太赫兹时域脉冲信号缓存至预设的数据缓冲队列中;a pulse signal acquisition module, configured to: when detecting that the delay line is in an active state, acquire a terahertz time domain pulse signal, and buffer the terahertz time domain pulse signal into a preset data buffer queue;
    脉冲信号推送模块,用于当侦测到所述数据缓冲队列处于饱和状态时,推送当前所述数据缓冲队列中已缓存的所述太赫兹时域脉冲信号;a pulse signal pushing module, configured to: when the data buffer queue is detected to be in a saturated state, push the buffered terahertz time domain pulse signal in the current data buffer queue;
    连续采集模块,用于返回所述将所述太赫兹时域脉冲信号缓存至预设的数据缓冲队列中的步骤。And a continuous acquisition module, configured to return to the step of buffering the terahertz time domain pulse signal into a preset data buffer queue.
  7. 一种太赫兹时域脉冲信号采集系统,其特征在于,包括锁相放大器、延迟线和如权利要求6所述的太赫兹时域脉冲信号采集装置;A terahertz time domain pulse signal acquisition system, comprising: a lock-in amplifier, a delay line, and the terahertz time domain pulse signal acquisition device according to claim 6;
    所述太赫兹时域脉冲信号采集装置分别与所述锁相放大器和所述延迟线连接。The terahertz time domain pulse signal acquisition device is coupled to the lock-in amplifier and the delay line, respectively.
  8. 根据权利要求7所述的系统,其特征在于,还包括模数转换器、延迟线控制装置和闪存中的至少一种;The system of claim 7 further comprising at least one of an analog to digital converter, a delay line control device, and a flash memory;
    所述模数转换器分别与所述太赫兹时域脉冲信号采集装置和所述锁相放大器连接;The analog-to-digital converter is respectively connected to the terahertz time domain pulse signal collecting device and the lock-in amplifier;
    所述延迟线控制装置设于所述太赫兹时域脉冲信号采集装置和所述延迟线的连接节点上;The delay line control device is disposed on the connection node of the terahertz time domain pulse signal acquisition device and the delay line;
    所述闪存与所述太赫兹时域脉冲信号采集装置连接。The flash memory is coupled to the terahertz time domain pulse signal acquisition device.
  9. 一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行如权利要求1至5中任一项所述方法的步骤。A computer readable storage medium storing a computer program, when executed by a processor, causes the processor to perform the steps of the method of any one of claims 1 to 5.
  10. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至5中任一项所述方法的步骤。A computer device comprising a memory and a processor, the memory storing a computer program, the computer program being executed by the processor, causing the processor to perform the method of any one of claims 1 to 5. A step of.
PCT/CN2018/080643 2017-12-29 2018-03-27 Method, apparatus and system for collecting terahertz time-domain pulse signal WO2019127951A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711480668.0A CN108303396A (en) 2017-12-29 2017-12-29 Terahertz time-domain pulse signal acquisition methods, devices and systems
CN201711480668.0 2017-12-29

Publications (1)

Publication Number Publication Date
WO2019127951A1 true WO2019127951A1 (en) 2019-07-04

Family

ID=62868346

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/080643 WO2019127951A1 (en) 2017-12-29 2018-03-27 Method, apparatus and system for collecting terahertz time-domain pulse signal

Country Status (2)

Country Link
CN (1) CN108303396A (en)
WO (1) WO2019127951A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115015797A (en) * 2022-08-08 2022-09-06 深圳市恒运昌真空技术有限公司 Radio frequency power supply signal acquisition method and device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109540834A (en) * 2018-12-13 2019-03-29 深圳市太赫兹科技创新研究院 A kind of cable aging monitoring method and system
CN117439655B (en) * 2023-11-27 2024-03-29 中国人民解放军军事科学院系统工程研究院 Space terahertz information center network lightweight caching method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104345040A (en) * 2013-07-31 2015-02-11 天津智易时代科技发展有限公司 Terahertz spectrum analysis system
CN106454492A (en) * 2016-10-12 2017-02-22 武汉斗鱼网络科技有限公司 Live pornographic content audit system and method based on delayed transmission
CN107179942A (en) * 2017-05-16 2017-09-19 中国电子科技集团公司第四十研究所 A kind of real-time data analysis task distribution processing method based on multithreading

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5939721A (en) * 1996-11-06 1999-08-17 Lucent Technologies Inc. Systems and methods for processing and analyzing terahertz waveforms
CN101841624A (en) * 2010-05-17 2010-09-22 北京思比科微电子技术股份有限公司 Image sensor data transmission method
CN106461461A (en) * 2014-01-03 2017-02-22 威利食品有限公司 Spectrometry systems, methods, and applications
CN104749130B (en) * 2014-12-03 2017-11-03 北京环境特性研究所 The fast scanning method of terahertz time-domain spectroscopy system
CN104833650B (en) * 2015-05-29 2018-08-21 南开大学 The pulse terahertz time-domain spectroscopy system and detection method of monochromatic light lead antenna

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104345040A (en) * 2013-07-31 2015-02-11 天津智易时代科技发展有限公司 Terahertz spectrum analysis system
CN106454492A (en) * 2016-10-12 2017-02-22 武汉斗鱼网络科技有限公司 Live pornographic content audit system and method based on delayed transmission
CN107179942A (en) * 2017-05-16 2017-09-19 中国电子科技集团公司第四十研究所 A kind of real-time data analysis task distribution processing method based on multithreading

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HU , ZIXIAO: "Design THz-TDSRapid Data Acquisition System", CHINESE MASTER'S THESES FULL-TEXT DATABASE, INFORMATION SCIENCE AND TECHNOLOGY, vol. 2017, no. 3, 31 March 2017 (2017-03-31), ISSN: 1674-0246 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115015797A (en) * 2022-08-08 2022-09-06 深圳市恒运昌真空技术有限公司 Radio frequency power supply signal acquisition method and device
CN115015797B (en) * 2022-08-08 2022-10-14 深圳市恒运昌真空技术有限公司 Radio frequency power supply signal acquisition method and device

Also Published As

Publication number Publication date
CN108303396A (en) 2018-07-20

Similar Documents

Publication Publication Date Title
Mulaveesala et al. Pulse compression approach to infrared nondestructive characterization
WO2019127951A1 (en) Method, apparatus and system for collecting terahertz time-domain pulse signal
Withayachumnankul et al. Fundamentals of measurement in terahertz time-domain spectroscopy
CN102508045B (en) Method for accurately measuring narrow pulse modulation parameter
Werley et al. Pulsed laser noise analysis and pump-probe signal detection with a data acquisition card
US10768224B2 (en) High frequency lock-in thermography using single photon detectors
GB2457409A (en) Method and device for measuring terahertz time-domain spectroscopy
CN106646323B (en) A kind of co-planar waveguide probe transmission characteristic measuring device and method
CN106442378A (en) Device for improving test accuracy of spectrum absorbance on basis of terahertz optical combs
CN102288306A (en) Method for simultaneously measuring output single-pulse energy and waveforms of lasers
CN105203495B (en) A kind of spectral signal denoising method based on Hilbert-Huang transform
TW201314194A (en) Object characteristics measurement system
CN108287132A (en) A kind of Terahertz asynchronous high-speed scanning system trigger signal generation device and method
CN109581062B (en) High-precision impedance measurement system for oscilloscope calibrator probe
CN104792705A (en) Laser power fluctuation monitoring and compensating device and method for photoacoustic spectrum measurement
KR20130091393A (en) Near field measurement system for active phased array antenna
CN110658155A (en) Terahertz spectrograph based on electron spin emission and spectral analysis system
Chen et al. Time-domain characterization of silicon-based integrated picosecond impulse radiators
CN111273209B (en) Channel consistency calibration method of dual-channel instrument
CN207133197U (en) A kind of laser energy detection circuit of laser product analysis
Zeng et al. Design and performance evaluation of a time domain microwave imaging system
Rota et al. An ultrafast linear array detector for single-shot electro-optical bunch profile measurements
CN104873208A (en) Detection method and system based on millimeter wave resonance characteristics and DSP technology
CN219533375U (en) Ultra-wideband pulse radiation device for calibrating microwave sensor
CN209624456U (en) Portable apple freshness analyzer

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18897587

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18897587

Country of ref document: EP

Kind code of ref document: A1