No BSD License  

Highlights from
Fix for DAQHWINFO

5.0

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

Fix for DAQHWINFO

by Richard Medlock

 

13 Apr 2003 (Updated 16 Apr 2003)

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

| 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

Contact us at files@mathworks.com