The invention discloses a multi-device synchronous measurement
system and a
time sequence offset
correction method based on cross correlation, the
system comprises a
data acquisition module, an offset calculation module and a
data synchronization module, the
data acquisition module is responsible for sending an acquisition command to a
confocal controller and a
motion controller; recording a sending
timestamp to preliminarily estimate potential
delay, receiving data, ensuring that the data are not lost according to a sequence number sequence, and removing
noise; the offset calculation module is responsible for receiving forward and reverse data sets from the
data acquisition module, performing length consistency
verification, automatically detecting initial
time sequence offset by using a cross-correlation
algorithm, and generating an offset
sample number; and the
data synchronization module is responsible for adjusting the data sequence according to the offset value to realize accurate synchronization. According to the invention, external signals or wiring is not needed, and offset compensation is carried out only by using acquired data, so that the compatibility and expansibility of the
system are remarkably improved; a hardware trigger
signal or an external
clock source is not needed, synchronization is achieved only through a
software algorithm, and system complexity and cost are reduced.