A Synchronous Signal Control System Based on FPGA

The FPGA module is used to realize synchronous control of the galvanometer, CCD and capture card in the OCT system, which solves the image distortion and misalignment problems caused by insufficient control accuracy in the OCT system, achieves accurate compensation for peripheral delays, and ensures image quality.

CN118444477BActive Publication Date: 2024-10-01ZHEJIANG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410904632.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-01
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

In existing OCT systems, the collected images are distorted and misaligned due to differences in galvanometer control accuracy and asynchronous control signals. Traditional control signal generation makes it difficult to adjust the delay between peripherals in real time to achieve the best synchronization control effect.

Method used

A synchronous signal control system based on FPGA is designed. Through the BRAM, frame parser, 3D scanning module and 2D scanning module in the FPGA module, combined with the sub-control unit, the synchronous control of the galvanometer, optical image sensor and capture card is realized. , by analyzing the parameters in the control frame to perform corresponding waiting and signal generation, accurately compensating for the delay of peripherals.

Benefits of technology

It achieves universal synchronization control of OCT peripherals, solves the problem of image distortion, and accurately compensates for inherent delays without consuming resources, avoiding image misalignment, which is simple and effective.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118444477B_ABST
    Figure CN118444477B_ABST
Patent Text Reader

Abstract

The present invention discloses a synchronous signal control system based on FPGA, including a host computer, an FPGA module, a galvanometer, an optical image sensor and an acquisition card, wherein the FPGA module includes a BRAM module, a frame parser, a 3D scanning module and a 2D scanning module, and the 3D scanning module and the 2D scanning module both include an operation unit, and a first sub-control unit, a second sub-control unit and a third sub-control unit corresponding to the galvanometer, the optical image sensor and the acquisition card in sequence. The present invention realizes the timing control of the OCT peripheral galvanometer, CCD and acquisition card through FPGA, realizes the universal synchronous control of the peripherals, and solves the image distortion problem caused by insufficient control accuracy of the traditional OCT system; the present invention realizes the accurate compensation of the inherent delay of the peripherals without consuming any resources by separately configuring the delay of the peripheral galvanometer, CCD and acquisition card, and solves the misalignment problem of the collected OCT image, and is simple and effective.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of image acquisition, and in particular relates to a synchronous signal control system based on FPGA. Background Art

[0002] As an emerging optical technology, OCT (Optical Coherence Tomography) has the characteristics of high resolution, non-contact and non-invasive, and has important applications in fingerprint recognition, clinical diagnosis and other fields. In the process of OCT system collecting images, the synchronous control of the galvanometer, CCD and acquisition card plays a vital role in the quality of the images collected by the OCT system. The galvanometer is an optical scanning device driven by a voltage signal. By changing the input voltage of the galvanometer, the deflection degree of the laser light path of the scanning device is controlled, so that the scanning position of the laser of the scanning device can be controlled. CCD is an optical image sensor that converts the scanning position of the galvanometer into an electrical signal for collection. The acquisition card is a storage device of the CCD, which stores the data collected by the CCD.

[0003] The existing OCT system suffers from distortion and misalignment of captured images due to differences in galvanometer control accuracy and asynchrony of control signals. The captured images are misaligned due to the uncertain inherent delays in the responses of the various peripherals of the OCT system (i.e., galvanometer, CCD, and acquisition card) to the control signals. Traditional control signal generation schemes make it difficult to adjust the delays between peripherals in real time to achieve the best synchronous control effect. Summary of the invention

[0004] The purpose of the present invention is to solve the problem raised in the background technology and to propose a synchronous signal control system based on FPGA.

[0005] To achieve the above object, the technical solution adopted by the present invention is:

[0006] The present invention proposes an FPGA-based synchronous signal control system, comprising a host computer, an FPGA module, a galvanometer, an optical image sensor and an acquisition card, wherein the FPGA module comprises a BRAM module, a frame parser, a 3D scanning module and a 2D scanning module, and the 3D scanning module and the 2D scanning module both comprise an operation unit, and a first sub-control unit, a second sub-control unit and a third sub-control unit corresponding to the galvanometer, the optical image sensor and the acquisition card in sequence;

