Problem with DirectSound, AnalogOutput

4 ビュー (過去 30 日間)
Juan Santos
Juan Santos 2017 年 5 月 16 日
コメント済み: Juan Santos 2017 年 5 月 22 日
After succesfuly installing Data Adquisition Package and drivers for DirectSound, I got this error message: Error using daqtb (line 14) The requested subsystem 'AnalogInput' does not exist on this device in response to addAnalogInputChannel(s,dev.ID,1:2,'Voltage'), but addAudioOutputChannel(s, dev.ID, 1:2) works fine. Analog inputs are no supported?
  1 件のコメント
Juan Santos
Juan Santos 2017 年 5 月 22 日
Thanks for your kind attention. In order to clarify the problem I am facing, the listing of the testing program I am using is: % Program for testing Data Adquisition Package
% Available hardware v=daq.getVendors;
% Available devices d=daq.getDevices;
% Create session s=daq.createSession('directsound');
% Add output channel sa=addAudioOutputChannel(s, 'Audio1', 1:2,'Audio');
% Add input channel ea=addAudioInputChannel(s, 'Audio0', 1:2,'Audio');
And the error message I get is
Error using daqtb (line 16) The requested subsystem 'AudioInput' does not exist on this device.
It seems that something is wrong with my analog i/o system. Regards.

サインインしてコメントする。

回答 (1 件)

Manish Annappa
Manish Annappa 2017 年 5 月 18 日
I understand that you would like to know if 'AnalogInput' channels can be added on the DirectSound card.
As per the below documentation, analog input and output channels can be used to acquire and generate analog data with National Instruments and Digilent devices. https://www.mathworks.com/help/daq/analog-input-and-output.html
Also, as per the documentation below, audio input and output channels are used to acquire audio data and generate signals with Windows sound cards https://www.mathworks.com/help/daq/multichannel-audio-input-and-output.html
So, to acquire data from Direct Sound, use the 'addAudioInputChannel' function. For more information on this function, refer to the following link: https://www.mathworks.com/help/daq/ref/addaudioinputchannel.html
  1 件のコメント
Juan Santos
Juan Santos 2017 年 5 月 22 日
The testing program:
% Program for testing Data Adquisition Package
% Available hardware v=daq.getVendors;
% Available devices d=daq.getDevices;
% Create session s=daq.createSession('directsound');
% Add output channel sa=addAudioOutputChannel(s, 'Audio1', 1:2,'Audio');
% Add input channel ea=addAudioInputChannel(s, 'Audio0', 1:2,'Audio');
The error message:
Error using daqtb (line 16) The requested subsystem 'AudioInput' does not exist on this device.
So, it seems the something is wrong with my analog i/o system.
Regards.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by