InstalledAdaptors does not exist in compiled environment.

3 views (last 30 days)
when creating an exe file from the code bellow I get an error that there is "No Image Acquisition adaptors found "
I'm runing the exe on the same machine I run the code via matlab command line.
t = imaqhwinfo
obj = videoinput(char(t.InstalledAdaptors));
preview(obj)
Matlab comand line works fine and gives
t =
struct with fields:
InstalledAdaptors: {'ni'}
MATLABVersion: '9.7 (R2019b)'
ToolboxName: 'Image Acquisition Toolbox'
ToolboxVersion: '6.1 (R2019b)'
exe can't find the adaptor

Answers (0)

Community Treasure Hunt

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

Start Hunting!