[0007] The host computer sets a control frame and temporarily stores the control frame in the BRAM module;

[0008] The frame parser reads the frame header parameters of the control frame from the BRAM module, parses the parameters in the frame header of the control frame, and sends the parsed parameters to the operation units of each scanning module in parallel;

[0009] The operation unit in each scanning module decides whether to work according to the value of the first parameter parsed in the frame header, and forwards the remaining parameters to the corresponding sub-control unit when working;

[0010] Each sub-control unit waits accordingly according to the remaining parameters in the frame header, and after waiting, generates signals for controlling the galvanometer, optical image sensor and acquisition card respectively according to the remaining parameters, thereby achieving synchronization among the galvanometer, optical image sensor and acquisition card.

[0011] Preferably, the parameters in the frame header of the control vibration include the number of scanning points per line, the number of reset shielding points per line, the number of scanning lines and the sampling parameters of the optical image sensor, as well as the phase delay parameters of the galvanometer, the optical image sensor and the acquisition card, and the system status symbol, wherein the first parameter is the system status symbol;

[0012] The control module further includes a voltage data portion, and the voltage data portion includes control voltage values ​​in the horizontal direction and the vertical direction.

[0013] Preferably, the operation unit in each scanning module determines whether to work according to the value of the first parameter parsed in the frame header, and forwards the remaining parameters to the corresponding sub-control unit when working, and operates according to the following steps:

[0014] When the value of the system status symbol parsed is 3, the operating unit in the 3D scanning module forwards parameters and the 2D scanning module does not work. When the value of the system status symbol parsed is 2, the operating unit in the 2D scanning module forwards parameters and the 3D scanning module does not work.

[0015] Preferably, when the operating units in the 3D scanning module and the 2D scanning module perform parameter forwarding, the operating units in each scanning module forward the number of scanning points per line of the frame header, the number of scanning lines, the sampling parameters of the optical image sensor, and the phase delay parameters of the galvanometer to the first sub-control unit, and forward the number of scanning points per line of the frame header, the number of reset shielding points per line, the number of scanning lines, the sampling parameters of the optical image sensor, and the phase delay parameters of the optical image sensor to the second sub-control unit, and forward the number of scanning points per line of the frame header, the number of reset shielding points per line, the number of scanning lines, the sampling parameters of the optical image sensor, and the phase delay parameters of the acquisition card to the third sub-control unit.

[0016] Preferably, each sub-control unit performs corresponding waiting according to the remaining parameters in the frame header, and after waiting, generates signals for controlling the galvanometer, the optical image sensor and the acquisition card respectively according to the remaining parameters to achieve synchronization among the galvanometer, the optical image sensor and the acquisition card, and operates as follows:

[0017] The first sub-control unit waits for a corresponding time according to the phase delay parameter of the galvanometer, the second sub-control unit waits for a corresponding time according to the phase delay parameter of the optical image sensor, and the third sub-control unit waits for a corresponding time according to the phase delay parameter of the acquisition card, thereby achieving synchronization among the galvanometer, the optical image sensor and the acquisition card;

[0018] Then each sub-control unit scans the area described by the number of scanning points and scanning lines in each row, and each sub-control unit includes a first point counter and a second point counter for storing the current scanning progress, and the first point counter is used to store the current horizontal position, and the second point counter is used to store the current vertical position;

[0019] When each sub-control unit performs scanning, it moves the scanning point at a corresponding frequency according to the sampling parameters of the optical image sensor;

[0020] Then the first sub-control unit reads the control voltage value of the current position from the control frame of the BRAM module according to the current position stored in the corresponding first point counter and the second point counter, and controls the current position of the galvanometer according to the control voltage value;

[0021] The second sub-control unit generates a control signal according to the current position stored in the corresponding first point counter and the second point counter, and the number of reset shielding points in each row, and controls the optical image sensor to collect the current position of the galvanometer;

[0022] The third sub-control unit generates a control signal according to the current position stored in the corresponding first point counter and the second point counter, and the number of reset shielding points in each row, and controls the acquisition card to store the data currently acquired by the optical image sensor.

