Clear Filters
Clear Filters

Data acquisition (Analog Input)

8 views (last 30 days)
Chan
Chan on 11 Sep 2011
Commented: Walter Roberson on 23 Nov 2022
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!

Accepted Answer

Grzegorz Knor
Grzegorz Knor on 11 Sep 2011
Probably yes. Type ver in command window. It displays info about your Matlab products.
ver daq
  3 Comments
zeineb
zeineb on 23 Nov 2022
please how can i add " data acquisition toolbox " i need your help i have matlab 2022b
Walter Roberson
Walter Roberson on 23 Nov 2022
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.

Sign in to comment.

More Answers (0)

Categories

Find more on Multichannel Audio Input and Output in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!