필터 지우기
필터 지우기

How do I include a specific .dll for the Image Acquisition Toolbox when compiling with Matlab compiler?

조회 수: 3 (최근 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.

채택된 답변

Nirav Sharda
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개)

카테고리

Help CenterFile Exchange에서 Application Deployment에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by