Fix for DAQHWINFO

版本 1.0.0.0 (967 字节) 作者: Richard Medlock
Function to return separate correct lists of input and output soundcard boards.
2.4K 次下载
更新时间 2003/4/16

无许可证

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.

引用格式

Richard Medlock (2024). Fix for DAQHWINFO (https://www.mathworks.com/matlabcentral/fileexchange/3261-fix-for-daqhwinfo), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Data Acquisition Toolbox Supported Hardware 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0