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.




