5.0

5.0 | 1 rating Rate this file 109 downloads (last 30 days) File Size: 2.45 KB File ID: #3261

Fix for DAQHWINFO

by Richard Medlock

 

13 Apr 2003 (Updated 16 Apr 2003)

No BSD License  

Function to return separate correct lists of input and output soundcard boards.

Download Now | Watch this File

File Information
Description

There is an assumption made in the DAQ Toolbox that input and output devices are in the same order.

If you have more than one playback/recording device available in the windows multimedia settings in control panel, and you change the order, you will have a problem if the two lists do not match.

The Data Aquisition toolbox assumes the outputs are the same as the inputs.

Try selecting different preferred devices for playback and recording in multimedia settings.

Now try the following:

info = daqhwinfo('winsound')
info.BoardNames'
info.InstalledBoardIds'
ai = analoginput('winsound',0)
ao = analogoutput('winsound',0)

Notice that although you appear to have selected the same device for both input and output, if you look at the summary reports, they are different.

There's the problem. It will happen whenever the two lists in Multimedia settings for preferred playback/recording device are different.

WINSOUNDHWINFO is a function that will return separate lists of the actual input and output devices available along with the correct boardIDs. I have also included the constructors so that it returns the same info as daqhwinfo.

This function also returns the original daqhwinfo fields for compatibility.

Required Products Data Acquisition Toolbox
MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
09 Oct 2007 Bethany Moore

Worked great for our lab, and keyed us in to a problem we were having with multiple input-output devices installed. Thanks!

14 Aug 2009 Richard Medlock

Hi, thanks for your feedback - really pleased that it helped :)

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
example Richard Medlock 22 Oct 2008 06:59:45
application Richard Medlock 22 Oct 2008 06:59:45
daqhwinfo Richard Medlock 22 Oct 2008 06:59:45
daq Richard Medlock 22 Oct 2008 06:59:45
ids board Richard Medlock 22 Oct 2008 06:59:45
board Richard Medlock 22 Oct 2008 06:59:45
data aquisition Richard Medlock 22 Oct 2008 06:59:45
names Richard Medlock 22 Oct 2008 06:59:46
device Richard Medlock 22 Oct 2008 06:59:46
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com