I'm developing a microscope prototype and I need to synchronize the data acquisition (ni DAQ) with the movement of a motorized translational stage on which the microscopy sample is placed. The motorized stage generates a trigger signal every time it moves of a defined distance. Just to be clear, if I set the pixel dimension to 1 um, every time the stage travels the distance of 1 um, it emitts a trigger signal. This results in a train of trigger pulses during imaging procedure, that consists in scanning the sample, and my purpose is to use this train to control the acquisition board (ni DAQ) in background: every time the ni DAQ sees a trigger up it should acquire a data, while I execute other stuff in the meantime (e.g. send instruction to the motorized stage for raster scanning movement).
I tried to do it, but it seems to be impossible.
Could you please help me in understanding how to do it? Is it feasible?
What software are you planning to use? (LabVIEW? Something else?)
Matlab
在 10-18-2022 12:19 PM
It's likely you'll want to use the signal you call "a train of trigger pulses" as an external sample clock for your acquisition task, and NOT as a trigger. I'm afraid I can't offer any MATLAB-specific advice about how to set that up though.
-Kevin P