Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Event driven audio recording
Date: Sun, 16 Nov 2008 07:40:21 +0000 (UTC)
Organization: Lulea University of Technology
Lines: 18
Message-ID: <gfoip5$485$1@fred.mathworks.com>
References: <gfc6pb$im5$1@fred.mathworks.com> <gfk7a5$9qo$1@fred.mathworks.com> <gfmaii$r26$1@fred.mathworks.com> <gfnrb3$lfp$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 1226821221 4357 172.30.248.37 (16 Nov 2008 07:40:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 16 Nov 2008 07:40:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1595763
Xref: news.mathworks.com comp.soft-sys.matlab:501048


OK,

This piece of code was taken from a MATLAB 6.x version:

AI = analoginput('nidaq');

Then, using the exact same hardware, but with MATLAB 2007b, I had to do this:

hwinfo = daqhwinfo('nidaq');
dev = char(hwinfo.InstalledBoardIds);
AI = analoginput('nidaq',dev);

There's only one National Instruments card in the machine, so this shouldn't be necessary. 

Then, for MATLAB 2008a it stopped working again, but unfortunately I don't have that code here. I'll check with my colleague if he managed to fix it, or I will post the error messages we got.

Thanks!
/JC