[0023] Preferably, the reset shielding points in each row are located at the beginning of each row of scanning points. For the second sub-control unit and the third sub-control unit:

[0024] When the current position stored in the first dot counter is less than or equal to the number of reset shielding dots per row, the second sub-controller and the third sub-controller do not generate a control signal;

[0025] When the current position stored in the first dot counter is greater than the number of reset shielding dots per row, the second sub-controller and the third sub-controller generate a control signal.

[0026] Preferably, the process of the host computer setting the sampling parameters of the optical image sensor in the frame header of the control frame, and the phase delay parameters of the galvanometer, the optical image sensor and the acquisition card is operated as follows:

[0027] First, the host computer sets the sampling period of the optical image sensor, as well as the delay time of the galvanometer, optical image sensor and acquisition card;

[0028] Then the host computer calculates the sampling period of the optical image sensor and the system clock cycle Calculate sampling parameters of optical image sensors , the formula is:

[0029] ;

[0030] The host computer determines the delay time of the galvanometer , Sampling parameters of optical image sensors and the system clock cycle Calculate the phase delay parameters of the galvanometer :

[0031] ;

[0032] The host computer determines the delay time of the optical image sensor , Sampling parameters of optical image sensors and the system clock cycle Calculating the Phase Delay Parameters of Optical Image Sensors :

[0033] ;

[0034] The host computer determines the delay time of the acquisition card , Sampling parameters of optical image sensors and the system clock cycle Calculate the phase delay parameters of the acquisition card :

[0035] .

[0036] Compared with the prior art, the present invention has the following beneficial effects:

[0037] 1. The present invention realizes the timing control of the OCT peripheral galvanometer, CCD and acquisition card through FPGA, realizes the universal synchronous control of the peripherals, and solves the image distortion problem caused by insufficient control accuracy of the traditional OCT system.

[0038] 2. The present invention achieves accurate compensation for the inherent delay of the peripheral device by separately configuring the delay of the peripheral galvanometer, CCD and acquisition card without consuming any resources, solves the misalignment problem of the collected OCT image, and is simple and effective. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a module block diagram of the synchronous signal control system based on FPGA of the present invention;

[0040] Figure 2 This is a module block diagram of the FPGA module of the present invention. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0042] It should be noted that when a component is referred to as being "connected" to another component, it may be directly connected to the other component or there may be an intermediate component. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0043] like Figure 1-Figure 2 As shown, a synchronous signal control system based on FPGA includes: a host computer (or PC), an FPGA module, a galvanometer, an optical image sensor and an acquisition card, wherein the FPGA module includes a BRAM (abbr. bipolar random access memory) module, a frame parser, a 3D scanning module and a 2D scanning module, and the 3D scanning module and the 2D scanning module both include an operation unit, and a first sub-control unit, a second sub-control unit and a third sub-control unit corresponding to the galvanometer, the optical image sensor and the acquisition card in sequence;

[0044] It should be noted that the host computer and the FPGA module are connected via a serial interface, that is, the host computer and the BRAM module are connected via a serial interface.

[0045] The control process of the synchronous signal control system based on FPGA is as follows:

[0046] S1. The host computer sets the control frame (the control frame includes a frame header and a voltage data part) and temporarily stores the control frame in the BRAM module;

[0047] The parameters in the frame header of the control vibration include the number of scanning points per line, the number of reset shielding points per line, the number of scanning lines and the sampling parameters of the optical image sensor, as well as the phase delay parameters of the galvanometer, the optical image sensor and the acquisition card, and the system status symbol, wherein the first parameter is the system status symbol;

[0048] The control galvanometer also includes a voltage data part, and the voltage data part includes control voltage values ​​in the horizontal and vertical directions, which is a 16-bit unsigned number array, of which the lower 14 bits are used to record the input of the galvanometer, that is, the voltage value, which is used to control the scanning position of the galvanometer, and the upper 2 bits are ignored.

