How do I include a specific .dll for the Image Acquisition Toolbox when compiling with Matlab compiler?
2 次查看(过去 30 天)
显示 更早的评论
A Little Backstory.. I am trying to develop an app using guide to take pictures. I need to put this on several devices, without installing Matlab on them if possible. The issue I have encountered is that I do not know how to include the pixelinkimaq.dll with the package application.
When using pixelinkimaq.dll you must first register it.
imaqregister(['C:\Program Files\MATLAB\R2016b\toolbox\imaq\imaqadaptors\pixelinkimaq.dll'])
The adapter registers fine and it is completely workable out of Matlab.
Though, it does not tag along so to speak when compiling.
I was hoping someone could help me out
Thanks.
0 个评论
采纳的回答
Nirav Sharda
2017-7-14
You can add the .dll to the 'mcc' command with the -a flag. Also in the matlab code you will have to modify the location relative to the ctfroot. Here is an example that can be used as a reference.
imaqregister(fullfile(ctfroot,mfilename,'filename.dll'));
Also if you are using 'deploytool' to create the standalone you can add the dll in the files required for your application to run section. Here is a link that talks more about path management in deployed applciations.
I hope this helps.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!