how to use Data acquisition Tool ???

I wrote this piece of code in my M.editor
CODE
ai=analoginput('winsound'); addchannel(ai,1);
FS=1600; duration=2; set(ai,'SampleRate',FS); set(ai,'SamplesPerTrigger',duration*FS);
while running this i got this error
ERROR
??? Error using ==> analoginput.analoginput at 121 Failure to find requested data acquisition device: winsound.
Error in ==> ana at 1 ai=analoginput('winsound');
Please Help me to resolve this problem.

 채택된 답변

Friedrich
Friedrich 2013년 6월 3일
편집: Friedrich 2013년 6월 3일

0 개 추천

Hi,
seems like winsound is not available for you. Did you run this:
daqregister('winsound')
This is needed in order to use the winsound device. In the case you did that alread: What does this give:
out = daqhwinfo;
out.InstalledAdaptors
And also this:
daqhwinfo('winsound')
Are you using a laptop?

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Acquisition Toolbox Supported Hardware에 대해 자세히 알아보기

태그

질문:

2013년 6월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by