Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: continuous acquisition
Date: Fri, 7 Dec 2007 08:40:42 +0000 (UTC)
Organization: DW-TV
Lines: 30
Message-ID: <fjb0ua$cfc$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>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1197016842 12780 172.30.248.35 (7 Dec 2007 08:40:42 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 7 Dec 2007 08:40:42 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1095707
Xref: news.mathworks.com comp.soft-sys.matlab:441340



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