d = daq("directsound") yields "Unrecognized function or variable 'daq'"

I'm trying to play audio from a multichannel soundcard as per this: https://uk.mathworks.com/help/daq/multichannel-audio-generation-using-an-audio-session.html.
The command on that page:
dq = daq("directsound")
yields
"Unrecognized function or variable 'daq'".
I have the Data Acquisition Toolbox v4.0.1 installed.
Any ideas?

1 件のコメント

Jakeb Chouinard
Jakeb Chouinard 2021 年 8 月 3 日
Since it's returning an "Unrecognized function or variable 'daq'" error, my first instinct would be to question the installation of the toolbox. If you type in the command "ver" (see ver), does the toolbox show up as being installed?

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

 採用された回答

Adam Danz
Adam Danz 2021 年 8 月 3 日

0 投票

daq() was released in R2020a which is vs. 4.1 of the Data Acquisition Toolbox.

1 件のコメント

Toby Newman
Toby Newman 2021 年 8 月 4 日
ver shows
Data Acquisition Toolbox Version 4.0.1 (R2019b)
So that explains it, thanks.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by