[0049] The host computer sets the sampling parameters of the optical image sensor and the phase delay parameters in the control frame: the host computer first sets the sampling period of the optical image sensor , as well as the delay time of the galvanometer, optical image sensor and acquisition card, and then the host computer calculates the sampling period of the optical image sensor and the system clock cycle Calculate sampling parameters of optical image sensors , the formula is:

[0050] ;

[0051] And the host computer is based on the delay time of the galvanometer , Sampling parameters of optical image sensors and the system clock cycle Calculate the phase delay parameters of the galvanometer :

[0052] ;

[0053] The host computer determines the delay time of the optical image sensor , Sampling parameters of optical image sensors and the system clock cycle Calculating the Phase Delay Parameters of Optical Image Sensors :

[0054] ;

[0055] The host computer determines the delay time of the acquisition card , Sampling parameters of optical image sensors and the system clock cycle Calculate the phase delay parameters of the acquisition card :

[0056] .

[0057] The serial interface receives the data (control frame) sent by the host computer, pulls up the uart_recv_done signal (informing that the data has been received), and writes the data into the BRAM module. When all the data is written into the BRAM module, the w_finished signal is pulled up (informing that all the data has been written).

[0058] The control frame is a variable-length finite byte stream (frame data consisting of a row of several columns of data), and includes a frame header, multiple horizontal control voltage values, and multiple vertical control voltage values ​​in sequence. For example, if the number of scanning points in each row is x (during the scanning process, the horizontal control voltage value corresponding to each scanning point in a row is different, that is, there are x horizontal control voltage values), and the number of scanning rows is y (during the scanning process, the vertical control voltage value corresponding to each row is different, that is, there are y vertical control voltage values), then the length of the control frame is the length of the frame header + the length of the x horizontal control voltage values ​​+ the length of the y vertical control voltage values.

[0059] S2, the frame parser reads the frame header parameters of the control frame from the BRAM module, parses the parameters in the frame header of the control frame, and sends the parsed parameters to the operation units of each scanning module in parallel;

[0060] The frame parser serially reads the parameters of the frame header from the BRAM module (the parameters of the frame header are arranged in sequence by the number of scanning points per row, the number of reset shielding points per row, the number of scanning rows, the sampling parameters of the optical image sensor, the phase delay parameters of the galvanometer, the phase delay parameters of the optical image sensor, the phase delay parameters of the acquisition card and the system status symbol), and parses each parameter after reading it, and then reads the next parameter to obtain the values ​​of each parameter in parallel. The frame parser implements the parsing of the frame header through a finite state machine (the state of the finite state machine indicates which parameter has been parsed). For each parameter of the frame header, there is a corresponding state (such as the state corresponding to the number of scanning points per row is the state of the number of scanning points per row, the state corresponding to the number of reset shielding points per row is the state of the number of reset shielding points per row, the state corresponding to the number of scanning rows is the state of the number of scanning rows, and the state corresponding to the sampling parameter of the optical image sensor is the state of the optical image sensor). The sampling parameter state of the image sensor, the state corresponding to the phase delay parameter of the galvanometer is the phase delay parameter state of the galvanometer, the state corresponding to the phase delay parameter of the optical image sensor is the phase delay parameter state of the optical image sensor, the state corresponding to the phase delay parameter of the acquisition card is the phase delay parameter state of the acquisition card, and the state corresponding to the system status symbol is the system status symbol state). After receiving the frame header, the frame parser transfers from the idle state to the state of each parameter in sequence (according to the arrangement order of the parameters in the frame header), and parses them in sequence until all the parameters are parsed; if new functions need to be added to the control frame, the length of the control frame header is extended to store the new parameters, and a new state is added to the finite state machine synchronously; then the parsed parameters are sent in parallel to the operation units of each scanning module (including the operation unit of the 2D scanning module and the operation unit of the 3D scanning module).

[0061] S3. The operation unit in each scanning module determines whether to work according to the value of the first parameter parsed in the frame header (the operation is 2D scanning or 3D scanning according to the value of the first parameter, and the 2D scanning is completed by the 2D scanning module, and the 3D scanning is completed by the 3D scanning module. The main difference between 2D scanning and 3D scanning is that the scanning area of ​​2D scanning is a line, that is, the number of scanning lines is y, which is always constant and can be any line value except 0, and the scanning area of ​​3D scanning is a surface), and forwards the remaining parameters to the corresponding sub-control unit when working;

