Quantcast
Channel: Multifunction DAQ topics
Viewing all articles
Browse latest Browse all 7019

Synchronize Analog Output Sample Clock Without TTL Pulse Count

$
0
0

Hi All,

The title is deliberately similar to this example program. The fundamental difference is that, instead of the DAQ hardware, an external module is counting the TTL pulses and outputs the histogram (amplitude vs time). I am using the two AOs of the USB-6211 to generate the 2D pattern for the two galvo mirror. The device is USB connected to the PC and it is provided with the LabVIEW drivers, that allow to change the acquisition time of the device (in the order of 100ms). Once the signal is acquired, the LabVIEW would then perform some signal processing and plot the max amplitude (a single value) on the spectrogram.

 

My question is: how can I sync the 2D raster pattern to the acquisition time of the device, to ensure that for each pixel of the spectrogram the histogram is correctly measured and postprocessed?

Starting from the example above, I would replace the counter in the while loop with the VIs relative to the counting device. One way would be to adjust the "Update rate" with respect to the acquisition time of the device, plus some extra time that I can figure it out by trial and error. However, I guess that this method gives no certainty that each pixel has been acquired correctly before the raster pattern moved to the next AO value.

 

All suggestions are welcome.


Viewing all articles
Browse latest Browse all 7019

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>