필터 지우기
필터 지우기

Data acquisition (Analog Input)

조회 수: 8 (최근 30일)
Chan
Chan 2011년 9월 11일
댓글: Walter Roberson 2022년 11월 23일
Anyone got idea what wrong with this coding?
%%Step 1: Create an analog input object to communicate with data acquisition device
% In this case, a Windows sound card is used ('winsound').
ai = analoginput('winsound');
addchannel(ai,1);
Here is the error :
??? Undefined function or method 'analoginput' for input arguments of type 'char'.
Error in ==> sound_acquisition at 15
ai = analoginput('winsound');
Is that my matlab missing of data acquisition toolbox?
Thanks in advance!

채택된 답변

Grzegorz Knor
Grzegorz Knor 2011년 9월 11일
Probably yes. Type ver in command window. It displays info about your Matlab products.
ver daq
  댓글 수: 3
zeineb
zeineb 2022년 11월 23일
please how can i add " data acquisition toolbox " i need your help i have matlab 2022b
Walter Roberson
Walter Roberson 2022년 11월 23일
First you need to ensure that you have licensed the toolbox, which might require additional purchase. If you did need to do an additional purchase then afterwards in the command window Help section there is menu item to update the license.
Once it is licensed then in the command window, Add-ons, Get Add-ons, search for the toolbox and pull up the information for it. Then near upper-right there will be a button to install the toolbox (if it is not licensed yet then the button would be to purchase it instead). Click, agree to the license, and it will install.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multichannel Audio Input and Output에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by