Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Data acquisition with external trigger with MATLAB

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?

0 Kudos
Message 1 of 5
(1,768 Views)

What software are you planning to use? (LabVIEW? Something else?)

0 Kudos
Message 2 of 5
(1,762 Views)

Matlab

0 Kudos
Message 3 of 5
(1,753 Views)

Sorry, I did not see it in the subject.  😉

 

 

0 Kudos
Message 4 of 5
(1,736 Views)

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

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 5 of 5
(1,720 Views)