daq.getdevices does not work in standalone application / compiled program

1 回表示 (過去 30 日間)
Tom Gerhard
Tom Gerhard 2019 年 9 月 11 日
編集済み: Tom Gerhard 2019 年 9 月 17 日
I have a problem with a Matlab standalone application: I'm using daq.getdevices to acquire microphone data from the pc. This works fine in the matlab environment. However, as soon as I convert the code via the mcc function into a standalone applicatioon, no device is found anymore. I'm using a session based Interface. I think it has to do with Windows 10 resp. 32/64-bit systems. Has anyone an idea to solve this issue?
Here's the shortest example code possible which gives e.g. 4 devices if I execute it directly in Matlab and 0 if I execute the generated .exe-file on the same pc:
function getNoDevices
devices = daq.getDevices;
msgbox(['No. of devices: ' num2str(length(devices))]);
Thanks in adavnce and best regards!

回答 (0 件)

カテゴリ

Help Center および File ExchangeHardware Discovery and Setup についてさらに検索

製品


リリース

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by