Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: DAQ Synchronization when recodring in background
Replies: 1   Last Post: Mar 5, 2013 7:25 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
nate2718281828@gmail.com

Posts: 11
Registered: 7/24/12
DAQ Synchronization when recodring in background
Posted: Feb 27, 2013 12:40 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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?



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.