LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I synchronize galvo mirror movement with spectral acquisition in a point-by-point raster scan in LabVIEW?

Hi, I'm building a raster scanning system in LabVIEW where a laser beam is steered using galvo mirrors (controlled via analog outputs from a DAQ device), and at each position, I need to acquire a spectrum using a Thorlabs CCS100 spectrometer and the Thorlabs drivers. The idea is to construct an image formed by a matrix in which each point correspond to the spectrum acquired from the sample.
The issue is that the mirrors seem to move through the entire scan pattern, and only one spectrum is acquired during the whole process with the start scan.vi, instead of acquiring one spectrum per position. The movement and the spectral acquisition are not properly synchronized.

How can I structure my code so that for each position:

1. The galvos move to a single (X, Y) point.

2. One spectrum is acquired.

3. The data is saved.

4. Then it proceeds to the next point?

Drivers used are ni-daqmx and TLCCS.



3.2.PNG

4(1).PNG

5.PNG

6.PNG

7.PNG

Download All
0 Kudos
Message 1 of 1
(212 Views)