[0062] When the value of the system status symbol parsed is 3, the operation unit in the 3D scanning module forwards parameters (specifically, the operation unit in the 3D scanning module forwards the number of scanning points per line of the frame header, the number of scanning lines, the sampling parameters of the optical image sensor, and the phase delay parameters of the galvanometer to the first sub-control unit, and forwards the number of scanning points per line of the frame header, the number of reset shielding points per line, the number of scanning lines, the sampling parameters of the optical image sensor, and the phase delay parameters of the optical image sensor to the second sub-control unit, and forwards the number of scanning points per line of the frame header, the number of reset shielding points per line, the number of scanning lines, the sampling parameters of the optical image sensor, and the phase delay parameters of the acquisition card to the third sub-control unit), and the 2D scanning module does not work. When the value parsed by the system status symbol is 2, the operating unit in the 2D scanning module forwards parameters (specifically, the operating unit in the 2D scanning module forwards the number of scanning points per line of the frame header, the number of scanning lines, the sampling parameters of the optical image sensor, and the phase delay parameters of the galvanometer to the first sub-control unit, and forwards the number of scanning points per line of the frame header, the number of reset shielding points per line, the number of scanning lines, the sampling parameters of the optical image sensor, and the phase delay parameters of the optical image sensor to the second sub-control unit, and forwards the number of scanning points per line of the frame header, the number of reset shielding points per line, the number of scanning lines, the sampling parameters of the optical image sensor, and the phase delay parameters of the acquisition card to the third sub-control unit), and the 3D scanning module does not work.

[0063] S4, each sub-control unit waits accordingly according to the remaining parameters in the frame header, and after waiting, generates signals for controlling the galvanometer, the optical image sensor and the acquisition card respectively according to the remaining parameters, so as to achieve synchronization among the galvanometer, the optical image sensor and the acquisition card;

[0064] Among them, the first sub-control unit controls the galvanometer to wait for a corresponding time according to the phase delay parameters of the galvanometer, the second sub-control unit waits for a corresponding time according to the phase delay parameters of the optical image sensor, and the third sub-control unit waits for a corresponding time according to the phase delay parameters of the acquisition card, so as to realize the synchronization among the galvanometer, the optical image sensor and the acquisition card (after receiving the parameters, each sub-control unit enters the waiting state from the idle state, and the waiting time in the waiting state is based on the corresponding waiting time, so as to realize the accurate compensation of the inherent delay of the galvanometer, the optical image sensor and the acquisition card, and then realize the synchronization of the three, and then the generation state is performed, that is, each sub-control unit generates a control signal according to the corresponding parameters);

[0065] Then each sub-control unit scans the area described by the number of scanning points and scanning lines in each row, and each sub-control unit includes a first point counter and a second point counter for storing the current scanning progress, and the first point counter is used to store the current horizontal position (i.e., the column position), and the second point counter is used to store the current vertical position (i.e., the row position);

[0066] When each sub-control unit performs scanning, it moves the scanning point at a corresponding frequency according to the sampling parameters of the optical image sensor (i.e., the sampling parameters of the optical image sensor are used as the frequency of moving the scanning point), and the initial position of the first point counter is the first point number of each row, and the initial position of the second point counter is the first row. When the current horizontal position stored by the first point counter is located at the last scanning point of each row and moves to the next scanning point (i.e., when moving to the beginning of the next row), the position stored by the first point counter returns to the initial position, and the second point counter updates the current vertical position;

