Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: DAQ SamplesAvailable never >0 after getdata
Date: Wed, 10 Feb 2010 13:03:04 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 10
Message-ID: <hkuaq8$mhm$1@fred.mathworks.com>
References: <hks0ii$p3$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1265806984 23094 172.30.248.38 (10 Feb 2010 13:03:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 10 Feb 2010 13:03:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 796075
Xref: news.mathworks.com comp.soft-sys.matlab:606084


Hi Dave ,
The callback snippet looks reasonable but there isn't enough code here to know if you're setting up the acquisition correctly.
Whittle your program down to the absolute minimum lines of code to show both the main loop and the callback and post it here (you should be able to do that in under 20 lines of code).
Also, you can post the output of running
daqsupport
(though you can omit the long section with the path - you don't have a path problem it seems).

As long as you've set the acquisition to go as long as you need either via SamplesPerTrigger or TriggerRepeat and started this should work.
All the best,
Sherryl