Borrar filtros
Borrar filtros

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

3 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

Nirav Sharda
Nirav Sharda el 14 de Jul. de 2017
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.

Más respuestas (0)

Categorías

Más información sobre Application Deployment en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by