Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
DAQ Synchronization when recodring in background
Posted:
Feb 27, 2013 12:40 PM
|
|
I'd like to synchronize image acquisition with voltage readout that I read using the DAQ. I have a trigger signal that I feed to my camera and can read in my daq, and another analog voltage channel that reads a signal that needs to be associated with a frame a camera takes.
What I have done so far in order to save both camera frames and voltage, is to read the voltage in the background and take frames in the foreground, for example: lh = s.addlistener('DataAvailable',@(src,event)SaveData(src,event)); start(vid) N=500; s.startBackground(); for ii=1:N im=getsnapshot(vid); end delete(lh);
But these are not synchronized only more or less taking data at the same time... Any suggestions?
|
|
|
|