Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: delay getdata, start(analoginput)
Date: Tue, 29 Sep 2009 12:43:04 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 8
Message-ID: <h9svco$oa7$1@fred.mathworks.com>
References: <h9qkk6$bj5$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1254228184 24903 172.30.248.37 (29 Sep 2009 12:43:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 29 Sep 2009 12:43:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 796075
Xref: news.mathworks.com comp.soft-sys.matlab:573644


Hi Jonas,
Rather than stopping and restarting the analog input object, which will introduce the delay you are seeing, use callbacks which you can begin learning about here:
http://www.mathworks.com/access/helpdesk/help/toolbox/daq/f9-34753.html

Pay particular attention to the Timer and SamplesAcquired events.

All the best,
Sherryl