[0067] Then the first sub-control unit reads the control voltage value of the current position from the control frame of the BRAM module according to the current position stored by the corresponding first point counter and the second point counter (because the control frame includes a frame header, x control voltage values ​​in the horizontal direction and y control voltage values ​​in the vertical direction in sequence, the first sub-control unit generates an address value in the control frame according to the current position stored by the corresponding first point counter and the second point counter, and then reads the control voltage value of the corresponding address from the control frame of the BRAM module according to the generated address value. For example, if the current position stored by the first point counter is 3 and the current position stored by the second point counter is 5, then the scanning point at this time is the 3rd column and the 5th row, and then the address value generated in the control frame is the 3rd control voltage value in the horizontal direction and the 5th control voltage value in the vertical direction, then the corresponding control voltage value is read from the 3rd control voltage value in the horizontal direction and the 5th control voltage value in the vertical direction according to the address value), and controls the current position of the galvanometer according to the control voltage value;

[0068] The second sub-control unit generates a control signal according to the current position stored by the corresponding first point counter and the second point counter, and the number of reset shielding points per row, and controls the optical image sensor to collect the current position of the galvanometer (generates a signal for controlling the optical image sensor to collect the current position of the galvanometer); wherein the number of reset shielding points per row is located at the beginning of each row, and the specific number is not limited, such as being set to 2, when the current position stored by the first point counter of the second sub-control unit is less than or equal to the number of reset shielding points per row, the second sub-controller does not generate a control signal, and when the current position stored by the first point counter of the second sub-control unit is greater than the number of reset shielding points per row, the second sub-controller generates a control signal to ensure that the system does not cause image distortion due to insufficient response speed of the galvanometer;

[0069] The third sub-control unit generates a control signal according to the current position stored in the corresponding first point counter and the second point counter, and the number of reset shielding points per row, and controls the acquisition card to store the data currently collected by the optical image sensor (generates a signal for controlling the acquisition card to store the data currently collected by the optical image sensor); specifically: when the current position stored in the first point counter of the third sub-control unit is less than or equal to the number of reset shielding points per row, the third sub-controller does not generate a control signal; when the current position stored in the first point counter of the third sub-control unit is greater than the number of reset shielding points per row, the third sub-controller generates a control signal to ensure that the system does not cause image distortion due to insufficient response speed of the galvanometer.

[0070] The present invention realizes the timing control of the OCT peripheral galvanometer, CCD and acquisition card through FPGA, realizes the universal synchronous control of the peripherals, and solves the image distortion problem caused by insufficient control accuracy of the traditional OCT system; by separately configuring the delay of the peripheral galvanometer, CCD and acquisition card, accurate compensation for the inherent delay of the peripherals is achieved without consuming any resources, and the misalignment problem of the collected OCT image is solved in a simple and effective manner.

[0071] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0072] The above-described embodiments only express the more specific and detailed embodiments described in this application, but they cannot be understood as limiting the scope of the patent application. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of this application, which all belong to the protection scope of this application. Therefore, the protection scope of the patent application shall be based on the attached claims.

Claims

