Effacer les filtres
Effacer les filtres

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

3 vues (au cours des 30 derniers jours)
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.

Réponse acceptée

Nirav Sharda
Nirav Sharda le 14 Juil 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.

Plus de réponses (0)

Catégories

En savoir plus sur Application Deployment dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by