The vendor 'directsound' is not known. Use 'daq.getVendors()' for a list of vendors Error displayed while using Data Acquisition Tool Box
조회 수: 9 (최근 30일)
이전 댓글 표시
This is my code.
fs = 48000;
duration = 60; %secs
s = daq.createSession('directsound');
s.DurationInSeconds = duration;
s.UseStandardSampleRates = true;
s.Rate = fs;
devs = daq.getDevices;
[ch34, idx34] = addAudioOutputChannel(s,devs(11).ID,1:2);
[ch56, idx56] = addAudioOutputChannel(s,devs(17).ID,1:2);
queueOutputData(s, [y0 y1 y2 y3]);
startForeground(s);
pause(duration);
stop(s);
But I am always getting an error
The vendor 'directsound' is not known. Use 'daq.getVendors()' for a list of vendors
What could be my possible solution!!
댓글 수: 0
답변 (2개)
Rodolfo Ribeiro
2018년 5월 26일
Hello,
I faced the same issue. You just have to run this code "daqreset" before and you are good to go.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 National Instruments Frame Grabbers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!