1. A synchronous signal control system based on FPGA, Features: The FPGA-based synchronization signal control system includes a host computer, an FPGA module, a galvanometer, an optical image sensor and an acquisition card, wherein the FPGA module includes a BRAM module, a frame parser, a 3D scanning module and a 2D scanning module, and the 3D scanning module and the 2D scanning module each include an operation unit, and a first sub-control unit, a second sub-control unit and a third sub-control unit corresponding to the galvanometer, the optical image sensor and the acquisition card in sequence; The host computer sets a control frame and temporarily stores the control frame in the BRAM module; The parameters in the frame header of the control frame include the number of scanning points per line, the number of reset shielding points per line, the number of scanning lines and the sampling parameters of the optical image sensor, as well as the phase delay parameters of the galvanometer, the optical image sensor and the acquisition card, and the system status symbol, wherein the first parameter is the system status symbol; The control frame further includes a voltage data portion, and the voltage data portion includes control voltage values ​​in the horizontal direction and the vertical direction; The frame parser reads the frame header parameters of the control frame from the BRAM module, parses the parameters in the frame header of the control frame, and sends the parsed parameters to the operation units of each scanning module in parallel; The operation unit in each scanning module decides whether to work according to the value of the first parameter parsed in the frame header, and forwards the remaining parameters to the corresponding sub-control unit when working; Each sub-control unit waits accordingly according to the other parameters in the frame header, and then generates signals for controlling the galvanometer, optical image sensor and acquisition card respectively according to the other parameters to achieve synchronization among the galvanometer, optical image sensor and acquisition card, as follows: The first sub-control unit waits for a corresponding time according to the phase delay parameter of the galvanometer, the second sub-control unit waits for a corresponding time according to the phase delay parameter of the optical image sensor, and the third sub-control unit waits for a corresponding time according to the phase delay parameter of the acquisition card, thereby achieving synchronization among the galvanometer, the optical image sensor and the acquisition card; Then each sub-control unit scans the area described by the number of scanning points and scanning lines in each row, and each sub-control unit includes a first point counter and a second point counter for storing the current scanning progress, and the first point counter is used to store the current horizontal position, and the second point counter is used to store the current vertical position; When each sub-control unit performs scanning, it moves the scanning point at a corresponding frequency according to the sampling parameters of the optical image sensor; Then the first sub-control unit reads the control voltage value of the current position from the control frame of the BRAM module according to the current position stored in the corresponding first point counter and the second point counter, and controls the current position of the galvanometer according to the control voltage value; The second sub-control unit generates a control signal according to the current position stored in the corresponding first point counter and the second point counter, and the number of reset shielding points in each row, and controls the optical image sensor to collect the current position of the galvanometer; The third sub-control unit generates a control signal according to the current position stored by the corresponding first point counter and the second point counter, and the number of reset shielding points per row, and controls the acquisition card to store the data currently collected by the optical image sensor; The process of the host computer setting the sampling parameters of the optical image sensor in the frame header of the control frame, and the phase delay parameters of the galvanometer, the optical image sensor and the acquisition card is operated as follows: First, the host computer sets the sampling period of the optical image sensor, as well as the delay time of the galvanometer, optical image sensor and acquisition card; Then the host computer calculates the sampling period of the optical image sensor and the system clock cycle Calculate sampling parameters of optical image sensors , the formula is: ; The host computer determines the delay time of the galvanometer , Sampling parameters of optical image sensors and the system clock cycle Calculate the phase delay parameters of the galvanometer : ; The host computer determines the delay time of the optical image sensor , Sampling parameters of optical image sensors and the system clock cycle Calculating the Phase Delay Parameters of Optical Image Sensors : ; The host computer determines the delay time of the acquisition card , Sampling parameters of optical image sensors and the system clock cycle Calculate the phase delay parameters of the acquisition card : 。 2. The FPGA-based synchronization signal control system according to claim 1, Features: The operation unit in each scanning module determines whether to work according to the value of the first parameter parsed in the frame header, and forwards the remaining parameters to the corresponding sub-control unit when working, and operates according to the following steps: When the value of the system status symbol parsed is 3, the operating unit in the 3D scanning module forwards parameters and the 2D scanning module does not work. When the value of the system status symbol parsed is 2, the operating unit in the 2D scanning module forwards parameters and the 3D scanning module does not work.

3. The FPGA-based synchronization signal control system according to claim 2, Features: When the operating units in the 3D scanning module and the 2D scanning module perform parameter forwarding, the operating units in each scanning module forward the number of scanning points per line of the frame header, the number of scanning lines, the sampling parameters of the optical image sensor, and the phase delay parameters of the galvanometer to the first sub-control unit, and forward the number of scanning points per line of the frame header, the number of reset shielding points per line, the number of scanning lines, the sampling parameters of the optical image sensor, and the phase delay parameters of the optical image sensor to the second sub-control unit, and forward the number of scanning points per line of the frame header, the number of reset shielding points per line, the number of scanning lines, the sampling parameters of the optical image sensor, and the phase delay parameters of the acquisition card to the third sub-control unit.

4. The FPGA-based synchronization signal control system according to claim 1, Features: The reset shielding points of each row are located at the beginning of each row of scanning points. For the second sub-control unit and the third sub-control unit: When the current position stored in the first dot counter is less than or equal to the number of reset shielding dots per line, the second sub-control unit and the third sub-control unit do not generate a control signal; When the current position stored in the first dot counter is greater than the number of reset shielding dots per line, the second sub-control unit and the third sub-control unit generate a control signal.