Path: news.mathworks.com!not-for-mail
From: "Davide Borelli" <davidepub@microonda.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: continuous acquisition
Date: Fri, 7 Dec 2007 11:29:32 +0000 (UTC)
Organization: Universita di Parma
Lines: 47
Message-ID: <fjbaqs$mu0$1@fred.mathworks.com>
References: <fj60m2$p81$1@fred.mathworks.com> <fj66ch$sgs$1@fred.mathworks.com> <fj6cug$2vu$1@fred.mathworks.com> <fj9d6l$97$1@fred.mathworks.com> <fjb0ua$cfc$1@fred.mathworks.com>
Reply-To: "Davide Borelli" <davidepub@microonda.net>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1197026972 23488 172.30.248.38 (7 Dec 2007 11:29:32 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 7 Dec 2007 11:29:32 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1205384
Xref: news.mathworks.com comp.soft-sys.matlab:441366



Yes, I already use the acquisition toolbox to acquire with 
Matlab.
My question was different: which kind of code should I use 
to make a continuous acquisition like the one you make 
with a soundcard? I would like to see the structure of a 
program designed for a continuous acquisition like that, 
because I have a m-file which doesn't allow to make 
continuous acquisition, but several very short (and 
possibly fast) acquisition.
Davide B.



"Lars Warmbold" <mustermann.klaus.TO.REMOVE@gmx.de> wrote 
in message <fjb0ua$cfc$1@fred.mathworks.com>...
> If the hardware is supported by the daq-toolbox yes. Use
> provided code and replace
> 
> %% create 'LineIn'
> > ai = analoginput('winsound');
> > chan = addchannel(ai,1);
> 
> by something like
> 
> %% create 'LineIn'
> > ai = analoginput('nidaq', 1);
> > chan = addchannel(ai,0);
> 
> See also
> 
> >> help daq
> 
> To see if Matlab recognizes your hardware you can check 
out
> 
> >> hw = daqhwinfo;
> >> hw.installedadapters
> 
> Note that you may need the traditional NIdaq-driver.
> 
> If you like infinite length of aqcuisition it is very
> usefull to implement your programm as a GUI.
> 
> >> help guide
> 
> LARS