|
"Eric Keller" <keller.ee@gmail.com> wrote in message <k9toak$4v1$1@newscl01ah.mathworks.com>...
> When I run my program that does data acquisition from the matlab command line, it runs fine and I can take data. When I run it as a deployed application daq.getDevices reports that there are no devices installed.
>
Turns out that the daq.getDevices and daq.getVendors don't work from a function in a deployed application. However, it does work from a script.
Matlab support suggested the following workaround, which works for me:
mygetdevices.m
function [deviceIDs] = mygetdevices.m
%script
deviceIDs = [];
getdevscript;
%
end
%script in separate file
%getdevscript.m
deviceIDs = daq.getDevices;
%
|